-
Notifications
You must be signed in to change notification settings - Fork 3.4k
HBASE-25323 Fix potential NPE when the zookeeper path of RegionServerTracker does not exist when start #2702
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
Conversation
…Tracker does not exist when start
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
| return; | ||
| } | ||
| Set<ServerName> servers = | ||
| Set<ServerName> servers = CollectionUtils.isEmpty(names) ? Collections.EMPTY_SET : |
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.
Collections.emptySet(). Use EMPTY_SET will introduce a warning.
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.
OK, I will use replace it with Collections.emptySet()
| public static List<ServerName> getBackupMastersAndRenewWatch( | ||
| ZKWatcher zkw) throws InterruptedIOException { | ||
| // Build Set of backup masters from ZK nodes | ||
| List<String> backupMasterStrings = Collections.emptyList(); |
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.
Why change this?
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.
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
infraio
left a comment
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.
+1
…Tracker does not exist when start (#2702) Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Guanghao Zhang <zghao@apache.org>
…Tracker does not exist when start (#2702) Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Guanghao Zhang <zghao@apache.org>
…Tracker does not exist when start (#2702) Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Guanghao Zhang <zghao@apache.org>
…Tracker does not exist when start (apache#2702) Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Guanghao Zhang <zghao@apache.org>
…Tracker does not exist when start (apache#2702) Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Guanghao Zhang <zghao@apache.org> (cherry picked from commit b710fbd) Change-Id: I8449e9eeb93715d598d644abb545e133f667b8b4

No description provided.