You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/09/07 13:11:25 UTC

[GitHub] [pulsar] Technoboy- opened a new issue, #17520: [Bug] Failed to open ledger

Technoboy- opened a new issue, #17520:
URL: https://github.com/apache/pulsar/issues/17520

   ### Search before asking
   
   - [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar.
   
   
   ### Version
   
   - Master branch.
   - Branch-2.11.
   
   
   ### Minimal reproduce step
   
   Run test `ReplicatorTest#testReplicationWithSchema` in the master branch.
   
   The test could run success if revert #17414.
   
   ### What did you expect to see?
   
   The test should pass
   
   ### What did you see instead?
   
   The test fails with :
   ```
   org.apache.pulsar.broker.service.schema.exceptions.SchemaException: Error while recovering ledger -  ledger=2 - operation=Failed to open ledger
   	at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:332) ~[?:?]
   	at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:347) ~[?:?]
   	at java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1141) ~[?:?]
   	at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510) ~[?:?]
   	at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2162) ~[?:?]
   ```
   
   The root cause come from reading bk
   ![image](https://user-images.githubusercontent.com/6297296/188886197-02e32737-2a5f-4143-b957-ea9c831f6065.png)
   
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [ ] I'm willing to submit a PR!


-- 
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: commits-unsubscribe@pulsar.apache.org.apache.org

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


[GitHub] [pulsar] zymap commented on issue #17520: [Bug] Failed to open ledger

Posted by GitBox <gi...@apache.org>.
zymap commented on issue #17520:
URL: https://github.com/apache/pulsar/issues/17520#issuecomment-1240126841

   I am taking a look


-- 
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: commits-unsubscribe@pulsar.apache.org

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


[GitHub] [pulsar] tisonkun closed issue #17520: [Bug] Failed to open ledger

Posted by GitBox <gi...@apache.org>.
tisonkun closed issue #17520: [Bug] Failed to open ledger
URL: https://github.com/apache/pulsar/issues/17520


-- 
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: commits-unsubscribe@pulsar.apache.org

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


[GitHub] [pulsar] tisonkun commented on issue #17520: [Bug] Failed to open ledger

Posted by GitBox <gi...@apache.org>.
tisonkun commented on issue #17520:
URL: https://github.com/apache/pulsar/issues/17520#issuecomment-1344390950

   Closed as fixed.


-- 
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: commits-unsubscribe@pulsar.apache.org

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


[GitHub] [pulsar] zymap commented on issue #17520: [Bug] Failed to open ledger

Posted by GitBox <gi...@apache.org>.
zymap commented on issue #17520:
URL: https://github.com/apache/pulsar/issues/17520#issuecomment-1246174361

   Fixed through this PR https://github.com/apache/bookkeeper/pull/3480


-- 
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: commits-unsubscribe@pulsar.apache.org

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


[GitHub] [pulsar] github-actions[bot] commented on issue #17520: [Bug] Failed to open ledger

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #17520:
URL: https://github.com/apache/pulsar/issues/17520#issuecomment-1279634600

   The issue had no activity for 30 days, mark with Stale label.


-- 
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: commits-unsubscribe@pulsar.apache.org

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


[GitHub] [pulsar] zymap commented on issue #17520: [Bug] Failed to open ledger

Posted by GitBox <gi...@apache.org>.
zymap commented on issue #17520:
URL: https://github.com/apache/pulsar/issues/17520#issuecomment-1241458556

   The root cause is [this PR ](https://github.com/apache/bookkeeper/pull/3383).
   
   The problem is that we cannot call [await() ](https://github.com/apache/bookkeeper/blob/be7053b850a3ad53c09baeac15b01cabc8e9412a/bookkeeper-server/src/main/java/org/apache/bookkeeper/proto/PacketProcessorBase.java#L139)from an IO thread, even if we don’t have the consolidation in place
   if the socket buffer is full, that blocking call would cause a deadlock, also without the consolidate
   the await() was added, under the assumption that all these calls were coming from a thread pool dedicated to read operations.
   
   I will push a fix to bookkeeper side and create a new release for fixing this.


-- 
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: commits-unsubscribe@pulsar.apache.org

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


[GitHub] [pulsar] Technoboy- commented on issue #17520: [Bug] Failed to open ledger

Posted by GitBox <gi...@apache.org>.
Technoboy- commented on issue #17520:
URL: https://github.com/apache/pulsar/issues/17520#issuecomment-1239372011

   Need some help for this issue @zymap @horizonzy 


-- 
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: commits-unsubscribe@pulsar.apache.org

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