zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hamsterready <...@git.apache.org>
Subject [GitHub] zookeeper issue #475: Fixed PurgeTxnLog params order in the zkCleanup.sh
Date Thu, 01 Mar 2018 14:55:29 GMT
Github user hamsterready commented on the issue:

    https://github.com/apache/zookeeper/pull/475
  
    See report here: https://github.com/31z4/zookeeper-docker/issues/30
    
    Original version:
    
    ```
    bash-4.4# ./bin/zkCleanup.sh
    Usage:
    PurgeTxnLog dataLogDir [snapDir] -n count
            dataLogDir -- path to the txn log directory
            snapDir -- path to the snapshot directory
            count -- the number of old snaps/logs you want to keep, value should be greater
than or equal to 3
    bash-4.4# ./bin/zkCleanup.sh  -n 4
    bash-4.4# echo $?
    0
    bash-4.4#
    ```
    
    And here is after the change:
    ```
    bash-4.4# vi bin/zkCleanup.sh
    bash-4.4# ./bin/zkCleanup.sh  -n 4
    2018-03-01 14:51:42,420 [myid:] - INFO  [main:PurgeTxnLog@156] - Removing file: Mar 1,
2018 2:08:30 PM  /data/version-2/log.203c92a69
    Removing file: Mar 1, 2018 2:08:30 PM   /data/version-2/log.203c92a69
    2018-03-01 14:51:42,448 [myid:] - INFO  [main:PurgeTxnLog@156] - Removing file: Mar 1,
2018 2:19:10 PM  /data/version-2/log.203cce100
    Removing file: Mar 1, 2018 2:19:10 PM   /data/version-2/log.203cce100
    [.. cut for clarity...]
    Removing file: Mar 1, 2018 2:19:11 PM   /datalog/version-2/snapshot.203ce21e8
    2018-03-01 14:51:42,910 [myid:] - INFO  [main:PurgeTxnLog@156] - Removing file: Mar 1,
2018 2:22:10 PM  /datalog/version-2/snapshot.203cf2928
    Removing file: Mar 1, 2018 2:22:10 PM   /datalog/version-2/snapshot.203cf2928
    
    ```


---

Mime
View raw message