Skip to content

Fix metric infos in PartitionThroughputProvider#862

Merged
vmaheshw merged 5 commits intolinkedin:masterfrom
vmaheshw:fixMetricInfos
Nov 2, 2021
Merged

Fix metric infos in PartitionThroughputProvider#862
vmaheshw merged 5 commits intolinkedin:masterfrom
vmaheshw:fixMetricInfos

Conversation

@vmaheshw
Copy link
Copy Markdown
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