leekeiabstraction commented on code in PR #127:
URL: https://github.com/apache/fluss-rust/pull/127#discussion_r2666848562


##########
crates/fluss/src/client/table/scanner.rs:
##########
@@ -171,10 +182,32 @@ impl LogScanner {
                 log_scanner_status.clone(),
                 projected_fields,
             )?,
+            poll_mode: AtomicU8::new(POLL_MODE_UNSET),
         })
     }
 
     pub async fn poll(&self, timeout: Duration) -> Result<ScanRecords> {
+        // Check and set poll mode to prevent mixing with poll_batches
+        match self.poll_mode.compare_exchange(

Review Comment:
   Additional question: is this a different feature to Java side's pollBatch()?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to