We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20f1a13 commit 8f273f3Copy full SHA for 8f273f3
crates/iceberg/src/delete_file_index.rs
@@ -20,7 +20,7 @@ use std::fmt::{self, Debug};
20
use std::future::Future;
21
use std::ops::Deref;
22
use std::pin::Pin;
23
-use std::sync::{Arc, RwLock};
+use std::sync::{Arc, RwLock, TryLockError};
24
use std::task::{Context, Poll};
25
26
use futures::StreamExt;
@@ -235,6 +235,10 @@ impl Future for DeletesForDataFile<'_> {
235
Poll::Pending
236
}
237
},
238
+ Err(TryLockError::WouldBlock) => {
239
+ self.waker_set.insert(cx);
240
+ Poll::Pending
241
+ }
242
Err(err) => Poll::Ready(Err(Error::new(ErrorKind::Unexpected, err.to_string()))),
243
244
0 commit comments