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 d1b400a commit ea53221
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/Cargo.lock

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

1 change: 1 addition & 0 deletions core/edge/file_close_with_retry_on_full_disk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ futures = "0.3"
opendal = { path = "../../" }
rand = "0.8"
tokio = { version = "1", features = ["full"] }
tracing-subscriber = "0.3"
2 changes: 2 additions & 0 deletions core/edge/file_close_with_retry_on_full_disk/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ use opendal::services::Fs;
use opendal::Operator;
use opendal::Result;
use rand::prelude::*;
use tracing_subscriber;

#[tokio::main]
async fn main() -> Result<()> {
tracing_subscriber::fmt::init();
let mut builder = Fs::default();
builder.root(&env::var("OPENDAL_FS_ROOT").expect("root must be set for this test"));
let op = Operator::new(builder)?
Expand Down

0 comments on commit ea53221

Please sign in to comment.