fresh-borzoni opened a new issue, #140:
URL: https://github.com/apache/fluss-rust/issues/140

   ### Search before asking
   
   - [x] I searched in the 
[issues](https://github.com/apache/fluss-rust/issues) and found nothing similar.
   
   
   ### Description
   
   in scanner.rs
   
   ```rust
       fn pending_remote_fetches(
           // ....
           // Download and process remote log segments
           let mut pos_in_log_segment = remote_fetch_info.first_start_pos;
           let mut current_fetch_offset = fetch_offset;
           for (i, segment) in 
remote_fetch_info.remote_log_segments.iter().enumerate() {
               if i > 0 {
                   pos_in_log_segment = 0;
                   current_fetch_offset = segment.start_offset;
               }
   
               // todo:
               // 1: control the max threads to download remote segment
               // 2: introduce priority queue to priority highest for earliest 
segment
               let download_future = remote_log_downloader
                   
.request_remote_log(&remote_fetch_info.remote_log_tablet_dir, segment);
   //..
   ```
   
   So we need to fix this and do something similar like in Java client
   
   
   ### Willingness to contribute
   
   - [x] I'm willing to submit a PR!


-- 
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