Closed zuston closed 2 years ago
@jerqi Minor fix.
Could you add the ut for this fix?
And there is a flaky test that cause CI pipeline fake tests. We have submitted a pr to disable the test temporarily #184 . You can rebase master to avoid the failures which are caused by that flaky test.
I think this bug will not happen, so current test cases are enough.
The condition of wb.getMemoryUsed() > bufferSize
and usedBytes.get() - inSendListBytes.get() > spillSize
are mutually exclusive.
@jerqi If i'm wrong, please point it. Thanks.
I think this bug will not happen, so current test cases are enough.
The condition of
wb.getMemoryUsed() > bufferSize
andusedBytes.get() - inSendListBytes.get() > spillSize
are mutually exclusive.@jerqi If i'm wrong, please point it. Thanks.
Yes, you're right. It will not happen. Please rebase master. If CI passed, I will merge it.
What changes were proposed in this pull request?
The problem only occurs when
wb.getMemoryUsed() > bufferSize
andusedBytes.get() - inSendListBytes.get() > spillSize
.Although it doesn't seem to happen because of the logic, i think it should be optimized by using
addAll
to avoid confusion.Why are the changes needed?
Better code
Does this PR introduce any user-facing change?
No
How was this patch tested?
No need.