apache / apache/pulsar

Flaky-test: EndToEndTest.testBasic

Open
#21,288 1 comment 0 reactions 0 assignees View on GitHub
Stale type/flaky-tests
Dominant language
Java
Stars
15.3k
Forks
3.8k
Avg merge
1d 14h
Merged PRs (30d)
160

Description

### Search before asking

- [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar.

### Example failures

- [2023-09-25T12:48:26.0068335Z](https://github.com/apache/pulsar/actions/runs/6298312472/job/17100451833#step:9:1845)
- [2023-09-25T11:10:56.6117908Z](https://github.com/apache/pulsar/actions/runs/6298312472/job/17097394001#step:10:1832)

### Exception stacktrace

```
java.lang.IllegalArgumentException: Unknown backend metadata-store
at org.apache.bookkeeper.meta.MetadataDrivers.getBookieDriver(MetadataDrivers.java:281)
at org.apache.bookkeeper.meta.MetadataDrivers.getBookieDriver(MetadataDrivers.java:304)
at org.apache.bookkeeper.bookie.BookieResources.createMetadataDriver(BookieResources.java:56)
at org.apache.bookkeeper.server.EmbeddedServer$Builder.build(EmbeddedServer.java:306)
at org.apache.bookkeeper.server.Main.buildBookieServer(Main.java:277)
at org.apache.pulsar.metadata.bookkeeper.BKCluster.startBookie(BKCluster.java:318)
at org.apache.pulsar.metadata.bookkeeper.BKCluster.startNewBookie(BKCluster.java:302)
at org.apache.pulsar.metadata.bookkeeper.BKCluster.startBKCluster(BKCluster.java:188)
at org.apache.pulsar.metadata.bookkeeper.BKCluster.(BKCluster.java:141)
at org.apache.pulsar.metadata.bookkeeper.BKCluster$BKClusterConf.build(BKCluster.java:118)
at org.apache.pulsar.metadata.bookkeeper.EndToEndTest.testBasic(EndToEndTest.java:46)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.testng.internal.invokers.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:139)
at org.testng.internal.invokers.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:47)
at org.testng.internal.invokers.InvokeMethodRunnable.call(InvokeMethodRunnable.java:76)
at org.testng.internal.invokers.InvokeMethodRunnable.call(InvokeMethodRunnable.java:11)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)

```

### Are you willing to submit a PR?

- [ ] I'm willing to submit a PR!

Contributor guide

Open the contributing guide

Research direction

Start with EndToEndTest.testBasic at BKCluster.java:118-318 and the reported MetadataDrivers stack trace. Reproduce the failure in the end-to-end test and trace why the metadata-store backend is unknown; done means the test starts reliably and passes across repeated runs.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.