Skip to content

HBASE-28284 Fix the NPE that occurs when calling getBootstrapNodes before the HRegionServer has been fully initialized.#6845

Open
hiping-tech wants to merge 2 commits intoapache:branch-3from
hiping-tech:HBASE-28284
Open

HBASE-28284 Fix the NPE that occurs when calling getBootstrapNodes before the HRegionServer has been fully initialized.#6845
hiping-tech wants to merge 2 commits intoapache:branch-3from
hiping-tech:HBASE-28284

Conversation

@hiping-tech
Copy link
Contributor

No description provided.

…fore the HRegionServer has been fully initialized.
@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

.forEachRemaining(server -> builder.addNode(ProtobufUtil.toServerName(server)));
return builder.build();
} catch (IOException e) {
throw new ServiceException(e);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We only need to wrap checkOpen here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CheckOpen only ensures that getBootstrapNodes is non-null, but it does not guarantee whether getBootstrapNodes has successfully retrieved the nodes. Therefore, additional validation is needed to ensure completeness.
Please help review this.

…fore the HRegionServer has been fully initialized.
@Apache-HBase
Copy link

🎊 +1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 34s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
_ branch-3 Compile Tests _
+1 💚 mvninstall 3m 29s branch-3 passed
+1 💚 compile 3m 40s branch-3 passed
+1 💚 checkstyle 0m 45s branch-3 passed
+1 💚 spotbugs 1m 57s branch-3 passed
+1 💚 spotless 0m 56s branch has no errors when running spotless:check.
_ Patch Compile Tests _
+1 💚 mvninstall 3m 43s the patch passed
+1 💚 compile 3m 44s the patch passed
+1 💚 javac 3m 44s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 checkstyle 0m 48s the patch passed
+1 💚 spotbugs 2m 9s the patch passed
+1 💚 hadoopcheck 13m 14s Patch does not cause any errors with Hadoop 3.3.6 3.4.0.
+1 💚 spotless 0m 55s patch has no errors when running spotless:check.
_ Other Tests _
+1 💚 asflicense 0m 13s The patch does not generate ASF License warnings.
44m 29s
Subsystem Report/Notes
Docker ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6845/2/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #6845
Optional Tests dupname asflicense javac spotbugs checkstyle codespell detsecrets compile hadoopcheck hbaseanti spotless
uname Linux b2b0cf40ee94 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/hbase-personality.sh
git revision branch-3 / f3be959
Default Java Eclipse Adoptium-17.0.11+9
Max. process+thread count 84 (vs. ulimit of 30000)
modules C: hbase-server U: hbase-server
Console output https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6845/2/console
versions git=2.34.1 maven=3.9.8 spotbugs=4.7.3
Powered by Apache Yetus 0.15.0 https://yetus.apache.org

This message was automatically generated.

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