Skip to content

Commit

Permalink
fix(services/fs,hdfs): fix poll_close when retry
Browse files Browse the repository at this point in the history
  • Loading branch information
hoslo committed Feb 4, 2024
1 parent 93bc4e1 commit ca947b4
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 35 deletions.
52 changes: 27 additions & 25 deletions .github/workflows/test_edge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
10 changes: 0 additions & 10 deletions core/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ca947b4

Please sign in to comment.