ZooKeeper
  1. ZooKeeper
  2. ZOOKEEPER-504

ClassCastException in LedgerManagementProcessor

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.2.0
    • Fix Version/s: 3.3.0
    • Component/s: contrib-bookkeeper
    • Labels:
      None

      Description

      java.lang.ClassCastException: org.apache.bookkeeper.client.LedgerManagementProcessor$OpenLedgerOp cannot be cast to org.apache.bookkeeper.client.LedgerManagementProcessor$CloseLedgerOp
      at org.apache.bookkeeper.client.LedgerManagementProcessor.processResult(LedgerManagementProcessor.java:1083)

      This seems to be happening because its a nested switch case statement. And the OPEN: case, doesn't ever call a break. It only calls a break from the inner switch-case and hence falls through into the CLOSE: case.

      1. ZOOKEEPER-504.patch
        1 kB
        Utkarsh Srivastava
      2. ZOOKEEPER-504.patch
        1 kB
        Utkarsh Srivastava
      3. ZOOKEEPER-504.1.patch
        2 kB
        Utkarsh Srivastava

        Issue Links

          Activity

            People

            • Assignee:
              Utkarsh Srivastava
              Reporter:
              Utkarsh Srivastava
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development