Added log messages to debug assignPartitions#951
Merged
Conversation
hshukla
reviewed
Aug 3, 2023
...rver/src/main/java/com/linkedin/datastream/server/assignment/LoadBasedPartitionAssigner.java
Outdated
Show resolved
Hide resolved
...rver/src/main/java/com/linkedin/datastream/server/assignment/LoadBasedPartitionAssigner.java
Outdated
Show resolved
Hide resolved
...rver/src/main/java/com/linkedin/datastream/server/assignment/LoadBasedPartitionAssigner.java
Show resolved
Hide resolved
ehoner
previously approved these changes
Aug 4, 2023
Contributor
ehoner
left a comment
There was a problem hiding this comment.
I am approving these in case they are time-sensitive. But in general I agree with @hshukla's comments. I am not convinced these changes will surface the issue(s), but this is a worthwhile first step before considering more involved changes.
Collaborator
|
I remember us talking about putting logs around any IO operations that might be happening, should we add some logs there as well?
|
Collaborator
Author
The consensus at the end of the meeting was that the assignPartitions method is where the CPU time is spent. I avoided adding logs in other places as to keep unnecessary logging to minimum. |
hshukla
approved these changes
Aug 4, 2023
shrinandthakkar
approved these changes
Aug 4, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We observed that the leader has a tendency to get stuck on this method (in some rare cases for more than 5 minutes). Added log messages to help debug the issue.
Note that the test suite in
TestLoadBasedPartitionAssignerdo not capture such performance problems. Attempts to reproduce them locally didn't work.