[
https://issues.apache.org/jira/browse/HDDS-12344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Attila Doroszlai updated HDDS-12344:
------------------------------------
Summary: Fix spotbugs warnings in hadoop-ozone (was: Fix spotbugs warnings
in OM)
> Fix spotbugs warnings in hadoop-ozone
> -------------------------------------
>
> Key: HDDS-12344
> URL: https://issues.apache.org/jira/browse/HDDS-12344
> Project: Apache Ozone
> Issue Type: Sub-task
> Components: Ozone Manager
> Reporter: Attila Doroszlai
> Assignee: Attila Doroszlai
> Priority: Major
>
> {code}
> M D UC: Useless object stored in variable volumeABucketsPrefixWithHadoopOwner
> of method org.apache.hadoop.ozone.om.TestOmMetadataManager.testListBuckets()
> At TestOmMetadataManager.java:[line 220]
> M D UC: Useless object stored in variable volumeBBucketsPrefixWithOzoneOwner
> of method org.apache.hadoop.ozone.om.TestOmMetadataManager.testListBuckets()
> At TestOmMetadataManager.java:[line 238]
> M D UC: Useless object stored in variable keysAVolumeBSet of method
> org.apache.hadoop.ozone.om.TestOmMetadataManager.testListKeys() At
> TestOmMetadataManager.java:[line 390]
> M D UC: Useless object stored in variable keysBSet of method
> org.apache.hadoop.ozone.om.TestOmMetadataManager.testListKeys() At
> TestOmMetadataManager.java:[line 376]
> M D UC: Useless object stored in variable keysCSet of method
> org.apache.hadoop.ozone.om.TestOmMetadataManager.testListKeys() At
> TestOmMetadataManager.java:[line 377]
> M D UC: Useless object stored in variable deleteKeySet of method
> org.apache.hadoop.ozone.om.TestOmMetadataManager.testListKeysWithFewDeleteEntriesInCache()
> At TestOmMetadataManager.java:[line 503]
> M D UC: Useless object stored in variable openKeys of method
> org.apache.hadoop.ozone.om.TestOmMetadataManager.testListOpenFiles(BucketLayout)
> At TestOmMetadataManager.java:[line 599]
> M D REC: Exception is caught when Exception is not thrown in
> org.apache.hadoop.ozone.om.TestOzoneManagerHttpServer.canAccess(String,
> InetSocketAddress) At TestOzoneManagerHttpServer.java:[line 154]
> M B RV: Exceptional return value of java.io.File.mkdirs() ignored in
> org.apache.hadoop.ozone.om.TestOzoneManagerHttpServer.setUp(File) At
> TestOzoneManagerHttpServer.java:[line 65]
> M P UPM: Private method
> org.apache.hadoop.ozone.om.ratis.TestOzoneManagerDoubleBufferWithOMResponse.deleteBucket(String,
> String) is never called At
> TestOzoneManagerDoubleBufferWithOMResponse.java:[line 497]
> M P UrF: Unread field:
> org.apache.hadoop.ozone.om.ratis.TestOzoneManagerRatisServer.initialTermIndex
> At TestOzoneManagerRatisServer.java:[line 118]
> M D UuF: Unused public or protected field:
> org.apache.hadoop.ozone.om.request.security.TestOMDelegationTokenRequest.omMetrics
> In TestOMDelegationTokenRequest.java
> M D DMI: Hard coded reference to an absolute pathname in
> org.apache.hadoop.ozone.om.snapshot.TestFSODirectoryPathResolver.testGetAbsolutePathForValidObjectIDs()
> At TestFSODirectoryPathResolver.java:[line 142]
> M D DMI: Hard coded reference to an absolute pathname in
> org.apache.hadoop.ozone.om.snapshot.TestFSODirectoryPathResolver.testGetAbsolutePathForValidObjectIDs()
> At TestFSODirectoryPathResolver.java:[line 138]
> M D DMI: Hard coded reference to an absolute pathname in
> org.apache.hadoop.ozone.om.snapshot.TestFSODirectoryPathResolver.testGetAbsolutePathForValidObjectIDs()
> At TestFSODirectoryPathResolver.java:[line 137]
> M D DMI: Hard coded reference to an absolute pathname in
> org.apache.hadoop.ozone.om.snapshot.TestFSODirectoryPathResolver.testGetAbsolutePathForValidObjectIDs()
> At TestFSODirectoryPathResolver.java:[line 141]
> M D DMI: Hard coded reference to an absolute pathname in
> org.apache.hadoop.ozone.om.snapshot.TestFSODirectoryPathResolver.testGetAbsolutePathForValidObjectIDs()
> At TestFSODirectoryPathResolver.java:[line 136]
> M D DMI: Hard coded reference to an absolute pathname in
> org.apache.hadoop.ozone.om.snapshot.TestFSODirectoryPathResolver.testGetAbsolutePathForValidObjectIDs()
> At TestFSODirectoryPathResolver.java:[line 139]
> M D DMI: Hard coded reference to an absolute pathname in
> org.apache.hadoop.ozone.om.snapshot.TestFSODirectoryPathResolver.testGetAbsolutePathForValidObjectIDs()
> At TestFSODirectoryPathResolver.java:[line 140]
> M D RV: Return value of SnapshotDiffManager.isKeyInBucket(String, Map,
> String) ignored, but method has no side effect At
> TestSnapshotDiffManager.java:[line 688]
> M D UC: Useless object stored in variable tokenPasswordSym of method
> org.apache.hadoop.ozone.security.TestOzoneTokenIdentifier.testSymmetricTokenPerfHelper(String,
> int) At TestOzoneTokenIdentifier.java:[line 211]
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]