You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bookkeeper.apache.org by GitBox <gi...@apache.org> on 2021/02/01 23:01:27 UTC

[GitHub] [bookkeeper] dlg99 opened a new issue #2574: BKAsyncLogWriter swallows rootcause of the WriteException

dlg99 opened a new issue #2574:
URL: https://github.com/apache/bookkeeper/issues/2574


   **BUG REPORT**
   
   ***Describe the bug***
   
   Hard to troubleshoot error in case BKAsyncLogWriter throws "writer has been closed due to error"
   
   ***To Reproduce***
   
   got the exception like 
   ```
   17:06:19.441 [grpc-default-executor-390] ERROR org.apache.bookkeeper.stream.storage.impl.kv.TableStoreImpl - Failed to process put request key: ...
   java.util.concurrent.CompletionException: org.apache.distributedlog.exceptions.WriteException: Write rejected because stream ... has encountered an error : writer has been closed due to error.
   	at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:331) ~[?:?]
   	at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:346) ~[?:?]
   	at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:870) [?:?]
   	at java.util.concurrent.CompletableFuture.uniWhenCompleteStage(CompletableFuture.java:883) [?:?]
   	at java.util.concurrent.CompletableFuture.whenComplete(CompletableFuture.java:2251) [?:?]
   	at org.apache.bookkeeper.common.concurrent.FutureUtils.stats(FutureUtils.java:365) ~[org.apache.bookkeeper-bookkeeper-common-4.11.2.jar:4.11.2]
   	at org.apache.distributedlog.BKAsyncLogWriter.write(BKAsyncLogWriter.java:415) ~[org.apache.distributedlog-distributedlog-core-4.11.2.jar:4.11.2]
   	at org.apache.bookkeeper.statelib.impl.journal.AbstractStateStoreWithJournal.writeCommandBufReturnTxId(AbstractStateStoreWithJournal.java:510) ~[org.apache.bookkeeper-statelib-4.11.2.jar:4.11.2]
   	at org.apache.bookkeeper.statelib.impl.mvcc.MVCCAsyncBytesStoreImpl.writeCommandReturnTxId(MVCCAsyncBytesStoreImpl.java:87) ~[org.apache.bookkeeper-statelib-4.11.2.jar:4.11.2]
   	at org.apache.bookkeeper.statelib.impl.mvcc.MVCCAsyncBytesStoreImpl.put(MVCCAsyncBytesStoreImpl.java:111) ~[org.apache.bookkeeper-statelib-4.11.2.jar:4.11.2]
   ...
   Caused by: org.apache.distributedlog.exceptions.WriteException: Write rejected because stream ... has encountered an error : writer has been closed due to error.
   	at org.apache.distributedlog.BKAsyncLogWriter.getCachedLogSegmentWriter(BKAsyncLogWriter.java:189) ~[org.apache.distributedlog-distributedlog-core-4.11.2.jar:4.11.2]
   	at org.apache.distributedlog.BKAsyncLogWriter.asyncWrite(BKAsyncLogWriter.java:280) ~[org.apache.distributedlog-distributedlog-core-4.11.2.jar:4.11.2]
   	at org.apache.distributedlog.BKAsyncLogWriter.write(BKAsyncLogWriter.java:416) ~[org.apache.distributedlog-distributedlog-core-4.11.2.jar:4.11.2]
   	... 29 more
   ```
   
   No original exception that caused the WriteException
   
   ***Expected behavior***
   
   rootcause exception in the log
   
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [bookkeeper] eolivelli closed issue #2574: BKAsyncLogWriter swallows rootcause of the WriteException

Posted by GitBox <gi...@apache.org>.
eolivelli closed issue #2574:
URL: https://github.com/apache/bookkeeper/issues/2574


   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org