[jira] Updated: (ZOOKEEPER-504) ClassCastException in LedgerManagementProcessor
[ https://issues.apache.org/jira/browse/ZOOKEEPER-504?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mahadev konar updated ZOOKEEPER-504: Status: Open (was: Patch Available) cancelling the patch for now utkarsh mentioned that he had made more changes and will be uploading the changes soon... > ClassCastException in LedgerManagementProcessor > --- > > Key: ZOOKEEPER-504 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-504 > Project: Zookeeper > Issue Type: Bug > Components: contrib-bookkeeper >Affects Versions: 3.2.0 >Reporter: Utkarsh Srivastava >Assignee: Utkarsh Srivastava > Fix For: 3.3.0 > > Attachments: ZOOKEEPER-504.1.patch, ZOOKEEPER-504.patch, > ZOOKEEPER-504.patch > > > 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. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (ZOOKEEPER-504) ClassCastException in LedgerManagementProcessor
[ https://issues.apache.org/jira/browse/ZOOKEEPER-504?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Giridharan Kesavan updated ZOOKEEPER-504: - Status: Patch Available (was: Open) > ClassCastException in LedgerManagementProcessor > --- > > Key: ZOOKEEPER-504 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-504 > Project: Zookeeper > Issue Type: Bug > Components: contrib-bookkeeper >Affects Versions: 3.2.0 >Reporter: Utkarsh Srivastava >Assignee: Utkarsh Srivastava > Fix For: 3.3.0 > > Attachments: ZOOKEEPER-504.1.patch, ZOOKEEPER-504.patch, > ZOOKEEPER-504.patch > > > 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. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (ZOOKEEPER-504) ClassCastException in LedgerManagementProcessor
[ https://issues.apache.org/jira/browse/ZOOKEEPER-504?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mahadev konar updated ZOOKEEPER-504: 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. was: 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. Fix Version/s: 3.3.0 Assignee: Utkarsh Srivastava > ClassCastException in LedgerManagementProcessor > --- > > Key: ZOOKEEPER-504 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-504 > Project: Zookeeper > Issue Type: Bug > Components: contrib-bookkeeper >Affects Versions: 3.2.0 >Reporter: Utkarsh Srivastava >Assignee: Utkarsh Srivastava > Fix For: 3.3.0 > > Attachments: ZOOKEEPER-504.1.patch, ZOOKEEPER-504.patch, > ZOOKEEPER-504.patch > > > 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. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (ZOOKEEPER-504) ClassCastException in LedgerManagementProcessor
[ https://issues.apache.org/jira/browse/ZOOKEEPER-504?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Utkarsh Srivastava updated ZOOKEEPER-504: - Attachment: ZOOKEEPER-504.1.patch Oops attached wrong file. > ClassCastException in LedgerManagementProcessor > --- > > Key: ZOOKEEPER-504 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-504 > Project: Zookeeper > Issue Type: Bug > Components: contrib-bookkeeper >Affects Versions: 3.2.0 >Reporter: Utkarsh Srivastava > Attachments: ZOOKEEPER-504.1.patch, ZOOKEEPER-504.patch, > ZOOKEEPER-504.patch > > > 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. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (ZOOKEEPER-504) ClassCastException in LedgerManagementProcessor
[ https://issues.apache.org/jira/browse/ZOOKEEPER-504?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Utkarsh Srivastava updated ZOOKEEPER-504: - Attachment: ZOOKEEPER-504.patch There seem to be plenty of other problems with LedgerManagementProcessor. In this patch, I fix some of them just by visual inspection, and not by writing comprehensive test case. One pattern I saw was that after calling the callback for ops, there was no return statement, and the code would go on to do other things. I fixed all occurrences of those bugs. But my create callback is still called multiple time (ZOOKEEPER-502), and I still cant open a ledger that was not properly closed. > ClassCastException in LedgerManagementProcessor > --- > > Key: ZOOKEEPER-504 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-504 > Project: Zookeeper > Issue Type: Bug > Components: contrib-bookkeeper >Affects Versions: 3.2.0 >Reporter: Utkarsh Srivastava > Attachments: ZOOKEEPER-504.patch, ZOOKEEPER-504.patch > > > 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. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (ZOOKEEPER-504) ClassCastException in LedgerManagementProcessor
[ https://issues.apache.org/jira/browse/ZOOKEEPER-504?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Utkarsh Srivastava updated ZOOKEEPER-504: - Attachment: ZOOKEEPER-504.patch > ClassCastException in LedgerManagementProcessor > --- > > Key: ZOOKEEPER-504 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-504 > Project: Zookeeper > Issue Type: Bug > Components: contrib-bookkeeper >Affects Versions: 3.2.0 >Reporter: Utkarsh Srivastava > Attachments: ZOOKEEPER-504.patch > > > 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. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (ZOOKEEPER-504) ClassCastException in LedgerManagementProcessor
[ https://issues.apache.org/jira/browse/ZOOKEEPER-504?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Utkarsh Srivastava updated ZOOKEEPER-504: - Status: Patch Available (was: Open) > ClassCastException in LedgerManagementProcessor > --- > > Key: ZOOKEEPER-504 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-504 > Project: Zookeeper > Issue Type: Bug > Components: contrib-bookkeeper >Affects Versions: 3.2.0 >Reporter: Utkarsh Srivastava > Attachments: ZOOKEEPER-504.patch > > > 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. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (ZOOKEEPER-504) ClassCastException in LedgerManagementProcessor
[ https://issues.apache.org/jira/browse/ZOOKEEPER-504?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Utkarsh Srivastava updated ZOOKEEPER-504: - Affects Version/s: 3.2.0 Status: Patch Available (was: Open) The case that reproduces all these problem is when a client tries to open a ledger that has not been properly closed. After fixing the original classcast problem and chasing further, ran into couple more issues. Attaching the patch for 3 problems that we found. Still cant get the case to work as we get a ZK error in the asyncOpen callback, > ClassCastException in LedgerManagementProcessor > --- > > Key: ZOOKEEPER-504 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-504 > Project: Zookeeper > Issue Type: Bug > Components: contrib-bookkeeper >Affects Versions: 3.2.0 >Reporter: Utkarsh Srivastava > > 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. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (ZOOKEEPER-504) ClassCastException in LedgerManagementProcessor
[ https://issues.apache.org/jira/browse/ZOOKEEPER-504?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Utkarsh Srivastava updated ZOOKEEPER-504: - Status: Open (was: Patch Available) > ClassCastException in LedgerManagementProcessor > --- > > Key: ZOOKEEPER-504 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-504 > Project: Zookeeper > Issue Type: Bug > Components: contrib-bookkeeper >Affects Versions: 3.2.0 >Reporter: Utkarsh Srivastava > > 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. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.