You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "smengcl (via GitHub)" <gi...@apache.org> on 2025/07/17 01:15:23 UTC
[PR] HDDS-13456. Print container DB path when DB does not exist in parseKVContainerData [ozone]
smengcl opened a new pull request, #8821:
URL: https://github.com/apache/ozone/pull/8821
## What changes were proposed in this pull request?
Print container DB path for diagnostics and debugging purpose when DB path doesn't exist in `parseKVContainerData` in case it (e.g. HDDS-10061) happens later again.
https://github.com/apache/ozone/blob/b40c95e9172ab35a86c5c9e655076a2394fe5ea4/hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/keyvalue/helpers/KeyValueContainerUtil.java#L236-L244
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-13456
## How was this patch tested?
- n/a
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-13456. Print container DB path when DB does not exist in parseKVContainerData [ozone]
Posted by "jojochuang (via GitHub)" <gi...@apache.org>.
jojochuang merged PR #8821:
URL: https://github.com/apache/ozone/pull/8821
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-13456. Print container DB path when DB does not exist in parseKVContainerData [ozone]
Posted by "Copilot (via GitHub)" <gi...@apache.org>.
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-13456. Print container DB path when DB does not exist in parseKVContainerData [ozone]
Posted by "smengcl (via GitHub)" <gi...@apache.org>.
smengcl commented on PR #8821:
URL: https://github.com/apache/ozone/pull/8821#issuecomment-3091205454
Thanks @swamirishi for reviewing this.
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-13456. Print container DB path when DB does not exist in parseKVContainerData [ozone]
Posted by "smengcl (via GitHub)" <gi...@apache.org>.
smengcl commented on PR #8821:
URL: https://github.com/apache/ozone/pull/8821#issuecomment-3092848432
Thanks @jojochuang for reviewing this.
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-13456. Print container DB path when DB does not exist in parseKVContainerData [ozone]
Posted by "jojochuang (via GitHub)" <gi...@apache.org>.
jojochuang commented on PR #8821:
URL: https://github.com/apache/ozone/pull/8821#issuecomment-3091312686
Thanks for taking care of it!
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org