wolfstudy opened a new issue #3131:
URL: https://github.com/apache/bookkeeper/issues/3131


   **BUG REPORT**
   
   ***Describe the bug***
   
   For some reason, we are decommission the bookie node as follows:
   
   - Stop Bookie process
   - Run decommission cmd
   - Run `bin/bookkeeper shell listledgers -bookieid 1.1.1.1` and check the 
bookie ledgers
   
   And when run `listledgers` cmd, the error as follows:
   
   ```
   4:48:37.972 [main-EventThread] ERROR 
org.apache.bookkeeper.tools.cli.commands.bookie.ListLedgersCommand - Unable to 
read the ledger: 98445804 information
   14:48:37.973 [main-EventThread] ERROR 
org.apache.bookkeeper.proto.BookkeeperInternalCallbacks - Error in multi 
callback : -25
   14:48:38.306 [main] ERROR 
org.apache.bookkeeper.tools.cli.commands.bookie.ListLedgersCommand - Received 
error return value while processing ledgers: -1
   14:48:38.306 [main] ERROR 
org.apache.bookkeeper.tools.cli.commands.bookie.ListLedgersCommand - Received 
Exception while processing ledgers
   org.apache.bookkeeper.client.BKException$BKReadException: Error while 
reading ledger
           at 
org.apache.bookkeeper.client.BKException.create(BKException.java:62) 
~[org.apache.bookkeeper-bookkeeper-server-4.14.1.jar:4.14.1]
           at 
org.apache.bookkeeper.tools.cli.commands.bookie.ListLedgersCommand.lambda$handler$3(ListLedgersCommand.java:176)
 ~[org.apache.bookkeeper-bookkeeper-server-4.14.1.jar:4.14.1]
           at 
org.apache.bookkeeper.meta.MetadataDrivers.lambda$runFunctionWithLedgerManagerFactory$2(MetadataDrivers.java:389)
 ~[org.apache.bookkeeper-bookkeeper-server-4.14.1.jar:4.14.1]
           at 
org.apache.bookkeeper.meta.MetadataDrivers.runFunctionWithMetadataBookieDriver(MetadataDrivers.java:347)
 [org.apache.bookkeeper-bookkeeper-server-4.14.1.jar:4.14.1]
           at 
org.apache.bookkeeper.meta.MetadataDrivers.runFunctionWithLedgerManagerFactory(MetadataDrivers.java:387)
 [org.apache.bookkeeper-bookkeeper-server-4.14.1.jar:4.14.1]
           at 
org.apache.bookkeeper.tools.cli.commands.bookie.ListLedgersCommand.handler(ListLedgersCommand.java:127)
 [org.apache.bookkeeper-bookkeeper-server-4.14.1.jar:4.14.1]
           at 
org.apache.bookkeeper.tools.cli.commands.bookie.ListLedgersCommand.apply(ListLedgersCommand.java:99)
 [org.apache.bookkeeper-bookkeeper-server-4.14.1.jar:4.14.1]
           at 
org.apache.bookkeeper.bookie.BookieShell$ListLedgersCmd.runCmd(BookieShell.java:704)
 [org.apache.bookkeeper-bookkeeper-server-4.14.1.jar:4.14.1]
           at 
org.apache.bookkeeper.bookie.BookieShell$MyCommand.runCmd(BookieShell.java:236) 
[org.apache.bookkeeper-bookkeeper-server-4.14.1.jar:4.14.1]
           at 
org.apache.bookkeeper.bookie.BookieShell.run(BookieShell.java:2235) 
[org.apache.bookkeeper-bookkeeper-server-4.14.1.jar:4.14.1]
           at 
org.apache.bookkeeper.bookie.BookieShell.main(BookieShell.java:2326) 
[org.apache.bookkeeper-bookkeeper-server-4.14.1.jar:4.14.1]
   14:48:38.421 [main] INFO  org.apache.zookeeper.ZooKeeper - Session: 
0x3061b3cc1da045b closed
   14:48:38.421 [main-EventThread] INFO  org.apache.zookeeper.ClientCnxn - 
EventThread shut down for session: 0x3061b3cc1da045b
   Exception in thread "main" 
com.google.common.util.concurrent.UncheckedExecutionException: 
org.apache.bookkeeper.client.BKException$BKReadException: Error while reading 
ledger
           at 
org.apache.bookkeeper.tools.cli.commands.bookie.ListLedgersCommand.apply(ListLedgersCommand.java:104)
           at 
org.apache.bookkeeper.bookie.BookieShell$ListLedgersCmd.runCmd(BookieShell.java:704)
           at 
org.apache.bookkeeper.bookie.BookieShell$MyCommand.runCmd(BookieShell.java:236)
           at 
org.apache.bookkeeper.bookie.BookieShell.run(BookieShell.java:2235)
           at 
org.apache.bookkeeper.bookie.BookieShell.main(BookieShell.java:2326)
   Caused by: java.util.concurrent.ExecutionException: 
org.apache.bookkeeper.client.BKException$BKReadException: Error while reading 
ledger
           at 
org.apache.bookkeeper.meta.MetadataDrivers.runFunctionWithMetadataBookieDriver(MetadataDrivers.java:352)
           at 
org.apache.bookkeeper.meta.MetadataDrivers.runFunctionWithLedgerManagerFactory(MetadataDrivers.java:387)
           at 
org.apache.bookkeeper.tools.cli.commands.bookie.ListLedgersCommand.handler(ListLedgersCommand.java:127)
           at 
org.apache.bookkeeper.tools.cli.commands.bookie.ListLedgersCommand.apply(ListLedgersCommand.java:99)
           ... 4 more
   Caused by: org.apache.bookkeeper.client.BKException$BKReadException: Error 
while reading ledger
           at 
org.apache.bookkeeper.client.BKException.create(BKException.java:62)
           at 
org.apache.bookkeeper.tools.cli.commands.bookie.ListLedgersCommand.lambda$handler$3(ListLedgersCommand.java:176)
           at 
org.apache.bookkeeper.meta.MetadataDrivers.lambda$runFunctionWithLedgerManagerFactory$2(MetadataDrivers.java:389)
           at 
org.apache.bookkeeper.meta.MetadataDrivers.runFunctionWithMetadataBookieDriver(MetadataDrivers.java:347)
           ... 7 more
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to