Skip to content

storage/reports: fix NPE in zone visiting #40735

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

Merged
merged 1 commit into from
Sep 13, 2019

Conversation

andreimatei
Copy link
Contributor

We were inadvertently returning early from visitZones() without
exhausting the hierarchy, resulting in NPE in the replication_stats
visitor and I think wrong results in the critical localities visitor.

Release note: None

@andreimatei andreimatei requested a review from darinpp September 12, 2019 22:08
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@andreimatei andreimatei force-pushed the reports.fix-zone-visitor branch from 3f422d2 to b24e2f7 Compare September 12, 2019 23:00
@andreimatei
Copy link
Contributor Author

TFTR!

bors r+

@craig
Copy link
Contributor

craig bot commented Sep 12, 2019

Build failed (retrying...)

We were inadvertently returning early from visitZones() without
exhausting the hierarchy, resulting in NPE in the replication_stats
visitor and I think wrong results in the critical localities visitor.

Release note: None
@andreimatei andreimatei force-pushed the reports.fix-zone-visitor branch from b24e2f7 to 63ab5e6 Compare September 12, 2019 23:43
@craig
Copy link
Contributor

craig bot commented Sep 12, 2019

Canceled

@andreimatei
Copy link
Contributor Author

fixed lint

bors r+

@craig
Copy link
Contributor

craig bot commented Sep 12, 2019

Build failed (retrying...)

@craig
Copy link
Contributor

craig bot commented Sep 13, 2019

Build failed

@andreimatei
Copy link
Contributor Author

andreimatei commented Sep 13, 2019 via email

craig bot pushed a commit that referenced this pull request Sep 13, 2019
40735: storage/reports: fix NPE in zone visiting r=andreimatei a=andreimatei

We were inadvertently returning early from visitZones() without
exhausting the hierarchy, resulting in NPE in the replication_stats
visitor and I think wrong results in the critical localities visitor.

Release note: None

Co-authored-by: Andrei Matei <[email protected]>
@craig
Copy link
Contributor

craig bot commented Sep 13, 2019

Build succeeded

@craig craig bot merged commit 63ab5e6 into cockroachdb:master Sep 13, 2019
@andreimatei andreimatei deleted the reports.fix-zone-visitor branch September 13, 2019 15:11
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