Skip to content

Commit

Permalink
fix(object store): do not call abort when streaming upload finish err…
Browse files Browse the repository at this point in the history
…or and fix azure workload identity (#16961) (#16997)
  • Loading branch information
wcy-fdu authored May 30, 2024
1 parent 0e9a07c commit 342def8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ futures-timer = { git = "https://github.com/madsim-rs/futures-timer.git", rev =
# patch: unlimit 4MB message size for grpc client
etcd-client = { git = "https://github.com/risingwavelabs/etcd-client.git", rev = "4e84d40" }
# todo(wcy-fdu): remove this patch fork after opendal release a new version to apply azure workload identity change.
reqsign = { git = "https://github.com/wcy-fdu/reqsign.git", rev = "002ee2a" }
reqsign = { git = "https://github.com/wcy-fdu/reqsign.git", rev = "c7dd668" }
# patch to remove preserve_order from serde_json
deno_core = { git = "https://github.com/bakjos/deno_core", rev = "9b241c6" }
# patch to user reqwest 0.12.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,10 @@ impl StreamingUploader for OpendalStreamingUploader {
match self.writer.close().await {
Ok(_) => (),
Err(err) => {
self.writer.abort().await?;
// Due to a bug in OpenDAL, calling `abort()` here may trigger unreachable code and cause panic.
// refer to https://github.com/apache/opendal/issues/4651
// This will be fixed after the next bump in the opendal version.
// self.writer.abort().await?;
return Err(err.into());
}
};
Expand Down

0 comments on commit 342def8

Please sign in to comment.