Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-4829

Support DatadirCleanup in minutes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.10.0
    • None

    Description

      On the cloud, space can be limited. Currently, the DatadirCleanup only supports hours; we should also support cleanup intervals in minutes.
       

      2024-02-20 20:55:28,862 - WARN  [QuorumPeer[myid=5](plain=disabled)(secure=[0:0:0:0:0:0:0:0]:50512):o.a.z.s.q.Follower@131] - Exception when following the leader
      java.io.IOException: No space left on device
          at java.base/java.io.FileOutputStream.writeBytes(Native Method)
          at java.base/java.io.FileOutputStream.write(FileOutputStream.java:354)
          at org.apache.zookeeper.common.AtomicFileOutputStream.write(AtomicFileOutputStream.java:72)
          at java.base/sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:233)
          at java.base/sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:312)
          at java.base/sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:316)
          at java.base/sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:153)
          at java.base/java.io.OutputStreamWriter.flush(OutputStreamWriter.java:251)
          at java.base/java.io.BufferedWriter.flush(BufferedWriter.java:257)
          at org.apache.zookeeper.common.AtomicFileWritingIdiom.<init>(AtomicFileWritingIdiom.java:72)
          at org.apache.zookeeper.common.AtomicFileWritingIdiom.<init>(AtomicFileWritingIdiom.java:54)
          at org.apache.zookeeper.server.quorum.QuorumPeer.writeLongToFile(QuorumPeer.java:2229)
          at org.apache.zookeeper.server.quorum.QuorumPeer.setAcceptedEpoch(QuorumPeer.java:2258)
          at org.apache.zookeeper.server.quorum.Learner.registerWithLeader(Learner.java:511)
          at org.apache.zookeeper.server.quorum.Follower.followLeader(Follower.java:91)
          at org.apache.zookeeper.server.quorum.QuorumPeer.run(QuorumPeer.java:1551)
      2024-02-20 20:55:28,863 - INFO  [QuorumPeer[myid=5](plain=disabled)(secure=[0:0:0:0:0:0:0:0]:50512):o.a.z.s.q.Follower@145]

      Attachments

        Issue Links

          Activity

            People

              puru Purshotam Shah
              puru Purshotam Shah
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h