Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DieWithDignityIT.testDieWithDignity failures on CI #77282

Closed
gwbrown opened this issue Sep 3, 2021 · 13 comments · Fixed by #77373 or #97734
Closed

DieWithDignityIT.testDieWithDignity failures on CI #77282

gwbrown opened this issue Sep 3, 2021 · 13 comments · Fixed by #77373 or #97734
Assignees
Labels
:Core/Infra/Core Core issues without another label Team:Core/Infra Meta label for core/infra team >test-failure Triaged test failures from CI

Comments

@gwbrown
Copy link
Contributor

gwbrown commented Sep 3, 2021

Build scan: https://gradle-enterprise.elastic.co/s/fl56dmvxet2zw

Repro line: ./gradlew ':test:external-modules:test-die-with-dignity:javaRestTest' --tests "org.elasticsearch.qa.die_with_dignity.DieWithDignityIT.testDieWithDignity" -Dtests.seed=C3A1E728D7318E71 -Dtests.locale=es-CU -Dtests.timezone=Etc/GMT+9 -Druntime.java=8

Reproduces locally?: No

Applicable branches: master and 7.x

Failure history: First failed on Sep. 1 (build scan), has failed 26 times since.

Failure excerpt:

java.lang.AssertionError: (No message provided)	
	at __randomizedtesting.SeedInfo.seed([C3A1E728D7318E71:CA6A313201AA1C6A]:0)	
	at org.junit.Assert.fail(Assert.java:86)	
	at org.junit.Assert.assertTrue(Assert.java:41)	
	at org.junit.Assert.assertTrue(Assert.java:52)	
	at org.elasticsearch.qa.die_with_dignity.DieWithDignityIT.testDieWithDignity(DieWithDignityIT.java:45)	
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)	
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	
	at java.lang.reflect.Method.invoke(Method.java:498)	
	at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1750)	
	at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:938)	
	at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:974)	
	at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:988)	
	at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)	
	at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:49)	
	at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:45)	
	at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:48)	
	at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:64)	
	at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:47)	
	at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)	
	at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:368)	
	at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:817)	
	at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:468)	
	at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:947)	
	at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:832)	
	at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:883)	
	at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:894)	
	at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:45)	
	at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)	
	at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:41)	
	at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)	
	at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)	
	at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)	
	at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)	
	at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)	
	at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)	
	at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:47)	
	at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:64)	
	at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:54)	
	at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)	
	at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:368)	
	at java.lang.Thread.run(Thread.java:748)

/cc @jasontedor as it looks like you touched this test in #77039 not too long before the first failure, could be related?

@gwbrown gwbrown added :Core/Infra/Core Core issues without another label >test-failure Triaged test failures from CI labels Sep 3, 2021
@elasticmachine elasticmachine added the Team:Core/Infra Meta label for core/infra team label Sep 3, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

@gwbrown
Copy link
Contributor Author

gwbrown commented Sep 3, 2021

Muting on master and 7.x in #77283 as this is failing quite a bit.

@valeriy42
Copy link
Contributor

valeriy42 commented Sep 6, 2021

@jasontedor
Copy link
Member

Here's the problem. We run jps to check that an Elasticsearch instance with the appropriate flags has been started. We later verify that this instance has been killed, by running jps again, after we hit the /_die_with_dignity endpoint. The problem is that jps truncates the output to 1024 characters, and sometimes the flag that we are looking for is past the truncation. This leads to spurious failures. It also means that the method of asserting that there is not an instance with the die with dignity flag running is prone to false negatives. This is a known issue with jps that the JDK maintainers marked as won't fix.

