Copilot commented on code in PR #8821:
URL: https://github.com/apache/ozone/pull/8821#discussion_r2211935455
##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/keyvalue/helpers/KeyValueContainerUtil.java:
##########
@@ -236,8 +236,8 @@ public static void
parseKVContainerData(KeyValueContainerData kvContainerData,
File dbFile = KeyValueContainerLocationUtil.getContainerDBFile(
kvContainerData);
if (!dbFile.exists()) {
- LOG.error("Container DB file is missing for ContainerID {}. " +
- "Skipping loading of this container.", containerID);
+ LOG.error("Container DB file is missing at {} for ContainerID {}. " +
+ "Skipping loading of this container.", dbFile, containerID);
// Don't further process this container, as it is missing db file.
throw new IOException("Container DB file is missing for containerID "
+ containerID);
Review Comment:
The IOException message should also include the DB file path for consistency
with the log message above. Consider updating it to: "Container DB file is
missing at " + dbFile + " for containerID " + containerID
```suggestion
throw new IOException("Container DB file is missing at " + dbFile +
" for containerID " + containerID);
```
--
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]