From 7527d6f046fe9ebdca8e949fe9f78e999c7d5573 Mon Sep 17 00:00:00 2001 From: Mark Vieira Date: Wed, 22 Mar 2023 14:40:10 -0700 Subject: [PATCH] Add intellij run configurations for multi-node clusters --- .gitignore | 2 +- .../Debug_Elasticsearch__node_2_.xml | 11 +++++++++++ .../Debug_Elasticsearch__node_3_.xml | 11 +++++++++++ TESTING.asciidoc | 3 ++- 4 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 .idea/runConfigurations/Debug_Elasticsearch__node_2_.xml create mode 100644 .idea/runConfigurations/Debug_Elasticsearch__node_3_.xml diff --git a/.gitignore b/.gitignore index fd5449b9fc3b6..5d0c5b2a4af57 100644 --- a/.gitignore +++ b/.gitignore @@ -12,7 +12,7 @@ out/ !.idea/eclipseCodeFormatter.xml !.idea/externalDependencies.xml !.idea/inspectionProfiles/Project_Default.xml -!.idea/runConfigurations/Debug_Elasticsearch.xml +!.idea/runConfigurations/ !.idea/scopes/x_pack.xml # These files are generated in the main tree by IntelliJ diff --git a/.idea/runConfigurations/Debug_Elasticsearch__node_2_.xml b/.idea/runConfigurations/Debug_Elasticsearch__node_2_.xml new file mode 100644 index 0000000000000..94bb079398ffd --- /dev/null +++ b/.idea/runConfigurations/Debug_Elasticsearch__node_2_.xml @@ -0,0 +1,11 @@ + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/Debug_Elasticsearch__node_3_.xml b/.idea/runConfigurations/Debug_Elasticsearch__node_3_.xml new file mode 100644 index 0000000000000..aaef20fec729b --- /dev/null +++ b/.idea/runConfigurations/Debug_Elasticsearch__node_3_.xml @@ -0,0 +1,11 @@ + + + + \ No newline at end of file diff --git a/TESTING.asciidoc b/TESTING.asciidoc index 186ac155000d5..f574633a90eca 100644 --- a/TESTING.asciidoc +++ b/TESTING.asciidoc @@ -392,7 +392,8 @@ port of `5007`. NOTE: In the case of test clusters using multiple nodes, multiple debuggers will need to be attached on incrementing ports. For example, for a 3 node cluster ports `5007`, `5008`, and `5009` will attempt to attach to a listening -debugger. +debugger. You can use the "Debug Elasticsearch (node 2)" and "(node 3)" run +configurations should you need to debug a multi-node cluster. You can also use a combination of both flags to debug both tests and server. This is only applicable to Java REST tests.