You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "khac (via GitHub)" <gi...@apache.org> on 2024/05/16 10:12:28 UTC
[I] Flaky-test: pulsar.metadata.MetadataStoreTest.concurrentPutTest [pulsar]
khac opened a new issue, #22726:
URL: https://github.com/apache/pulsar/issues/22726
### Search before asking
- [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar.
### Example failure
.
### Exception stacktrace
I ran the code on local machine Mac M1 chip,
<!-- copy-paste the stack trace in the code block below -->
```
[ERROR] Tests run: 263, Failures: 1, Errors: 0, Skipped: 259, Time elapsed: 0.699 s <<< FAILURE! - in
org.apache.pulsar.metadata.MetadataStoreTest
[ERROR] org.apache.pulsar.metadata.MetadataStoreTest.concurrentPutTest[Etcd,
org.apache.pulsar.metadata.BaseMetadataStoreTest$$Lambda$923/0x000000c801725188@62a5e4c7](10)
Time elapsed: 0.003 s <<< FAILURE!
java.lang.IllegalStateException: Previous attempts to find a Docker environment failed. Will not retry. Please see logs and check configuration
at org.testcontainers.dockerclient.DockerClientProviderStrategy.getFirstValidStrategy(DockerClientProviderStrategy.java:231)
at org.testcontainers.DockerClientFactory.getOrInitializeStrategy(DockerClientFactory.java:150)
at org.testcontainers.DockerClientFactory.client(DockerClientFactory.java:191)
```
### Are you willing to submit a PR?
- [X] 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
Re: [I] Flaky-test: pulsar.metadata.MetadataStoreTest.concurrentPutTest [pulsar]
Posted by "khac (via GitHub)" <gi...@apache.org>.
khac closed issue #22726: Flaky-test: pulsar.metadata.MetadataStoreTest.concurrentPutTest
URL: https://github.com/apache/pulsar/issues/22726
--
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
Re: [I] Flaky-test: pulsar.metadata.MetadataStoreTest.concurrentPutTest [pulsar]
Posted by "khac (via GitHub)" <gi...@apache.org>.
khac commented on issue #22726:
URL: https://github.com/apache/pulsar/issues/22726#issuecomment-2115582147
<img width="560" alt="image" src="https://github.com/apache/pulsar/assets/25533953/ad078259-9c59-4914-a579-66dc0870adfb">
<img width="536" alt="image" src="https://github.com/apache/pulsar/assets/25533953/4cfa0b64-23e4-4b21-9c30-1c47e87cd1be">
When I run this test on debugger mode, it runs fine, when I run all tests this one fails metadata.MetadataStoreTest fail.
```
[ERROR] Failures:
[ERROR] MetadataStoreTest.testThreadSwitchOfZkMetadataStore:484 ยป Completion java.lang.AssertionError:
Expect to switch to thread 196d8b0fd39848358a5ec527a7a34e48, but currently it is thread
TestNG-method=testThreadSwitchOfZkMetadataStore-1 expected [true] but found [false]
[INFO]
[ERROR] Tests run: 910, Failures: 1, Errors: 0, Skipped: 742
```
--
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
Re: [I] Flaky-test: pulsar.metadata.MetadataStoreTest.concurrentPutTest [pulsar]
Posted by "lhotari (via GitHub)" <gi...@apache.org>.
lhotari commented on issue #22726:
URL: https://github.com/apache/pulsar/issues/22726#issuecomment-2115743628
> When I run this test on debugger mode, it runs fine, when I run all tests this one fails metadata.MetadataStoreTest fail.
We have a lot of flaky tests.
For development, it's hopeless to run all tests locally. A better approach is to setup a "personal CI" where you run CI jobs in your GitHub fork of apache/pulsar. We have some docs for setting that up: https://pulsar.apache.org/contribute/personal-ci/ .
The guide doesn't mention that you have to enable GitHub Actions in your fork. It's no longer enabled by default.
--
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
Re: [I] Flaky-test: pulsar.metadata.MetadataStoreTest.concurrentPutTest [pulsar]
Posted by "lhotari (via GitHub)" <gi...@apache.org>.
lhotari commented on issue #22726:
URL: https://github.com/apache/pulsar/issues/22726#issuecomment-2114839485
We do have a lot of flaky tests. However in this case, the error message "java.lang.IllegalStateException: Previous attempts to find a Docker environment failed. Will not retry. Please see logs and check configuration" doesn't seem to be about flakiness.
Please verify that you have a recent version of Docker installed. I believe that on Mac M1 that you'll need [Docker Desktop](https://www.docker.com/products/docker-desktop/). It's free for personal use.
--
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