From 016aec224d830968a783450e794ee1ce1ac6d96b Mon Sep 17 00:00:00 2001 From: yuhui Date: Mon, 13 Jan 2025 11:36:08 +0800 Subject: [PATCH] Fix --- .github/workflows/gvfs-fuse-build-test.yml | 2 +- clients/filesystem-fuse/Makefile | 2 +- clients/filesystem-fuse/src/default_raw_filesystem.rs | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gvfs-fuse-build-test.yml b/.github/workflows/gvfs-fuse-build-test.yml index 0ee5b7c0381..e0fe16fbcf4 100644 --- a/.github/workflows/gvfs-fuse-build-test.yml +++ b/.github/workflows/gvfs-fuse-build-test.yml @@ -81,7 +81,7 @@ jobs: ./gradlew compileDistribution -x :clients:client-python:build -x test -x web -PjdkVersion=${{ matrix.java-version }} cd clients/filesystem-fuse make test-s3 - make test-fuse + make test-fuse-it - name: Free up disk space run: | diff --git a/clients/filesystem-fuse/Makefile b/clients/filesystem-fuse/Makefile index d5fe8eec753..86dd2f22152 100644 --- a/clients/filesystem-fuse/Makefile +++ b/clients/filesystem-fuse/Makefile @@ -62,7 +62,7 @@ doc-test: unit-test: doc-test cargo test --no-fail-fast --lib --all-features --workspace -test-fuse: +test-fuse-it: @bash ./tests/bin/run_fuse_testers.sh test test-s3: diff --git a/clients/filesystem-fuse/src/default_raw_filesystem.rs b/clients/filesystem-fuse/src/default_raw_filesystem.rs index c684e8cfb20..d1d8e7605df 100644 --- a/clients/filesystem-fuse/src/default_raw_filesystem.rs +++ b/clients/filesystem-fuse/src/default_raw_filesystem.rs @@ -347,6 +347,7 @@ impl RawFileSystem for DefaultRawFileSystem { let mut file = opened_file.lock().await; file.close().await } else { + // If the file has been deleted, it does not cause a leak even if it has not been closed. Ok(()) } }