-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[ML] Fix thread safety issues in accessing ManagedCursorContainer.heap ArrayList #16049
[ML] Fix thread safety issues in accessing ManagedCursorContainer.heap ArrayList #16049
Conversation
…eap" field access - heap is an ArrayList which isn't thread safe
There's a chance that this fix causes a performance regression. If that's the case, we would have to revisit the solution for tracking the slowest positions. |
The issue about the broker cache regression is #16054 |
The previous PR is used to solve the memory problem caused by frequent traversal. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. heap
should be guarded by rwLock
.
@lhotari - is there a specific test scenario that we should run to proactively check for a performance regression? The changes looks good to me, but it'd be helpful to diagnose a performance regression sooner than later, if possible. |
…eap" field access (apache#16049) (cherry picked from commit ec9676f) (cherry picked from commit cec950e)
…eap" field access (apache#16049) (cherry picked from commit ec9676f)
Motivation
This could lead to thread safety issues. Here's an example: (stacktraces are from a fork of branch-2.10)
Modifications