You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@zookeeper.apache.org by "li4wang (via GitHub)" <gi...@apache.org> on 2023/08/07 19:09:42 UTC

[GitHub] [zookeeper] li4wang opened a new pull request, #2043: ZOOKEEPER-4730: Incorrect datadir and logdir size reported from admin and and 4lw dirs command

li4wang opened a new pull request, #2043:
URL: https://github.com/apache/zookeeper/pull/2043

   Author: Li Wang <li...@apple.com>


-- 
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: notifications-unsubscribe@zookeeper.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] ZOOKEEPER-4730: Incorrect datadir and logdir size reported from admin and and 4lw dirs command [zookeeper]

Posted by "maoling (via GitHub)" <gi...@apache.org>.
maoling commented on PR #2043:
URL: https://github.com/apache/zookeeper/pull/2043#issuecomment-1933501150

   @li4wang 
   Thanks for your contribution.


-- 
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: notifications-unsubscribe@zookeeper.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [zookeeper] sonatype-lift[bot] commented on pull request #2043: ZOOKEEPER-4730: Incorrect datadir and logdir size reported from admin and and 4lw dirs command

Posted by "sonatype-lift[bot] (via GitHub)" <gi...@apache.org>.
sonatype-lift[bot] commented on PR #2043:
URL: https://github.com/apache/zookeeper/pull/2043#issuecomment-1668436469

   ## Sonatype Lift is retiring
   Sonatype Lift will be retiring on <b>Sep 12, 2023</b>, with its analysis stopping on Aug 12, 2023. We understand that this news may come as a disappointment, and Sonatype is committed to helping you transition off it seamlessly. If you’d like to retain your data, please export your issues from the web console.
   We are extremely grateful and thank you for your support over the years.
   
   <b>[📖 Read about the impacts and timeline](https://www.sonatype.com/lift-retirement)</b>


-- 
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: notifications-unsubscribe@zookeeper.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [zookeeper] kezhuw commented on a diff in pull request #2043: ZOOKEEPER-4730: Incorrect datadir and logdir size reported from admin and and 4lw dirs command

Posted by "kezhuw (via GitHub)" <gi...@apache.org>.
kezhuw commented on code in PR #2043:
URL: https://github.com/apache/zookeeper/pull/2043#discussion_r1295909476


##########
zookeeper-server/src/main/java/org/apache/zookeeper/server/ZooKeeperServer.java:
##########
@@ -664,7 +664,7 @@ public long getLogDirSize() {
         if (zkDb == null) {
             return 0L;
         }
-        File path = zkDb.snapLog.getSnapDir();
+        File path = zkDb.snapLog.getDataDir();

Review Comment:
   I think it is a good to rename `getDataDir` to something like `getLogDir` or `getDataLogDir`. I saw `dumpConf` prints it as `dataLogDir`.



-- 
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: notifications-unsubscribe@zookeeper.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] ZOOKEEPER-4730: Incorrect datadir and logdir size reported from admin and and 4lw dirs command [zookeeper]

Posted by "li4wang (via GitHub)" <gi...@apache.org>.
li4wang commented on PR #2043:
URL: https://github.com/apache/zookeeper/pull/2043#issuecomment-1853083566

   Can we get one more review for this, so it can be merged. Thanks.


-- 
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: notifications-unsubscribe@zookeeper.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] ZOOKEEPER-4730: Incorrect datadir and logdir size reported from admin and and 4lw dirs command [zookeeper]

Posted by "maoling (via GitHub)" <gi...@apache.org>.
maoling merged PR #2043:
URL: https://github.com/apache/zookeeper/pull/2043


-- 
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: notifications-unsubscribe@zookeeper.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [zookeeper] li4wang commented on a diff in pull request #2043: ZOOKEEPER-4730: Incorrect datadir and logdir size reported from admin and and 4lw dirs command

Posted by "li4wang (via GitHub)" <gi...@apache.org>.
li4wang commented on code in PR #2043:
URL: https://github.com/apache/zookeeper/pull/2043#discussion_r1300409779


##########
zookeeper-server/src/main/java/org/apache/zookeeper/server/ZooKeeperServer.java:
##########
@@ -664,7 +664,7 @@ public long getLogDirSize() {
         if (zkDb == null) {
             return 0L;
         }
-        File path = zkDb.snapLog.getSnapDir();
+        File path = zkDb.snapLog.getDataDir();

Review Comment:
   Renamed.
   
   I was debating on that too. Normally we want to handle code refactoring separately. I think it's not too bad if we just rename the `getDataDir` to `getDataLogDir`



-- 
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: notifications-unsubscribe@zookeeper.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org