[
https://issues.apache.org/jira/browse/HDFS-11783?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16002219#comment-16002219
]
Weiwei Yang commented on HDFS-11783:
------------------------------------
Found following 6 warnings in ozone project
# Possible null pointer dereference in
org.apache.hadoop.ozone.container.common.impl.ContainerManagerImpl.writeContainerInfo(ContainerData,
boolean) due to return value of called method Method invoked at
ContainerManagerImpl.java:org.apache.hadoop.ozone.container.common.impl.ContainerManagerImpl.writeContainerInfo(ContainerData,
boolean) due to return value of called method Method invoked at
ContainerManagerImpl.java:[line 313]
# Return value of org.iq80.leveldb.Options.createIfMissing() ignored, but
method has no side effect At BlockManagerImpl.java:but method has no side
effect At BlockManagerImpl.java:[line 107]
# Possible null pointer dereference in
org.apache.hadoop.ozone.scm.cli.SQLCLI.run(String[]) due to return value of
called method Method invoked at
SQLCLI.java:org.apache.hadoop.ozone.scm.cli.SQLCLI.run(String[]) due to return
value of called method Method invoked at SQLCLI.java:[line 149]
# Possible null pointer dereference in
org.apache.hadoop.ozone.scm.cli.SQLCLI.run(String[]) due to return value of
called method Method invoked at
SQLCLI.java:org.apache.hadoop.ozone.scm.cli.SQLCLI.run(String[]) due to return
value of called method Method invoked at SQLCLI.java:[line 150]
# Return value of org.iq80.leveldb.Options.createIfMissing() ignored, but
method has no side effect At ContainerMapping.java:but method has no side
effect At ContainerMapping.java:[line 90]
# Return value of org.iq80.leveldb.Options.createIfMissing() ignored, but
method has no side effect At SCMNodePoolManager.java:but method has no side
effect At SCMNodePoolManager.java:[line 92]
> Ozone: Fix spotbugs warnings
> ----------------------------
>
> Key: HDFS-11783
> URL: https://issues.apache.org/jira/browse/HDFS-11783
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: ozone
> Reporter: Weiwei Yang
> Assignee: Weiwei Yang
> Labels: findbugs
>
> Trunk moves to spotbugs, there might be new warnings in ozone project. This
> task is to track these issues and fix spotbugs warnings. This task is aimed
> to fix the warnings for ozone classes, there is a separate one for rest of
> hdfs in HDFS-11696.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]