Skip to content

Fix flaky HttpEmitterConfigTest and ParametrizedUriEmitterConfigTest.#14481

Merged
gianm merged 1 commit into
apache:masterfrom
gianm:fix-http-emitter-tests
Jun 23, 2023
Merged

Fix flaky HttpEmitterConfigTest and ParametrizedUriEmitterConfigTest.#14481
gianm merged 1 commit into
apache:masterfrom
gianm:fix-http-emitter-tests

Conversation

@gianm
Copy link
Copy Markdown
Contributor

@gianm gianm commented Jun 23, 2023

Recently, we have seen flakiness in these two tests, apparently due to computations based on Runtime.getRuntime().maxMemory() differing during static initialization and in the actual tests. I can't think of a reason why this would be happening, but anyway, this patch switches the tests to use the statics instead of recomputing Runtime.getRuntime().maxMemory().

Recently, we have seen flakiness in these two tests, apparently due to
computations based on Runtime.getRuntime().maxMemory() differing during
static initialization and in the actual tests. I can't think of a reason
why this would be happening, but anyway, this patch switches the tests to
use the statics instead of recomputing Runtime.getRuntime().maxMemory().
@gianm gianm merged commit 9702880 into apache:master Jun 23, 2023
@gianm gianm deleted the fix-http-emitter-tests branch June 23, 2023 23:27
@abhishekagarwal87 abhishekagarwal87 added this to the 27.0 milestone Jul 19, 2023
sergioferragut pushed a commit to sergioferragut/druid that referenced this pull request Jul 21, 2023
…apache#14481)

Recently, we have seen flakiness in these two tests, apparently due to
computations based on Runtime.getRuntime().maxMemory() differing during
static initialization and in the actual tests. I can't think of a reason
why this would be happening, but anyway, this patch switches the tests to
use the statics instead of recomputing Runtime.getRuntime().maxMemory().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants