apache / apache/pulsar

Flaky-test: ExtensibleLoadManagerTest.testAntiaffinityPolicy

Open
#20,610 2 comments 0 reactions 0 assignees View on GitHub
area/test 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 failure

https://github.com/BewareMyPower/pulsar/actions/runs/5309629850/attempts/2

### Exception stacktrace

```
2023-06-19T13:14:44.8868295Z [ERROR] org.apache.pulsar.tests.integration.loadbalance.ExtensibleLoadManagerTest.testAntiaffinityPolicy Time elapsed: 40.002 s <<< FAILURE!
2023-06-19T13:14:44.8869820Z org.testng.internal.thread.ThreadTimeoutException: Method org.apache.pulsar.tests.integration.loadbalance.ExtensibleLoadManagerTest.testAntiaffinityPolicy() didn't finish within the time-out 40000
2023-06-19T13:14:44.8870795Z at java.base@17.0.7/jdk.internal.misc.Unsafe.park(Native Method)
2023-06-19T13:14:44.8873449Z at java.base@17.0.7/java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:252)
2023-06-19T13:14:44.8874567Z at java.base@17.0.7/java.util.concurrent.CompletableFuture$Signaller.block(CompletableFuture.java:1866)
2023-06-19T13:14:44.8875386Z at java.base@17.0.7/java.util.concurrent.ForkJoinPool.unmanagedBlock(ForkJoinPool.java:3463)
2023-06-19T13:14:44.8878108Z at java.base@17.0.7/java.util.concurrent.ForkJoinPool.managedBlock(ForkJoinPool.java:3434)
2023-06-19T13:14:44.8878761Z at java.base@17.0.7/java.util.concurrent.CompletableFuture.timedGet(CompletableFuture.java:1939)
2023-06-19T13:14:44.8879489Z at java.base@17.0.7/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2095)
2023-06-19T13:14:44.8880139Z at app//org.apache.pulsar.client.admin.internal.BaseResource.sync(BaseResource.java:342)
2023-06-19T13:14:44.8919993Z at app//org.apache.pulsar.client.admin.internal.LookupImpl.lookupPartitionedTopic(LookupImpl.java:65)
2023-06-19T13:14:44.8921419Z at app//org.apache.pulsar.tests.integration.loadbalance.ExtensibleLoadManagerTest.testAntiaffinityPolicy(ExtensibleLoadManagerTest.java:283)
2023-06-19T13:14:44.8922379Z at java.base@17.0.7/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2023-06-19T13:14:44.8923095Z at java.base@17.0.7/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
2023-06-19T13:14:44.8925263Z at java.base@17.0.7/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2023-06-19T13:14:44.8926034Z at java.base@17.0.7/java.lang.reflect.Method.invoke(Method.java:568)
2023-06-19T13:14:44.8926901Z at app//org.testng.internal.invokers.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:139)
2023-06-19T13:14:44.8928236Z at app//org.testng.internal.invokers.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:47)
2023-06-19T13:14:44.8928890Z at app//org.testng.internal.invokers.InvokeMethodRunnable.call(InvokeMethodRunnable.java:76)
2023-06-19T13:14:44.8929473Z at app//org.testng.internal.invokers.InvokeMethodRunnable.call(InvokeMethodRunnable.java:11)
2023-06-19T13:14:44.8929977Z at java.base@17.0.7/java.util.concurrent.FutureTask.run(FutureTask.java:264)
2023-06-19T13:14:44.8930484Z at java.base@17.0.7/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
2023-06-19T13:14:44.8931232Z at java.base@17.0.7/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
2023-06-19T13:14:44.8931664Z at java.base@17.0.7/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 org.apache.pulsar.tests.integration.loadbalance.ExtensibleLoadManagerTest.testAntiaffinityPolicy at line 283 and reproduce the failure from the linked GitHub Actions run. Read the LookupImpl.lookupPartitionedTopic and BaseResource.sync calls shown in the stack trace. Done means the test completes reliably without exceeding its 40-second timeout.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
distributed-systems, testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.