Skip to content

Conversation

@jerqi
Copy link
Contributor

@jerqi jerqi commented Aug 29, 2023

What changes were proposed in this pull request?

Use callback and queue to optimize the write time.

Why are the changes needed?

Fix: #1177

Does this PR introduce any user-facing change?

No.

How was this patch tested?

CI passed.

@codecov-commenter
Copy link

codecov-commenter commented Aug 29, 2023

Codecov Report

Merging #1179 (f8df6c3) into master (2ee11a9) will increase coverage by 1.10%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master    #1179      +/-   ##
============================================
+ Coverage     53.63%   54.74%   +1.10%     
  Complexity     2582     2582              
============================================
  Files           391      371      -20     
  Lines         22407    20047    -2360     
  Branches       1875     1875              
============================================
- Hits          12019    10975    -1044     
+ Misses         9681     8436    -1245     
+ Partials        707      636      -71     

see 20 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

xianjingfeng
xianjingfeng previously approved these changes Aug 29, 2023
Copy link
Member

@xianjingfeng xianjingfeng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

blockIds.removeAll(successBlockIds);
if (blockIds.isEmpty()) {
break;
boolean interrupted = false;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks complex for current implement.

And I think the sendTimeout is wrong, which is valid for all everytime queue.poll

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use remainingMs instead of sendCheckTImeout.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My fault. +1

@jerqi jerqi merged commit 164e0d0 into apache:master Aug 31, 2023
xianjingfeng pushed a commit that referenced this pull request Sep 14, 2023
### What changes were proposed in this pull request?
Use callback and queue to optimize the write time.

### Why are the changes needed?

Fix: #1177

### Does this PR introduce _any_ user-facing change?
No.

### How was this patch tested?
CI passed.

(cherry picked from commit 164e0d0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Improvement] Reduce the write time

4 participants