Skip to content

Commit

Permalink
Merge pull request #5216 from Xuanwo/opendal-v0.6
Browse files Browse the repository at this point in the history
feat: Introduce opendal 0.6 and enable retry support
  • Loading branch information
BohuTANG authored May 7, 2022
2 parents b96272e + 5dc05b8 commit ff5d022
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 7 deletions.
18 changes: 16 additions & 2 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion common/contexts/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ test = false
common-base = { path = "../base" }

async-trait = "0.1.53"
opendal = "0.5.2"
opendal = { version = "0.6.0", features = ["retry"] }
time = "0.3.9"
2 changes: 1 addition & 1 deletion common/io/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ chrono = "0.4.19"
chrono-tz = "0.6.1"
futures = "0.3.21"
lexical-core = "0.8.2"
opendal = "0.5.2"
opendal = { version = "0.6.0", features = ["retry"] }
serde = { version = "1.0.136", features = ["derive"] }
time = "0.3.9"

Expand Down
2 changes: 1 addition & 1 deletion common/streams/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ serde_json = { version = "1.0.79", default-features = false, features = ["preser
tempfile = "3.3.0"

[dev-dependencies]
opendal = "0.5.2"
opendal = { version = "0.6.0", features = ["retry"] }
3 changes: 2 additions & 1 deletion query/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ async-recursion = "1.0.0"
async-stream = "0.3.3"
async-trait = "0.1.53"
backoff = "0.4.0"
backon = "0.0.2"
base64 = "0.13.0"
bit-vec = { version = "0.6.3", features = ["serde_std"] }
bumpalo = "3.9.1"
Expand All @@ -87,7 +88,7 @@ num = "0.4.0"
num_cpus = "1.13.1"
octocrab = "0.15.4"
once_cell = "1.10.0"
opendal = "0.5.2"
opendal = { version = "0.6.0", features = ["retry"] }
openssl = { version = "0.10", features = ["vendored"] }
paste = "1.0.7"
petgraph = "0.6.0"
Expand Down
3 changes: 2 additions & 1 deletion query/src/sessions/session_mgr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,8 @@ impl SessionManager {
}
};

Ok(Operator::new(accessor))
// Enable exponential backoff by default
Ok(Operator::new(accessor).with_backoff(backon::ExponentialBackoff::default()))
}

pub async fn reload_config(&self) -> Result<()> {
Expand Down

0 comments on commit ff5d022

Please sign in to comment.