Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix metric infos in PartitionThroughputProvider #862

Merged
merged 5 commits into from
Nov 2, 2021

Conversation

vmaheshw
Copy link
Collaborator

@vmaheshw vmaheshw commented Nov 2, 2021

Fixing the below exception by setting the default to return empty list rather than null.

Caused by: java.lang.NullPointerException at java.util.ArrayList.addAll(ArrayList.java:702) ~[?:?] at com.linkedin.datastream.server.assignment.LoadBasedPartitionAssignmentStrategy.getMetricInfos(LoadBasedPartitionAssignmentStrategy.java:218) ~[datastream-server-2.3.0.jar:?] at com.linkedin.datastream.server.Coordinator$CoordinatorMetrics.addMetricInfos(Coordinator.java:1984) ~[datastream-server-2.3.0.jar:?] at com.linkedin.datastream.server.Coordinator$CoordinatorMetrics.addConnectorMetrics(Coordinator.java:2005) ~[datastream-server-2.3.0.jar:?] at com.linkedin.datastream.server.Coordinator.addConnector(Coordinator.java:1598)~[datastream-server-2.3.0.jar:?]
`

@vmaheshw vmaheshw merged commit 64129c2 into linkedin:master Nov 2, 2021
@vmaheshw vmaheshw deleted the fixMetricInfos branch November 2, 2021 21:17
vmaheshw added a commit to vmaheshw/brooklin that referenced this pull request Mar 1, 2022
Co-authored-by: Vaibhav Maheshwari <vmaheshw@vmaheshw-mn1.linkedin.biz>
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.

3 participants