smengcl commented on code in PR #8982:
URL: https://github.com/apache/ozone/pull/8982#discussion_r2349433885
##########
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestOMDbCheckpointServlet.java:
##########
@@ -755,7 +755,8 @@ private Set<String> getFiles(Path path, int truncateLength,
}
String filename = String.valueOf(file.getFileName());
if (!filename.startsWith("fabricated") &&
- !filename.startsWith(OZONE_RATIS_SNAPSHOT_COMPLETE_FLAG_NAME)) {
+ !filename.startsWith(OZONE_RATIS_SNAPSHOT_COMPLETE_FLAG_NAME) &&
+ !(filename.equals("archive") &&
file.getParent().getFileName().toString().startsWith("om.db"))) {
Review Comment:
findbugs warning:
```
M D NP: Possible null pointer dereference in
org.apache.hadoop.ozone.om.TestOMDbCheckpointServlet.getFiles(Path, int, Set)
due to return value of called method Dereferenced at
TestOMDbCheckpointServlet.java:[line 759]
```
https://github.com/swamirishi/ozone/actions/runs/17618881306/job/50059192799
--
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]