Skip to content

[Bug] Failed to open ledger #17520

@Technoboy-

Description

@Technoboy-

Search before asking

  • I searched in the 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

Anything else?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

Labels

Stalerelease/blockerIndicate the PR or issue that should block the release until it gets resolvedtype/bugThe PR fixed a bug or issue reported a bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions