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

ClassCastException in LedgerManagementProcessor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.0
    • 3.3.0
    • contrib-bookkeeper
    • 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.

      Attachments

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

        Issue Links

          Activity

            People

              utkarsh Utkarsh Srivastava
              utkarsh Utkarsh Srivastava
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: