Gargi-jais11 commented on code in PR #9318:
URL: https://github.com/apache/ozone/pull/9318#discussion_r2548831144
##########
hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/utils/HddsServerUtil.java:
##########
@@ -422,7 +422,7 @@ public static Collection<String>
getOzoneDatanodeRatisDirectory(
if (rawLocations.isEmpty()) {
rawLocations = new ArrayList<>(1);
- rawLocations.add(ServerUtils.getDefaultRatisDirectory(conf));
+ rawLocations.add(ServerUtils.getDefaultRatisDirectory(conf, "dn"));
Review Comment:
I think the **DataNode UUID** cannot be used because if I am not wrong from
the code flow it apprears:
```
First time DataNode starts on a fresh system :
UUID is generated randomly (not on disk)
Ratis directory created: /data/metadata/dn.ratis
DataNode crashes before UUID is persisted
On restart → NEW random UUID generated
❌ If we used UUID in path → would look for /data/metadata/NEW_UUID.ratis
❌ All previous Ratis data lost!
```
--
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]