rjernst added a commit to rjernst/elasticsearch that referenced this issue Sep 7, 2021
The die-with-dignity test forces an OOM in Elasticsearch and sees that
it dies appropriately. The test first asserts the correct ES process is
running, and that that process no longer exists after forcing the OOM.
Unfortunately the way of identifying the pid through jps args doesn't
always work (see https://bugs.openjdk.java.net/browse/JDK-7091209).

Instead, this commit passes the known pid for the test cluster through
to the die-with-dignity test, so that it can check for the pid instead
of the command line options.

closes elastic#77282
@ywelsch
Copy link
Contributor

ywelsch commented Sep 9, 2021

Looks to still fail: https://gradle-enterprise.elastic.co/s/oxkjscbj6d5fq

Now with:

java.lang.AssertionError: jvm_args: -Dfile.encoding=UTF8 -Dsun.jnu.encoding=UTF8 -XX:+HeapDumpOnOutOfMemoryError -Xss2m --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED -Dfile.encoding=UTF8 -Duser.country=US -Duser.language=en -Duser.variant ,jvm_args: -Dfile.encoding=UTF8 -Dsun.jnu.encoding=UTF8 --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED -XX:MaxMetaspaceSize=256m -XX:+HeapDumpOnOutOfMemoryError -Xms256m -Xmx512m -Dfile.encoding=UTF8 -Duser.country=US -Duser.language=en -Duser.variant ,jvm_args: -Dfile.encoding=UTF8 -Dsun.jnu.encoding=UTF8 --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED -Xmx512m -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant ,jvm_args: -Dfile.encoding=UTF8 -Dsun.jnu.encoding=UTF8 --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED -Xmx512m -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant ,jvm_args: -Dfile.encoding=UTF8 -Dsun.jnu.encoding=UTF8 ,jvm_args: -Dfile.encoding=UTF8 -Dsun.jnu.encoding=UTF8 -Xmx64m -Xms64m -Dorg.gradle.appname=gradlew ,jvm_args: -Dfile.encoding=UTF8 -Dsun.jnu.encoding=UTF8 -Djava.util.logging.config.file=C:\Program Files\jenkins\logging.properties -Dorg.jenkinsci.plugins.gitclient.Git.timeOut=20 ,jvm_args: -Dfile.encoding=UTF8 -Dsun.jnu.encoding=UTF8 -Xms4m -Xmx16m ,jvm_args: -Dfile.encoding=UTF8 -Dsun.jnu.encoding=UTF8 -Des.scripting.update.ctx_in_params=false -Des.search.rewrite_sort=true -Des.transport.cname_in_publish_address=true -Dgradle.dist.lib=C:\Users\jenkins\.gradle\wrapper\dists\gradle-7.2-all\260hg96vuh6ex27h9vo47iv4d\gradle-7.2/lib -Dgradle.user.home=C:\Users\jenkins\.gradle -Dgradle.worker.jar=C:\Users\jenkins\.gradle/caches/7.2/workerMain/gradle-worker.jar -Dio.netty.noKeySetOptimization=true -Dio.netty.noUnsafe=true -Dio.netty.recycler.maxCapacityPerThread=0 -Djava.awt.headless=true -Djava.locale.providers=SPI,COMPAT -Djna.nosys=true -Dlog=C:\Users\jenkins\workspace\platform-support\257\test\external-modules\die-with-dignity\build\testclusters\javaRestTest-0\logs\javaRestTest_server.json -Dorg.gradle.internal.worker.tmpdir=C:\Users\jenkins\workspace\platform-support\257\test\external-modules\die-with-dignity\build\tmp\javaRestTest\work -Dorg.gradle.native=false -Druntime.java.home=C:\Users\jenkins\.java\java11 -Dtests.artifact=test-die-with-dignity -Dtests.cluster=127.0.0.1:54686,[::1]:54687 -Dtests.clustername=javaRestTest -Dtests.gradle=true -Dtests.logger.level=WARN -Dtests.rest.cluster=127.0.0.1:54693,[::1]:54694 -Dtests.rest.load_packaged=false -Dtests.security.manager=false -Dtests.seed=4E184FDEBD0448C6 -Dtests.system_call_filter=false -Dtests.task=:test:external-modules:test-die-with-dignity:javaRestTest -Dtests.timeoutSuite=2400000! --illegal-access=deny --add-opens=java.base/java.security.cert=ALL-UNNAMED --add-opens=java.base/java.nio.channels=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/javax.net.ssl=ALL-UNNAMED --add-opens=java.base/java.nio.file=ALL-UNNAMED --add-opens=java.base/java.time=ALL-UNNAMED --add-opens=java.management/java.lang.management=ALL-UNNAMED -XX:+HeapDumpOnOutOfMemoryError -esa -XX:HeapDumpPath=C:\Users\jenkins\workspace\platform-support\257\test\external-modules\die-with-dignity\build\heapdump --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED -Xms512m -Xmx512m -Dfile.encoding=UTF-8 -Djava.io.tmpdir=C:\Users\jenkins\workspace\platform-support\257\test\external-mo…


at __randomizedtesting.SeedInfo.seed([4E184FDEBD0448C6:47D399C46B9FDADD]:0) |  
-- | --
  |   | at org.junit.Assert.fail(Assert.java:88) |  
  |   | at org.junit.Assert.assertTrue(Assert.java:41) |  
  |   | at org.elasticsearch.qa.die_with_dignity.DieWithDignityIT.testDieWithDignity(DieWithDignityIT.java:35) |  
  |   | at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) |  
  |   | at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) |  
  |   | at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) |  
  |   | at java.lang.reflect.Method.invoke(Method.java:566) |  
  |   | at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758) |  
  |   | at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946) |  
  |   | at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982) |  
  |   | at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996) |  
  |   | at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) |  
  |   | at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:49) |  
  |   | at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:45) |  
  |   | at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:48) |  
  |   | at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:64) |  
  |   | at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:47) |  
  |   | at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) |  
  |   | at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) |  
  |   | at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:824) |  
  |   | at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:475) |  
  |   | at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955) |  
  |   | at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840) |  
  |   | at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891) |  
  |   | at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902) |  
  |   | at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:45) |  
  |   | at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) |  
  |   | at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:41) |  
  |   | at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) |  
  |   | at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40) |  
  |   | at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) |  
  |   | at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) |  
  |   | at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) |  
  |   | at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:47) |  
  |   | at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:64) |  
  |   | at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:54) |  
  |   | at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) |  
  |   | at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:375) |  
  |   | at com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:831) |  
  |   | at java.lang.Thread.run(Thread.java:834)


@ywelsch ywelsch reopened this Sep 9, 2021
jasontedor added a commit that referenced this issue Sep 9, 2021
This commit simplifies the information about running JVMs that is
collected during the die with dignity test. The reason that we are doing
this is because collecting information about all running JVMs leads to
too much output, which makes understanding a test failure too hard. By
simplifying the information collected to only running Elasticsearch
instances, there will be less output from the test failure and it should
be easier to understand what is going on. That is, this commit is purely
seeking to get more information about an ongoing test failure.

Relates #77282
jasontedor added a commit that referenced this issue Sep 9, 2021
This commit simplifies the information about running JVMs that is
collected during the die with dignity test. The reason that we are doing
this is because collecting information about all running JVMs leads to
too much output, which makes understanding a test failure too hard. By
simplifying the information collected to only running Elasticsearch
instances, there will be less output from the test failure and it should
be easier to understand what is going on. That is, this commit is purely
seeking to get more information about an ongoing test failure.

Relates #77282
@jasontedor
Copy link
Member

It's not clear what happened in this failure, some of the output from the failed assertion was truncated. I pushed #77504 so that there's significantly less output, and therefore less likely to be truncated so that hopefully tracking this down on the next failure will be easier.

@ywangd
Copy link
Member

ywangd commented Sep 10, 2021

ywangd added a commit to ywangd/elasticsearch that referenced this issue Sep 10, 2021
@ywangd
Copy link
Member

ywangd commented Sep 10, 2021

Failed a bunch more on Windows again. I am muting it for Windows #77537

ywangd added a commit that referenced this issue Sep 10, 2021
ywangd added a commit to ywangd/elasticsearch that referenced this issue Sep 10, 2021
@jasontedor
Copy link
Member

@rjernst Would you be available to investigate why this is failing on Windows? It appears that jps is not picking up the running Elasticsearch instance? 😕

@rjernst rjernst self-assigned this Sep 10, 2021
rjernst added a commit to rjernst/elasticsearch that referenced this issue Sep 24, 2021
Thsi commit adds debugging info to the die with dignity test to figure
out why no ES command lines are found on Windows.

relates elastic#77282
@rjernst
Copy link
Member

rjernst commented Sep 24, 2021

I added some additional debugging info to the test, and the Elasticsearch process is simply not found by jps. You can see the ES log states its pid is 10200:

[2021-09-24T18:37:34,997][INFO ][o.e.n.Node               ] [javaRestTest-0] version[8.0.0-SNAPSHOT], pid[10200]

But the pids we get back from jps to inspect do not contain that:

  | 1> [2021-09-24T20:37:43,415][INFO ][o.e.q.d.DieWithDignityIT ] [testDieWithDignity] Inspecting java pid 4400 |  
  | 1> [2021-09-24T20:37:43,716][INFO ][o.e.q.d.DieWithDignityIT ] [testDieWithDignity]   -> java_command: org.gradle.launcher.daemon.bootstrap.GradleDaemon 7.2 |  
  | 1> [2021-09-24T20:37:43,736][INFO ][o.e.q.d.DieWithDignityIT ] [testDieWithDignity] Inspecting java pid 6800 |  
  | 1> [2021-09-24T20:37:44,007][INFO ][o.e.q.d.DieWithDignityIT ] [testDieWithDignity]   -> java_command: org.gradle.wrapper.GradleWrapperMain --parallel --scan --build-cache -Dorg.elasticsearch.build.cache.url=https://gradle-enterprise.elastic.co/cache/ --max-workers=4 -Dbwc.checkout.align=true checkPart1 |  
  | 1> [2021-09-24T20:37:44,027][INFO ][o.e.q.d.DieWithDignityIT ] [testDieWithDignity] Inspecting java pid 8768 |  
  | 1> [2021-09-24T20:37:44,296][INFO ][o.e.q.d.DieWithDignityIT ] [testDieWithDignity]   -> java_command: org.gradle.launcher.daemon.bootstrap.GradleDaemon 7.2 |  
  | 1> [2021-09-24T20:37:44,318][INFO ][o.e.q.d.DieWithDignityIT ] [testDieWithDignity] Inspecting java pid 3476 |  
  | 1> [2021-09-24T20:37:44,602][INFO ][o.e.q.d.DieWithDignityIT ] [testDieWithDignity]   -> java_command: C:\Program Files\infra\bin\runbld --redirect-stderr - |  
  | 1> [2021-09-24T20:37:44,624][INFO ][o.e.q.d.DieWithDignityIT ] [testDieWithDignity] Inspecting java pid 4356 |  
  | 1> [2021-09-24T20:37:44,861][INFO ][o.e.q.d.DieWithDignityIT ] [testDieWithDignity] Inspecting java pid 836 |  
  | 1> [2021-09-24T20:37:45,126][INFO ][o.e.q.d.DieWithDignityIT ] [testDieWithDignity]   -> java_command: C:\Users\jenkins\workspace\pr-part-1\4\plugins\examples\build\reaper\reaper.jar C:\Users\jenkins\workspace\pr-part-1\4\plugins\examples\.gradle\reaper\build-4400 |  
  | 1> [2021-09-24T20:37:45,148][INFO ][o.e.q.d.DieWithDignityIT ] [testDieWithDignity] Inspecting java pid 16136 |  
  | 1> [2021-09-24T20:37:45,435][INFO ][o.e.q.d.DieWithDignityIT ] [testDieWithDignity]   -> java_command: C:\Users\jenkins\.gradle\caches\jars-9\94148d6a125a35d10265423826310a2f\reaper.jar C:\Users\jenkins\workspace\pr-part-1\4\.gradle\reaper\build-4400 |  
  | 1> [2021-09-24T20:37:45,457][INFO ][o.e.q.d.DieWithDignityIT ] [testDieWithDignity] Inspecting java pid 4440 |  
  | 1> [2021-09-24T20:37:45,721][INFO ][o.e.q.d.DieWithDignityIT ] [testDieWithDignity]   -> java_command: worker.org.gradle.process.internal.worker.GradleWorkerMain 'Gradle Worker Daemon 1' |  
  | 1> [2021-09-24T20:37:45,743][INFO ][o.e.q.d.DieWithDignityIT ] [testDieWithDignity] Inspecting java pid 5400 |  
  | 1> [2021-09-24T20:37:46,001][INFO ][o.e.q.d.DieWithDignityIT ] [testDieWithDignity]   -> java_command: worker.org.gradle.process.internal.worker.GradleWorkerMain 'Gradle Worker Daemon 2' |  
  | 1> [2021-09-24T20:37:46,022][INFO ][o.e.q.d.DieWithDignityIT ] [testDieWithDignity] Inspecting java pid 1420 |  
  | 1> [2021-09-24T20:37:46,304][INFO ][o.e.q.d.DieWithDignityIT ] [testDieWithDignity]   -> java_command: hudson.plugins.swarm.Client -description Microsoft Windows Server 2019 Datacenter 10.0.17763.0 - 4 CPU Cores / 7370 MB Memory -disableClientsUniqueId -executors 1 -fsroot C:\Users\jenkins -passwordFile C:\Users\jenkins\.jenkins_password -master https://elasticsearch-ci.elastic.co/ -retry 6 -maxRetryInterval 160 -retryBackOffStrategy exponential -mode exclusive -name 'elasticsearch-ci-immutable-windows-2019-1632503446220435315' -username local-swarm -name elasticsearch-ci-immutable-windows-2019-1632503446220435315 -master https://elasticsearch-ci.elastic.co -username local-swarm -webSocket -labels immutable -labels swarm -labels windows -labels windows-immutable -labels windows-2019 -labels virtual -labels x86_64 -description MachineType:custom-32-98304,DiskSize:350 |  
  | 1> [2021-09-24T20:37:46,325][INFO ][o.e.q.d.DieWithDignityIT ] [testDieWithDignity] Inspecting java pid 16076 |  
  | 1> [2021-09-24T20:37:46,584][INFO ][o.e.q.d.DieWithDignityIT ] [testDieWithDignity]   -> java_command: worker.org.gradle.process.internal.worker.GradleWorkerMain 'Gradle Test Executor 290'


