You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Abhishek Pal (Jira)" <ji...@apache.org> on 2025/12/10 11:54:00 UTC

[jira] [Created] (HDDS-14140) Address spotbug errors in Ozone manager helpers package

Abhishek Pal created HDDS-14140:
-----------------------------------

             Summary: Address spotbug errors in Ozone manager helpers package
                 Key: HDDS-14140
                 URL: https://issues.apache.org/jira/browse/HDDS-14140
             Project: Apache Ozone
          Issue Type: Sub-task
          Components: Ozone Manager
            Reporter: Abhishek Pal
            Assignee: Abhishek Pal


package: org.apache.hadoop.ozone.om.helpers
{code}
M V EI: org.apache.hadoop.ozone.om.helpers.DBUpdates.getData() may expose internal representation by returning DBUpdates.dataList  At DBUpdates.java:[line 52]
M V EI: org.apache.hadoop.ozone.om.helpers.KeyInfoWithVolumeContext.getKeyInfo() may expose internal representation by returning KeyInfoWithVolumeContext.keyInfo  At KeyInfoWithVolumeContext.java:[line 67]
M V EI2: new org.apache.hadoop.ozone.om.helpers.KeyInfoWithVolumeContext(OmVolumeArgs, String, OmKeyInfo) may expose internal representation by storing an externally mutable object into KeyInfoWithVolumeContext.keyInfo  At KeyInfoWithVolumeContext.java:[line 45]
M V EI2: org.apache.hadoop.ozone.om.helpers.KeyInfoWithVolumeContext$Builder.setKeyInfo(OmKeyInfo) may expose internal representation by storing an externally mutable object into KeyInfoWithVolumeContext$Builder.keyInfo  At KeyInfoWithVolumeContext.java:[line 101]
M V EI2: org.apache.hadoop.ozone.om.helpers.KeyInfoWithVolumeContext$Builder.setVolumeArgs(OmVolumeArgs) may expose internal representation by storing an externally mutable object into KeyInfoWithVolumeContext$Builder.volumeArgs  At KeyInfoWithVolumeContext.java:[line 91]
M V EI: org.apache.hadoop.ozone.om.helpers.LeaseKeyInfo.getKeyInfo() may expose internal representation by returning LeaseKeyInfo.keyInfo  At LeaseKeyInfo.java:[line 37]
M V EI: org.apache.hadoop.ozone.om.helpers.LeaseKeyInfo.getOpenKeyInfo() may expose internal representation by returning LeaseKeyInfo.openKeyInfo  At LeaseKeyInfo.java:[line 33]
M V EI2: new org.apache.hadoop.ozone.om.helpers.LeaseKeyInfo(OmKeyInfo, OmKeyInfo) may expose internal representation by storing an externally mutable object into LeaseKeyInfo.keyInfo  At LeaseKeyInfo.java:[line 28]
M V EI2: new org.apache.hadoop.ozone.om.helpers.LeaseKeyInfo(OmKeyInfo, OmKeyInfo) may expose internal representation by storing an externally mutable object into LeaseKeyInfo.openKeyInfo  At LeaseKeyInfo.java:[line 29]
M V EI: org.apache.hadoop.ozone.om.helpers.ListKeysLightResult.getKeys() may expose internal representation by returning ListKeysLightResult.keys  At ListKeysLightResult.java:[line 37]
M V EI2: new org.apache.hadoop.ozone.om.helpers.ListKeysLightResult(List, boolean) may expose internal representation by storing an externally mutable object into ListKeysLightResult.keys  At ListKeysLightResult.java:[line 32]
M V EI: org.apache.hadoop.ozone.om.helpers.ListKeysResult.getKeys() may expose internal representation by returning ListKeysResult.keys  At ListKeysResult.java:[line 36]
M V EI2: new org.apache.hadoop.ozone.om.helpers.ListKeysResult(List, boolean) may expose internal representation by storing an externally mutable object into ListKeysResult.keys  At ListKeysResult.java:[line 31]
M X TEST: Unknown bug pattern CT_CONSTRUCTOR_THROW in new org.apache.hadoop.ozone.om.helpers.ListOpenFilesResult(long, boolean, String, List, List)  At ListOpenFilesResult.java:[line 69]
M V EI: org.apache.hadoop.ozone.om.helpers.ListOpenFilesResult.getOpenKeys() may expose internal representation by returning ListOpenFilesResult.openKeySessionList  At ListOpenFilesResult.java:[line 112]
M V EI2: new org.apache.hadoop.ozone.om.helpers.ListOpenFilesResult(long, boolean, String, List) may expose internal representation by storing an externally mutable object into ListOpenFilesResult.openKeySessionList  At ListOpenFilesResult.java:[line 57]
M V EI: org.apache.hadoop.ozone.om.helpers.OMAuditLogger$Builder.getAuditMap() may expose internal representation by returning OMAuditLogger$Builder.auditMap  At OMAuditLogger.java:[line 204]
M V EI2: org.apache.hadoop.ozone.om.helpers.OMAuditLogger$Builder.setAuditMap(Map) may expose internal representation by storing an externally mutable object into OMAuditLogger$Builder.auditMap  At OMAuditLogger.java:[line 200]
M V EI: org.apache.hadoop.ozone.om.helpers.OmBucketInfo$Builder.getAcls() may expose internal representation by returning OmBucketInfo$Builder.acls  At OmBucketInfo.java:[line 475]
M V EI: org.apache.hadoop.ozone.om.helpers.OmDBUserPrincipalInfo.getAccessIds() may expose internal representation by returning OmDBUserPrincipalInfo.accessIds  At OmDBUserPrincipalInfo.java:[line 55]
M V EI2: org.apache.hadoop.ozone.om.helpers.OmDBUserPrincipalInfo$Builder.setAccessIds(Set) may expose internal representation by storing an externally mutable object into OmDBUserPrincipalInfo$Builder.accessIds  At OmDBUserPrincipalInfo.java:[line 96]
M V EI: org.apache.hadoop.ozone.om.helpers.OmDeleteKeys.getKeyNames() may expose internal representation by returning OmDeleteKeys.keyNames  At OmDeleteKeys.java:[line 47]
M V EI2: new org.apache.hadoop.ozone.om.helpers.OmDeleteKeys(String, String, List) may expose internal representation by storing an externally mutable object into OmDeleteKeys.keyNames  At OmDeleteKeys.java:[line 35]
M V EI: org.apache.hadoop.ozone.om.helpers.OmDirectoryInfo.getAcls() may expose internal representation by returning OmDirectoryInfo.acls  At OmDirectoryInfo.java:[line 188]
M V EI: org.apache.hadoop.ozone.om.helpers.OmKeyArgs.getAcls() may expose internal representation by returning OmKeyArgs.acls  At OmKeyArgs.java:[line 104]
M V EI: org.apache.hadoop.ozone.om.helpers.OmKeyArgs.getLocationInfoList() may expose internal representation by returning OmKeyArgs.locationInfoList  At OmKeyArgs.java:[line 140]
M V EI: org.apache.hadoop.ozone.om.helpers.OmKeyArgs.getMetadata() may expose internal representation by returning OmKeyArgs.metadata  At OmKeyArgs.java:[line 132]
M V EI: org.apache.hadoop.ozone.om.helpers.OmKeyArgs.getTags() may expose internal representation by returning OmKeyArgs.tags  At OmKeyArgs.java:[line 164]
M V EI2: org.apache.hadoop.ozone.om.helpers.OmKeyArgs.setLocationInfoList(List) may expose internal representation by storing an externally mutable object into OmKeyArgs.locationInfoList  At OmKeyArgs.java:[line 136]
M V EI2: org.apache.hadoop.ozone.om.helpers.OmKeyArgs$Builder.setAcls(List) may expose internal representation by storing an externally mutable object into OmKeyArgs$Builder.acls  At OmKeyArgs.java:[line 302]
M V EI2: org.apache.hadoop.ozone.om.helpers.OmKeyArgs$Builder.setLocationInfoList(List) may expose internal representation by storing an externally mutable object into OmKeyArgs$Builder.locationInfoList  At OmKeyArgs.java:[line 297]
M V EI: org.apache.hadoop.ozone.om.helpers.OmKeyInfo.getKeyLocationVersions() may expose internal representation by returning OmKeyInfo.keyLocationVersions  At OmKeyInfo.java:[line 246]
M V EI: org.apache.hadoop.ozone.om.helpers.OmKeyInfo.getTags() may expose internal representation by returning OmKeyInfo.tags  At OmKeyInfo.java:[line 268]
M V EI2: org.apache.hadoop.ozone.om.helpers.OmKeyInfo.setKeyLocationVersions(List) may expose internal representation by storing an externally mutable object into OmKeyInfo.keyLocationVersions  At OmKeyInfo.java:[line 251]
M V EI2: org.apache.hadoop.ozone.om.helpers.OmKeyInfo.setTags(Map) may expose internal representation by storing an externally mutable object into OmKeyInfo.tags  At OmKeyInfo.java:[line 273]
M V EI: org.apache.hadoop.ozone.om.helpers.OmKeyLocationInfoGroup.getLocationVersionMap() may expose internal representation by returning OmKeyLocationInfoGroup.locationVersionMap  At OmKeyLocationInfoGroup.java:[line 87]
M V EI2: new org.apache.hadoop.ozone.om.helpers.OmKeyLocationInfoGroup(long, Map, boolean) may expose internal representation by storing an externally mutable object into OmKeyLocationInfoGroup.locationVersionMap  At OmKeyLocationInfoGroup.java:[line 69]
M V EI: org.apache.hadoop.ozone.om.helpers.OmMultipartAbortInfo.getOmMultipartKeyInfo() may expose internal representation by returning OmMultipartAbortInfo.omMultipartKeyInfo  At OmMultipartAbortInfo.java:[line 49]
M V EI2: org.apache.hadoop.ozone.om.helpers.OmMultipartAbortInfo$Builder.setMultipartKeyInfo(OmMultipartKeyInfo) may expose internal representation by storing an externally mutable object into OmMultipartAbortInfo$Builder.omMultipartKeyInfo  At OmMultipartAbortInfo.java:[line 76]
M V EI: org.apache.hadoop.ozone.om.helpers.OmMultipartUploadCompleteList.getMultipartMap() may expose internal representation by returning OmMultipartUploadCompleteList.multipartMap  At OmMultipartUploadCompleteList.java:[line 48]
M V EI: org.apache.hadoop.ozone.om.helpers.OmMultipartUploadList.getUploads() may expose internal representation by returning OmMultipartUploadList.uploads  At OmMultipartUploadList.java:[line 44]
M V EI2: org.apache.hadoop.ozone.om.helpers.OmMultipartUploadList.setUploads(List) may expose internal representation by storing an externally mutable object into OmMultipartUploadList.uploads  At OmMultipartUploadList.java:[line 49]
M V EI2: org.apache.hadoop.ozone.om.helpers.OmMultipartUploadList$Builder.setUploads(List) may expose internal representation by storing an externally mutable object into OmMultipartUploadList$Builder.uploads  At OmMultipartUploadList.java:[line 77]
M V EI: org.apache.hadoop.ozone.om.helpers.OmMultipartUploadListParts.getPartInfoList() may expose internal representation by returning OmMultipartUploadListParts.partInfoList  At OmMultipartUploadListParts.java:[line 65]
M V EI: org.apache.hadoop.ozone.om.helpers.OmPrefixInfo.getAcls() may expose internal representation by returning OmPrefixInfo.acls  At OmPrefixInfo.java:[line 64]
M V EI: org.apache.hadoop.ozone.om.helpers.OmRenameKeys.getFromAndToKey() may expose internal representation by returning OmRenameKeys.fromAndToKey  At OmRenameKeys.java:[line 51]
M V EI: org.apache.hadoop.ozone.om.helpers.OmRenameKeys.getFromKeyAndToKeyInfo() may expose internal representation by returning OmRenameKeys.fromKeyAndToKeyInfo  At OmRenameKeys.java:[line 55]
M V EI2: new org.apache.hadoop.ozone.om.helpers.OmRenameKeys(String, String, Map, Map) may expose internal representation by storing an externally mutable object into OmRenameKeys.fromAndToKey  At OmRenameKeys.java:[line 38]
M V EI2: new org.apache.hadoop.ozone.om.helpers.OmRenameKeys(String, String, Map, Map) may expose internal representation by storing an externally mutable object into OmRenameKeys.fromKeyAndToKeyInfo  At OmRenameKeys.java:[line 39]
M V EI: org.apache.hadoop.ozone.om.helpers.OpenKeySession.getKeyInfo() may expose internal representation by returning OpenKeySession.keyInfo  At OpenKeySession.java:[line 47]
M V EI2: new org.apache.hadoop.ozone.om.helpers.OpenKeySession(long, OmKeyInfo, long) may expose internal representation by storing an externally mutable object into OpenKeySession.keyInfo  At OpenKeySession.java:[line 38]
M V EI: org.apache.hadoop.ozone.om.helpers.OzoneFileStatus.getKeyInfo() may expose internal representation by returning OzoneFileStatus.keyInfo  At OzoneFileStatus.java:[line 55]
M V EI2: new org.apache.hadoop.ozone.om.helpers.OzoneFileStatus(OmKeyInfo, long, boolean) may expose internal representation by storing an externally mutable object into OzoneFileStatus.keyInfo  At OzoneFileStatus.java:[line 49]
M V EI: org.apache.hadoop.ozone.om.helpers.RepeatedOmKeyInfo.getOmKeyInfoList() may expose internal representation by returning RepeatedOmKeyInfo.omKeyInfoList  At RepeatedOmKeyInfo.java:[line 87]
M V EI2: new org.apache.hadoop.ozone.om.helpers.RepeatedOmKeyInfo(List, long) may expose internal representation by storing an externally mutable object into RepeatedOmKeyInfo.omKeyInfoList  At RepeatedOmKeyInfo.java:[line 72]
M V EI2: org.apache.hadoop.ozone.om.helpers.RepeatedOmKeyInfo$Builder.setOmKeyInfos(List) may expose internal representation by storing an externally mutable object into RepeatedOmKeyInfo$Builder.omKeyInfos  At RepeatedOmKeyInfo.java:[line 163]
M V EI: org.apache.hadoop.ozone.om.helpers.S3VolumeContext.getOmVolumeArgs() may expose internal representation by returning S3VolumeContext.omVolumeArgs  At S3VolumeContext.java:[line 44]
M V EI2: new org.apache.hadoop.ozone.om.helpers.S3VolumeContext(OmVolumeArgs, String) may expose internal representation by storing an externally mutable object into S3VolumeContext.omVolumeArgs  At S3VolumeContext.java:[line 39]
M V EI2: org.apache.hadoop.ozone.om.helpers.S3VolumeContext$Builder.setOmVolumeArgs(OmVolumeArgs) may expose internal representation by storing an externally mutable object into S3VolumeContext$Builder.omVolumeArgs  At S3VolumeContext.java:[line 79]
M V EI: org.apache.hadoop.ozone.om.helpers.ServiceInfo.getOmRoleInfo() may expose internal representation by returning ServiceInfo.omRoleInfo  At ServiceInfo.java:[line 159]
M V EI: org.apache.hadoop.ozone.om.helpers.ServiceInfo.getPorts() may expose internal representation by returning ServiceInfo.ports  At ServiceInfo.java:[line 128]
M V EI: org.apache.hadoop.ozone.om.helpers.ServiceInfo.getServerDefaults() may expose internal representation by returning ServiceInfo.serverDefaults  At ServiceInfo.java:[line 168]
M V EI2: org.apache.hadoop.ozone.om.helpers.ServiceInfo$Builder.setOmRoleInfo(OzoneManagerProtocolProtos$OMRoleInfo) may expose internal representation by storing an externally mutable object into ServiceInfo$Builder.omRoleInfo  At ServiceInfo.java:[line 289]
M V EI2: org.apache.hadoop.ozone.om.helpers.ServiceInfo$Builder.setServerDefaults(OzoneFsServerDefaults) may expose internal representation by storing an externally mutable object into ServiceInfo$Builder.serverDefaults  At ServiceInfo.java:[line 294]
M V EI: org.apache.hadoop.ozone.om.helpers.ServiceInfoEx.getCaCertPemList() may expose internal representation by returning ServiceInfoEx.caCertPemList  At ServiceInfoEx.java:[line 56]
M V EI: org.apache.hadoop.ozone.om.helpers.ServiceInfoEx.getServiceInfoList() may expose internal representation by returning ServiceInfoEx.infoList  At ServiceInfoEx.java:[line 48]
M V EI2: new org.apache.hadoop.ozone.om.helpers.ServiceInfoEx(List, String, List) may expose internal representation by storing an externally mutable object into ServiceInfoEx.caCertPemList  At ServiceInfoEx.java:[line 44]
M V EI2: new org.apache.hadoop.ozone.om.helpers.ServiceInfoEx(List, String, List) may expose internal representation by storing an externally mutable object into ServiceInfoEx.infoList  At ServiceInfoEx.java:[line 42]
M V EI: org.apache.hadoop.ozone.om.helpers.SnapshotInfo.getCreateTransactionInfo() may expose internal representation by returning SnapshotInfo.createTransactionInfo  At SnapshotInfo.java:[line 627]
M V EI: org.apache.hadoop.ozone.om.helpers.SnapshotInfo.getLastTransactionInfo() may expose internal representation by returning SnapshotInfo.lastTransactionInfo  At SnapshotInfo.java:[line 623]
M V EI2: org.apache.hadoop.ozone.om.helpers.SnapshotInfo.setCreateTransactionInfo(ByteString) may expose internal representation by storing an externally mutable object into SnapshotInfo.createTransactionInfo  At SnapshotInfo.java:[line 631]
M V EI2: org.apache.hadoop.ozone.om.helpers.SnapshotInfo.setLastTransactionInfo(ByteString) may expose internal representation by storing an externally mutable object into SnapshotInfo.lastTransactionInfo  At SnapshotInfo.java:[line 635]
M V EI2: org.apache.hadoop.ozone.om.helpers.SnapshotInfo$Builder.setCreateTransactionInfo(ByteString) may expose internal representation by storing an externally mutable object into SnapshotInfo$Builder.createTransactionInfo  At SnapshotInfo.java:[line 376]
M V EI2: org.apache.hadoop.ozone.om.helpers.SnapshotInfo$Builder.setLastTransactionInfo(ByteString) may expose internal representation by storing an externally mutable object into SnapshotInfo$Builder.lastTransactionInfo  At SnapshotInfo.java:[line 381]
M V EI: org.apache.hadoop.ozone.om.helpers.TenantStateList.getTenantStateList() may expose internal representation by returning TenantStateList.tenantStateList  At TenantStateList.java:[line 34]
M V EI2: new org.apache.hadoop.ozone.om.helpers.TenantStateList(List) may expose internal representation by storing an externally mutable object into TenantStateList.tenantStateList  At TenantStateList.java:[line 38]
M V EI: org.apache.hadoop.ozone.om.helpers.TenantUserInfoValue.getAccessIdInfoList() may expose internal representation by returning TenantUserInfoValue.accessIdInfoList  At TenantUserInfoValue.java:[line 34]
M V EI2: new org.apache.hadoop.ozone.om.helpers.TenantUserInfoValue(List) may expose internal representation by storing an externally mutable object into TenantUserInfoValue.accessIdInfoList  At TenantUserInfoValue.java:[line 38]
M V EI: org.apache.hadoop.ozone.om.helpers.TenantUserList.getUserAccessIds() may expose internal representation by returning TenantUserList.userAccessIds  At TenantUserList.java:[line 40]
M V EI2: new org.apache.hadoop.ozone.om.helpers.TenantUserList(List) may expose internal representation by storing an externally mutable object into TenantUserList.userAccessIds  At TenantUserList.java:[line 36]
M V EI: org.apache.hadoop.ozone.om.helpers.WithMetadata$Builder.getMetadata() may expose internal representation by returning WithMetadata$Builder.metadata  At WithMetadata.java:[line 85]
{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org