Uploaded image for project: 'Bookkeeper'
  1. Bookkeeper
  2. BOOKKEEPER-237 Automatic recovery of under-replicated ledgers and its entries
  3. BOOKKEEPER-376

LedgerManagers should consider 'underreplication' node as a special Znode

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.2.0
    • Labels:
      None

      Description

      Saw this while running the RW tests:

      2012-08-22 23:59:35,649 - WARN  - [GarbageCollectorThread:HierarchicalLedgerManager@354] - Exception during garbage collecting ledgers for underreplication of /ledgers
      java.io.IOException: java.lang.NumberFormatException: For input string: "underreplicationlocks0000"
      	at org.apache.bookkeeper.meta.HierarchicalLedgerManager.getLedgerId(HierarchicalLedgerManager.java:236)
      	at org.apache.bookkeeper.meta.HierarchicalLedgerManager.getStartLedgerIdByLevel(HierarchicalLedgerManager.java:254)
      	at org.apache.bookkeeper.meta.HierarchicalLedgerManager.doGcByLevel(HierarchicalLedgerManager.java:388)
      	at org.apache.bookkeeper.meta.HierarchicalLedgerManager.garbageCollectLedgers(HierarchicalLedgerManager.java:351)
      	at org.apache.bookkeeper.bookie.GarbageCollectorThread.doGcLedgers(GarbageCollectorThread.java:226)
      	at org.apache.bookkeeper.bookie.GarbageCollectorThread.run(GarbageCollectorThread.java:195)
      Caused by: java.lang.NumberFormatException: For input string: "underreplicationlocks0000"
      	at java.lang.NumberFormatException.forInputString(Unknown Source)
      	at java.lang.Long.parseLong(Unknown Source)
      	at java.lang.Long.parseLong(Unknown Source)
      	at org.apache.bookkeeper.meta.HierarchicalLedgerManager.getLedgerId(HierarchicalLedgerManager.java:234)
      	... 5 more
      

        Attachments

        1. BOOKKEEPER-376.patch
          1 kB
          Uma Maheswara Rao G
        2. BOOKKEEPER-376.patch
          9 kB
          Uma Maheswara Rao G

          Activity

            People

            • Assignee:
              umamaheswararao Uma Maheswara Rao G
              Reporter:
              umamaheswararao Uma Maheswara Rao G

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment