Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Igor Chaiko
ozone
Commits
173e7d26
Unverified
Commit
173e7d26
authored
10 months ago
by
Chung En Lee
Committed by
GitHub
10 months ago
Browse files
Options
Downloads
Patches
Plain Diff
HDDS-10508. OmUtils.getAllOMHAAddresses may throw NPE (#6884)
parent
950a4b55
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/OmUtils.java
+6
-0
...common/src/main/java/org/apache/hadoop/ozone/OmUtils.java
with
6 additions
and
0 deletions
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/OmUtils.java
+
6
−
0
View file @
173e7d26
...
...
@@ -855,6 +855,12 @@ public static List<OMNodeDetails> getAllOMHAAddresses(OzoneConfiguration conf,
try
{
OMNodeDetails
omNodeDetails
=
OMNodeDetails
.
getOMNodeDetailsFromConf
(
conf
,
omServiceId
,
nodeId
);
if
(
omNodeDetails
==
null
)
{
LOG
.
error
(
"There is no OM configuration for node ID {} in ozone-site.xml."
,
nodeId
);
continue
;
}
if
(
decommissionedNodeIds
.
contains
(
omNodeDetails
.
getNodeId
()))
{
omNodeDetails
.
setDecommissioningState
();
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets