You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to enable Debug for integ-test ES server in elastic search #102
Running normal tests (without ES RestIntegTestTask) in intellij is very easy. We just import the project and run it it the Debug.
However I cannot find a way to run the underlying ES search server in debug mode.
I tried to add -Dcluster.debug -Dtest.debug, but it doesn't seem opening any port and the test will just run without stopping at breakpoints.
For future reference, I found a way to make it work
Adding -Dtests.jvm.argline=-agentlib:jdwp=transport=dt_socket,server=n,address=192.168.4.64:5021,suspend=y to VM options in the intellij Debug configuration
Important, I used server=n because otherwise you need to re-attach the debugger to every ES process (keystore/plugin install, es server etc..). In this way instead you just start the debugger in LISTEN mode and it will automatically re-attach.
Activity
FreCap commentedon Jun 3, 2021
Is the only way running the tests against a separately deployed ES server?
I tried to:
build/testclusters/integTest-0/config/jvm.optionsbut it is replaced at every deployement@dai-chen do you have any quick hint that could save me?
FreCap commentedon Jun 3, 2021
For future reference, I found a way to make it work
Adding
-Dtests.jvm.argline=-agentlib:jdwp=transport=dt_socket,server=n,address=192.168.4.64:5021,suspend=yto VM options in the intellij Debug configurationImportant, I used
server=nbecause otherwise you need to re-attach the debugger to every ES process (keystore/plugin install, es server etc..). In this way instead you just start the debugger in LISTEN mode and it will automatically re-attach.dblock commentedon Jun 3, 2021
This is a good opportunity to extract a TESTING.md document similar to https://github.com/opensearch-project/OpenSearch/blob/main/TESTING.md
Add `maketime` and `makedate` (#102) (#755)
Add `maketime` and `makedate` (#102) (#755)
dai-chen commentedon Dec 14, 2022
This PR may fixed the issue. Feel free to reopen if you still face any problem. Thanks!