@pgomulka
Copy link
Contributor

pgomulka commented Jul 12, 2023

on my windows laptop I have managed to reproduce this - in fact it fails on every attempt
Looks like esCommandLines variable is empty

I have run this with some additional println debugging
https://scans.gradle.com/s/rajhw5aj6ko32/console-log?anchor=333&page=1

It looked like elasticserach was not running?



pids: [13472, 26480, 9736, 11292, 25820, 2780, 7996, 9116] |  
-- | --
  | 1> line 13472: |  
  | 1> line VM Arguments: |  
  | 1> line jvm_args: -XX:+HeapDumpOnOutOfMemoryError -Xss2m --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED -Dfile.encoding=UTF-8 -Duser.country=GB -Duser.language=en -Duser.variant -javaagent:C:\Users\pgom\.gradle\wrapper\dists\gradle-8.2-all\6mxqtxovn2faat1idb7p6lxsa\gradle-8.2\lib\agents\gradle-instrumentation-agent-8.2.jar |  
  | 1> line java_command: org.gradle.launcher.daemon.bootstrap.GradleDaemon 8.2 |  
  | 1> line java_class_path (initial): C:\Users\pgom\.gradle\wrapper\dists\gradle-8.2-all\6mxqtxovn2faat1idb7p6lxsa\gradle-8.2\lib\gradle-launcher-8.2.jar |  
  | 1> line Launcher Type: SUN_STANDARD |  
  | 1> line 26480: |  
  | 1> line VM Arguments: |  
  | 1> line jvm_args: -Djava.awt.headless=true -Dmaven.defaultProjectBuilder.disableGlobalModelCache=true -Didea.version=2022.2.3 -Didea.maven.embedder.version=3.8.1 -Xmx768m -Dmaven.ext.class.path=C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\plugins\maven\lib\maven-event-listener.jar -Dfile.encoding=windows-1252 -Dsun.stdout.encoding=windows-1252 -Dsun.stderr.encoding=windows-1252 |  
  | 1> line java_command: org.jetbrains.idea.maven.server.RemoteMavenServer36 |  
  | 1> line java_class_path (initial): C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\plugins\maven-model\lib\maven-model.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\plugins\maven\lib\maven-server-api.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\plugins\maven\lib\maven3-server-common.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\plugins\maven\lib\maven3-server-lib\archetype-catalog-2.2.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\plugins\maven\lib\maven3-server-lib\archetype-common-2.2.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\plugins\maven\lib\maven3-server-lib\archetype-descriptor-2.2.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\plugins\maven\lib\maven3-server-lib\lucene-core-2.4.1.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\plugins\maven\lib\maven3-server-lib\maven-dependency-tree-1.2.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\plugins\maven\lib\maven3-server-lib\nexus-indexer-3.0.4.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\plugins\maven\lib\maven3-server-lib\nexus-indexer-artifact-1.0.1.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\plugins\maven\lib\maven3-server.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\plugins\maven\lib\maven36-server.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\plugins\maven\lib\maven3\lib\cdi-api-1.0.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\plugins\maven\lib\maven3\lib\commons-cli-1.4.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\plugins\maven\lib\maven3\lib\commons-io-2.5.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\plugins\maven\lib\maven3\lib\commons-lang3-3.8.1.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\plugins\maven\lib\maven3\lib\guava-25.1-android.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\plugins\maven\lib\maven3\lib\guice-4.2.1-no_aop.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\plugins\maven\lib\maven3\lib\jansi-1.17.1.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\plugins\maven\lib\maven3\lib\javax.inject-1.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\plugins\maven\lib\maven3\lib\jcl-over-slf4j-1.7.29.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\plugins\maven\lib\maven3\lib\jsoup-1.12.1.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\plugins\maven\lib\maven3\lib\jsr250-api-1.0.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\plugins\maven\lib\maven3\lib\maven-artifact-3.8.1.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\plugins\maven\lib\maven3\lib\maven-builder-support-3.8.1.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\plugins\maven\lib\maven3\lib\maven-compat-3.8.1.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\plugins\maven\lib\maven3\lib\maven-core-3.8.1.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\plugins\maven\lib\maven3\lib\maven-embedder-3.8.1.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\plugins\maven\lib\maven3\lib\maven-model-3.8.1.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\plugins\maven\lib\maven3\lib\maven-model-builder-3.8.1.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\plugins\maven\lib\maven3\lib\maven-plugin-api-3.8.1.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\plugins\maven\lib\maven3\lib\maven-repository-metadata-3.8.1.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\plugins\maven\lib\maven3\lib\maven-resolver-api-1.6.2.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\plugins\maven\lib\maven3\lib\maven-resolver-connector-basic-1.6.2.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\plugins\maven\lib\maven3\lib\maven-resolver-impl-1.6.2.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\plugins\maven\lib\maven3\lib\maven-resolver-provider-3.8.1.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\plugins\maven\lib\maven3\lib\maven-resolver-spi-1.6.2.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\plugins\maven\lib\maven3\lib\maven-resolver-transport-wagon-1.6.2.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\plugins\maven\lib\maven3\lib\maven-resolver-util-1.6.2.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\plugins\maven\lib\maven3\lib\maven-settings-3.8.1.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\plug… |  
  | 1> line Launcher Type: SUN_STANDARD |  
  | 1> line 9736: |  
  | 1> line VM Arguments: |  
  | 1> line jvm_args: exit -Xms128m -Xmx750m -XX:ReservedCodeCacheSize=512m -XX:+UseG1GC -XX:SoftRefLRUPolicyMSPerMB=50 -XX:CICompilerCount=2 -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -XX:+IgnoreUnrecognizedVMOptions -XX:CompileCommand=exclude,com/intellij/openapi/vfs/impl/FilePartNodeRoot,trieDescend -ea -Dsun.io.useCanonCaches=false -Dsun.java2d.metal=true -Djbr.catch.SIGABRT=true -Djdk.http.auth.tunneling.disabledSchemes="" -Djdk.attach.allowAttachSelf=true -Djdk.module.illegalAccess.silent=true -Dkotlinx.coroutines.debug=off -Xmx8048m -Djb.vmOptionsFile=C:\Users\pgom\AppData\Roaming\\JetBrains\\IdeaIC2022.2\idea64.exe.vmoptions -Djava.system.class.loader=com.intellij.util.lang.PathClassLoader -Didea.strict.classpath=true -Didea.vendor.name=JetBrains -Didea.paths.selector=IdeaIC2022.2 -Didea.platform.prefix=Idea -Didea.jre.check=true -Dsplash=true --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.text=ALL-UNNAMED --add-opens=java.base/java.time=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens=java.base/jdk.internal.vm=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.base/sun.security.ssl=ALL-UNNAMED --add-opens=java.base/sun.security.util=ALL-UNNAMED --add-opens=java.desktop/java.awt=ALL-UNNAMED --add-opens=java.desktop/java.awt.dnd.peer=ALL-UNNAMED --add-opens=java.desktop/java.awt.event=ALL-UNNAMED --add-opens=java.desktop/java.awt.image=ALL-UNNAMED --add-opens=java.desktop/java.awt.peer=ALL-UNNAMED --add-opens=java.desktop/javax.swing=ALL-UNNAMED --add-opens=java.desktop/javax.swing.plaf.basic=ALL-UNNAMED --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED --add-opens=java.desktop/sun.awt.datatransfer=ALL-UNNAMED --add-opens=java.desktop/sun.awt.image=ALL-UNNAMED --add-opens=java.desktop/sun.awt.windows=ALL-UNNAMED --add-opens=java.desktop/sun.awt=ALL-UNNAMED --add-opens=java.desktop/sun.font=ALL-UNNAMED --add-opens=java.desktop/sun.java2d=ALL-UNNAMED --add-opens=java.desktop/sun.swing=ALL-UNNAMED --add-opens=jdk.attach/sun.tools.attach=ALL-UNNAMED --add-opens=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-opens=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED --add-opens=jdk.jdi/com.sun.tools.jdi=ALL-UNNAMED -Dide.native.launcher=true -XX:ErrorFile=C:\Users\pgom\\java_error_in_idea64_%p.log -XX:HeapDumpPath=C:\Users\pgom\\java_error_in_idea64.hprof |  
  | 1> line java_command: <unknown> |  
  | 1> line java_class_path (initial): C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\lib\util.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\lib\app.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\lib\3rd-party-rt.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\lib\jna.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\lib\platform-statistics-devkit.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\lib\jps-model.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\lib\rd-core.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\lib\rd-framework.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\lib\stats.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\lib\protobuf.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\lib\external-system-rt.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\lib\jsp-base-openapi.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\lib\forms_rt.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\lib\intellij-test-discovery.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\lib\rd-swing.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\lib\annotations.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\lib\groovy.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\lib\annotations-java5.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\lib\asm-9.2.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\lib\asm-analysis-9.2.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\lib\asm-commons-9.2.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.3\lib\asm-tree-9.2.jar;C:\Program Files\JetBrains\Inte |  
  | 1> line Launcher Type: generic |  
  | 1> line 11292: |  
  | 1> line VM Arguments: |  
  | 1> line jvm_args: -XX:+HeapDumpOnOutOfMemoryError -Xss2m --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED -Dfile.encoding=windows-1252 -Duser.country=GB -Duser.language=en -Duser.variant -javaagent:C:\Users\pgom\.gradle\wrapper\dists\gradle-8.2-all\6mxqtxovn2faat1idb7p6lxsa\gradle-8.2\lib\agents\gradle-instrumentation-agent-8.2.jar |  
  | 1> line java_command: org.gradle.launcher.daemon.bootstrap.GradleDaemon 8.2 |  
  | 1> line java_class_path (initial): C:\Users\pgom\.gradle\wrapper\dists\gradle-8.2-all\6mxqtxovn2faat1idb7p6lxsa\gradle-8.2\lib\gradle-launcher-8.2.jar |  
  | 1> line Launcher Type: SUN_STANDARD |  
  | 1> line 25820: |  
  | 1> line 2780: |  
  | 1> line VM Arguments: |  
  | 1> line jvm_args: -Xms4m -Xmx16m |  
  | 1> line java_command: C:\Users\pgom\.gradle\caches\jars-9\o_96845ebbdd88f4db1e993cee5657624e\reaper.jar C:\Users\pgom\workspace\elasticsearch\.gradle\reaper\build-13472 |  
  | 1> line java_class_path (initial): C:\Users\pgom\.gradle\caches\jars-9\o_96845ebbdd88f4db1e993cee5657624e\reaper.jar |  
  | 1> line Launcher Type: SUN_STANDARD |  
  | 1> line 7996: |  
  | 1> line VM Arguments: |  
  | 1> line jvm_args: -Des.scripting.update.ctx_in_params=false -Des.search.rewrite_sort=true -Des.transport.cname_in_publish_address=true -Dgradle.dist.lib=C:\Users\pgom\.gradle\wrapper\dists\gradle-8.2-all\6mxqtxovn2faat1idb7p6lxsa\gradle-8.2/lib -Dgradle.user.home=C:\Users\pgom\.gradle -Dgradle.worker.jar=C:\Users\pgom\.gradle/caches/8.2/workerMain/gradle-worker.jar -Dio.netty.noKeySetOptimization=true -Dio.netty.noUnsafe=true -Dio.netty.recycler.maxCapacityPerThread=0 -Djava.awt.headless=true -Djava.locale.providers=SPI,COMPAT -Djava.security.manager=allow -Djna.nosys=true -Dlog=C:\Users\pgom\workspace\elasticsearch\test\external-modules\die-with-dignity\build\testclusters\javaRestTest-0\logs\javaRestTest_server.json -Dorg.gradle.internal.worker.tmpdir=C:\Users\pgom\workspace\elasticsearch\test\external-modules\die-with-dignity\build\tmp\javaRestTest\work -Dorg.gradle.native=false -Druntime.java.home=C:\Program Files\Java\jdk-18.0.2 -Dtests.artifact=test-die-with-dignity -Dtests.cluster=127.0.0.1:52564,[::1]:52565 -Dtests.cluster.readiness -Dtests.cluster.remote_access -Dtests.clustername=javaRestTest -Dtests.gradle=true -Dtests.logger.level=WARN -Dtests.rest.cluster=127.0.0.1:52566,[::1]:52567 -Dtests.rest.load_packaged=false -Dtests.security.manager=false -Dtests.seed=C4EE9A92B2FAEA0D -Dtests.system_call_filter=false -Dtests.task=:test:external-modules:test-die-with-dignity:javaRestTest -Dtests.timeoutSuite=2400000! --add-opens=java.base/java.security.cert=ALL-UNNAMED --add-opens=java.base/java.nio.channels=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/javax.net.ssl=ALL-UNNAMED --add-opens=java.base/java.nio.file=ALL-UNNAMED --add-opens=java.base/java.time=ALL-UNNAMED --add-opens=java.management/java.lang.management=ALL-UNNAMED -XX:+HeapDumpOnOutOfMemoryError -esa -XX:HeapDumpPath=C:\Users\pgom\workspace\elasticsearch\test\external-modules\die-with-dignity\build\heapdump -Xms512m -Xmx512m -Dfile.encoding=UTF-8 -Djava.io.tmpdir=C:\Users\pgom\workspace\elasticsearch\test\external-modules\die-with-dignity\build\testrun\javaRestTest\temp -Duser.country=GB -Duser.language=en -Duser.variant -ea |  
  | 1> line java_command: worker.org.gradle.process.internal.worker.GradleWorkerMain 'Gradle Test Executor 3' |  
  | 1> line java_class_path (initial): C:\\Users\\pgom\\.gradle\\caches\\8.2\\workerMain\\gradle-worker.jar;C:\\Users\\pgom\\workspace\\elasticsearch\\test\\external-modules\\die-with-dignity\\build\\classes\\java\\javaRestTest;C:\\Users\\pgom\\workspace\\elasticsearch\\test\\yaml-rest-runner\\build\\distributions\\yaml-rest-runner-8.10.0-SNAPSHOT.jar;C:\\Users\\pgom\\workspace\\elasticsearch\\test\\framework\\build\\distributions\\framework-8.10.0-SNAPSHOT.jar;C:\\Users\\pgom\\workspace\\elasticsearch\\client\\sniffer\\build\\distributions\\elasticsearch-rest-client-sniffer-8.10.0-SNAPSHOT.jar;C:\\Users\\pgom\\workspace\\elasticsearch\\client\\rest\\build\\distributions\\elasticsearch-rest-client-8.10.0-SNAPSHOT.jar;C:\\Users\\pgom\\workspace\\elasticsearch\\modules\\transport-netty4\\build\\distributions\\transport-netty4-8.10.0-SNAPSHOT.jar;C:\\Users\\pgom\\workspace\\elasticsearch\\libs\\ssl-config\\build\\distributions\\elasticsearch-ssl-config-8.10.0-SNAPSHOT.jar;C:\\Users\\pgom\\workspace\\elasticsearch\\server\\build\\distributions\\elasticsearch-8.10.0-SNAPSHOT.jar;C:\\Users\\pgom\\workspace\\elasticsearch\\libs\\cli\\build\\distributions\\elasticsearch-cli-8.10.0-SNAPSHOT.jar;C:\\Users\\pgom\\workspace\\elasticsearch\\libs\\preallocate\\build\\distributions\\elasticsearch-preallocate-8.10.0-SNAPSHOT.jar;C:\\Users\\pgom\\.gradle\\caches\\modules-2\\files-2.1\\com.carrotsearch.randomizedtesting\\randomizedtesting-runner\\2.8.0\\631ae08801457db4398d0b376305d0cdab357a60\\randomizedtesting-runner-2.8.0.jar;C:\\Users\\pgom\\.gradle\\caches\\modules-2\\files-2.1\\junit\\junit\\4.12\\2973d150c0dc1fefe998f834810d68f278ea58ec\\junit-4.12.jar;C:\\Users\\pgom\\.gradle\\caches\\modules-2\\files-2.1\\org.hamcrest\\hamcrest\\2.1\\9420ba32c29217b54eebd26ff7f9234d31c3fbb2\\hamcrest-2.1.jar;C:\\Users\\pgom\\.gradle\\caches\\modules-2\\files-2.1\\org.apache.lucene\\lucene-test-framework\\9.7.0\\c9339d7fdb424940ab437134f06b9f64937d45e2\\lucene-test-framework-9.7.0.jar;C:\\Users\\pgom\\.gradle\\caches\\modules-2\\files-2.1\\org.apache.lucene\\lucene-codecs\\9.7.0\\ce18930d286e29c9f78f594c26cd5653ef3fe83e\\lucene-codecs-9.7.0.jar;C:\\Users\\pgom\\.gradle\\caches\\modules-2\\files-2.1\\commons-logging\\commons-logging\\1.2\\4bfc12adfe4842bf07b657f0369c4cb522955686\\commons-logging-1.2.jar;C:\\Users\\pgom\\.gradle\\caches\\modules-2\\files-2.1\\commons-codec\\commons-codec\\1.15\\49d94806b6e3dc933dacbd8acb0fdbab8ebd1e5d\\commons-codec-1.15.jar;C:\\Users\\pgom\\.gradle\\caches\\modules-2\\files-2.1\\org.mockito\\mockito-core\\5.4.0\\30bcbe79f7bd51b53debfc4c6014d0bea4935e37\\mockito-core-5.4.0.jar;C:\\Users\\pgom\\.gradle\\caches\\modules-2\\files-2.1\\org.mockito\\mockito-subclass\\5.4.0\\52e60962a0eec67bfc5bcb5ae3a04c51f4589cc9\\mockito-subclass-5.4.0.jar;C:\\Users\\pgom\\.gradle\\caches\\modules-2\\files-2.1\\net.bytebuddy\\byte-buddy\\1.14.5\\28a424c0c4f362568e904d992c239c996cf7adc7\\byte-buddy-1.14.5.jar;C:\\Users\\pgom\\.gradle\\caches\\modules-2\\files-2.1\\org.objenesis\\objenesis\\3.3\\1049c09f1de4331e8193e579448d0916d75b7631\\objenesis-3.3.jar;C:\\Users\\pgom\\.gradle\\caches\\modules-2\\files-2.1\\org.elasticsearch\\mocksocket\\1.2\\190ad3f42fd6ab7367bae0c0e14d1dc4e4a3c361\\mocksocket-1.2.jar;C:\\Users\\pgom\\.gradle\\caches\\modules-2\\files-2.1\\org.apache.httpcomponents\\httpclient\\4.5.13\\e5f6cae5ca7ecaac1ec2827a9e2d65ae2869cada\\httpclient-4.5.13.jar;C:\\Users\\pgom\\.gradle\\caches\\modules-2\\files-2.1\\org.apache.httpcomponents\\httpcore\\4.4.13\\853b96d3afbb7bf8cc303fe27ee96836a10c1834\\httpcore-4.4.13.jar;C:\\Users\\pgom\\.gradle\\caches\\modules-2\\files-2.1\\org.apache.httpcomponents\\httpasyncclient\\4.1.5\\cd18227f1eb8e9a263286c1d7362ceb24f6f9b32\\httpasyncclient-4.1.5.jar;C:\\Users\\pgom\\.gradle\\caches\\modules-2\\files-2.1\\org.apache.httpcomponents\\httpcore-nio\\4.4.13\\3f897ace4d7f10f0ea6a58f524a3b105dd483653\\httpcore-nio-4.4.13.jar;C:\\Users\\pgom\\.gradle\\caches\\modules-2\\files-2.1\\com.fasterxml.jackson.core\\jackson-core\\2.15.0\\12f334a1dc9c6d2854c43ae314024dde8b3ad572\\jackson-core-2.15.0.jar;C:\\Users\\pgom\\.gradle\\caches\\modules-2\\files-2.1\\io.netty\\netty-buffer\\4.1.94.Final\\eec248b26f16e888688e5bb37b7eeda76b78d2f7\\netty-buffer-4.1.94.Final.jar;C:\\Users\\pgom\\.gradle\\caches\\modules-2\\files-2.1\\io.netty\\netty-codec\\4.1.94.Final\\c70ef20ca338558147887df60f46341bc47f6900\\netty-codec-4.1.94.Final.jar;C:\\Users\\pgom\\.gradle\\caches\\modules-2\\files-2.1\\io.netty\\netty-codec-http\\4.1.94.Final\\9e5404764092c1f6305ad5719078f46ab228d587\\netty-codec-http-4.1.94.Final.jar;C:\\Users\\pgom\\.gradle\\caches\\modules-2\\files-2.1\\io.netty\\netty-common\\4.1.94.Final\\ad4ecf779ebc794cd351f57792f56ea01387b868\\netty-common-4.1.94.Final.jar;C:\\Users\\pgom\\.gradle\\caches\\modules-2\\files-2.1\\io.netty\\netty-handler\\4.1.94.Final\\cd9121ce24d6d3f2898946d04b0ef3ec548b00b4\\netty-handler-4.1.94.Final.jar;C:\\Users\\pgom\\.gradle\\caches\\modules-2\\files-2.1\\io.netty\\net… |  
  | 1> line Launcher Type: SUN_STANDARD |  
  | 1> line 9116: |  
  | 1> line VM Arguments: |  
  | 1> line jvm_args: -Xmx64m -Xms64m -Dorg.gradle.appname=gradlew |  
  | 1> line java_command: org.gradle.wrapper.GradleWrapperMain :test:external-modules:test-die-with-dignity:javaRestTest --tests org.elasticsearch.qa.die_with_dignity.DieWithDignityIT.testDieWithDignity --scan |  
  | 1> line java_class_path (initial): C:\Users\pgom\workspace\elasticsearch\\gradle\wrapper\gradle-wrapper.jar |  
  | 1> line Launcher Type: SUN_STANDARD |  
  | 1> esCommandLines {}


