errose28 commented on code in PR #8789:
URL: https://github.com/apache/ozone/pull/8789#discussion_r2226847545
##########
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/dn/scanner/TestBackgroundContainerDataScannerIntegration.java:
##########
@@ -85,7 +85,7 @@ void testCorruptionDetected(TestContainerCorruptions
corruption)
assertTrue(containerChecksumFileExists(containerID));
waitForScmToSeeReplicaState(containerID, CLOSED);
- long initialReportedDataChecksum =
getContainerReplica(containerID).getDataChecksum();
+ long initialReportedDataChecksum =
getContainerReplica(containerID).getChecksums().getDataChecksum();
Review Comment:
For this use case we only need to use the `ContainerChecksums` objects and
compare them. We don't need to further extract the long values.
There is a new `assertReplicaChecksumMatches` introduced in #8565 that can
take the `ContainerChecksums` object as a parameter instead of a long.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]