From ca947b4b1adae01beb518d589dd6dadaa168ff0c Mon Sep 17 00:00:00 2001 From: hoslo Date: Sun, 4 Feb 2024 13:01:17 +0800 Subject: [PATCH] fix(services/fs,hdfs): fix poll_close when retry --- .github/workflows/test_edge.yml | 52 +++++++++++++++++---------------- core/Cargo.lock | 10 ------- 2 files changed, 27 insertions(+), 35 deletions(-) diff --git a/.github/workflows/test_edge.yml b/.github/workflows/test_edge.yml index c8888ee1e1b8..6056d768a841 100644 --- a/.github/workflows/test_edge.yml +++ b/.github/workflows/test_edge.yml @@ -33,31 +33,6 @@ on: - ".github/workflows/edge_test.yml" jobs: - test_file_close_with_retry_on_full_disk: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Create disk image - run: | - fallocate -l 512K disk.img - mkfs disk.img - - - name: Mount disk image - run: | - mkdir /tmp/test_dir - sudo mount -o loop disk.img /tmp/test_dir - - - name: Set permissions - run: sudo chmod a+wr /tmp/test_dir - - - name: Test - working-directory: core/edge/file_close_with_retry_on_full_disk - run: cargo run - env: - OPENDAL_FS_ROOT: /tmp/test_dir test_file_write_on_full_disk: runs-on: ubuntu-latest @@ -162,3 +137,30 @@ jobs: OPENDAL_S3_BUCKET: opendal-testing OPENDAL_S3_ROLE_ARN: arn:aws:iam::952853449216:role/opendal-testing OPENDAL_S3_REGION: ap-northeast-1 + + test_file_close_with_retry_on_full_disk: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Create disk image + run: | + fallocate -l 512K disk.img + mkfs disk.img + + - name: Mount disk image + run: | + mkdir /tmp/test_dir + sudo mount -o loop disk.img /tmp/test_dir + + - name: Set permissions + run: sudo chmod a+wr /tmp/test_dir + + - name: Test + working-directory: core/edge/file_close_with_retry_on_full_disk + run: cargo run + env: + OPENDAL_FS_ROOT: /tmp/test_dir + RUST_BACKTRACE: 1 diff --git a/core/Cargo.lock b/core/Cargo.lock index e087911ad03e..fbaaf3f2a8a9 100644 --- a/core/Cargo.lock +++ b/core/Cargo.lock @@ -2003,16 +2003,6 @@ dependencies = [ "signature 1.6.4", ] -[[package]] -name = "edge_file_close_with_retry_on_full_disk" -version = "0.0.0" -dependencies = [ - "futures", - "opendal", - "rand 0.8.5", - "tokio", -] - [[package]] name = "edge_test_aws_s3_assume_role_with_web_identity" version = "0.0.0"