@pgomulka
Copy link
Contributor

I debugged a bit further and I think there might be something wrong with jps on windows..
I checked the logs when debugging and ES cluster was running.
Its pid was 13504:

[2023-07-12T16:22:24,879][INFO ][o.e.n.Node               ] [javaRestTest-0] version[8.10.0-SNAPSHOT], pid[13504], build[zip/43365af5c9e189ea95e30b683d1e4bb2d2db5b6d/2023-07-12T14:02:22.249616200Z], OS[Windows 11/10.0/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/20.0.1/20.0.1+9-29]

when running jps however that pid was not there

C:\Users\pgom>jps
13472 GradleDaemon
26480 RemoteMavenServer36
6992 GradleWrapperMain
7552 reaper.jar
19556 JConsole
11976 GradleWorkerMain
7288 Jps
9736
11292 GradleDaemon

when running jcmd I got a response though..

>jcmd 13504 VM.command_line
13504:
VM Arguments:
jvm_args: -Des.networkaddress.cache.ttl=60 -Des.networkaddress.cache.negative.ttl=10 -Djava.security.manager=allow -XX:+AlwaysPreTouch -Xss1m -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djna.nosys=true -XX:-OmitStackTraceInFastThrow -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Dlog4j2.formatMsgNoLookups=true -Djava.locale.providers=SPI,COMPAT --add-opens=java.base/[java.io](http://java.io/)=org.elasticsearch.preallocate -XX:+UseG1GC -Djava.io.tmpdir=C:\Users\pgom\workspace\elasticsearch\test\external-modules\die-with-dignity\build\testclusters\javaRestTest-0\tmp --add-modules=jdk.incubator.vector -XX:+HeapDumpOnOutOfMemoryError -XX:+ExitOnOutOfMemoryError -XX:HeapDumpPath=C:\Users\pgom\workspace\elasticsearch\test\external-modules\die-with-dignity\build\testclusters\javaRestTest-0\logs -XX:ErrorFile=C:\Users\pgom\workspace\elasticsearch\test\external-modules\die-with-dignity\build\testclusters\javaRestTest-0\logs\hs_err_pid%p.log -Xlog:gc*,gc+age=trace,safepoint:file=C:\Users\pgom\workspace\elasticsearch\test\external-modules\die-with-dignity\build\testclusters\javaRestTest-0\logs\gc.log:utctime,level,pid,tags:filecount=32,filesize=64m -Xms512m -Xmx512m -ea -esa -Ddie.with.dignity.test=true -Dingest.geoip.downloader.enabled.default=false -Dio.netty.leakDetection.level=paranoid -XX:-ExitOnOutOfMemoryError -XX:MaxDirectMemorySize=268435456 -XX:G1HeapRegionSize=4m -XX:InitiatingHeapOccupancyPercent=30 -XX:G1ReservePercent=15 -Des.distribution.type=zip --module-path=C:\Users\pgom\workspace\elasticsearch\test\external-modules\die-with-dignity\build\testclusters\javaRestTest-0\distro\8.10.0-INTEG_TEST\lib --add-modules=[jdk.net](http://jdk.net/) --add-modules=org.elasticsearch.preallocate -Djdk.module.main=org.elasticsearch.server
java_command: org.elasticsearch.server/org.elasticsearch.bootstrap.Elasticsearch
java_class_path (initial): <not set>
Launcher Type: SUN_STANDARD

as a side note I think jcmd might be suffering from output truncation too

@pgomulka
Copy link
Contributor

pgomulka commented Jul 12, 2023

a comparison of tasklist (containing an elasticserach process (13504) and jps)

tasklist | findstr java
java.exe                     26480 Console                    3     93,908 K
java.exe                     11292 Console                    3  4,067,876 K
java.exe                     13472 Console                    3  3,279,368 K
java.exe                      6992 Console                    3     92,352 K
java.exe                      7552 Console                    3     28,096 K
java.exe                     24108 Console                    3     85,308 K
java.exe                     13504 Console                    3    715,420 K
java.exe                     11976 Console                    3    173,848 K
C:\Users\pgom>jps
13472 GradleDaemon
26480 RemoteMavenServer36
6992 GradleWrapperMain
7552 reaper.jar
19556 JConsole
11976 GradleWorkerMain
18488 Jps

rjernst added a commit to rjernst/elasticsearch that referenced this issue Jul 17, 2023
This commit rewrites the DieWithDignity test to use the new test infra.
A side effect of this change is that it no longer relies on jps, which
appears to have issues on Windows.

closes elastic#77282
rjernst added a commit that referenced this issue Jul 17, 2023
This commit rewrites the DieWithDignity test to use the new test infra.
A side effect of this change is that it no longer relies on jps, which
appears to have issues on Windows.

closes #77282
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Core/Infra/Core Core issues without another label Team:Core/Infra Meta label for core/infra team >test-failure Triaged test failures from CI
Projects
None yet
8 participants