Swaminathan Balachandran created HDDS-14153:
-----------------------------------------------
Summary: SnapshotLocalDataProvider should return an
Optional<SnapshotLocalData> for previous snapshotLocalData to avoid inadvertent
NPE
Key: HDDS-14153
URL: https://issues.apache.org/jira/browse/HDDS-14153
Project: Apache Ozone
Issue Type: Sub-task
Reporter: Swaminathan Balachandran
Assignee: Swaminathan Balachandran
There was NPE spotted in SnapshotDefragService logging even though not
disastrous. If this null check is not present in other places can be disastrous
returning Optional would be a better contract for the interface to avoid
inadvertent NPE issues.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]