opensearch-project/OpenSearch

[Feature Request] Make multi-node gradle test clusters work with IntelliJ debugger

Open

#19.342 aberto em 19 de set. de 2025

Ver no GitHub
 (5 comments) (0 reactions) (1 assignee)Java (1.505 forks)batch import
Buildenhancementgood first issue

Métricas do repositório

Stars
 (8.123 stars)
Métricas de merge de PR
 (Mesclagem média 5d 9h) (266 fundiu PRs em 30d)

Description

Is your feature request related to a problem? Please describe

When running local clusters with ./gradlew run you can provide -PnumNodes=<number of nodes> to run a cluster locally with more than one node. This is useful but unfortunately you can't use it with --debug-jvm. It'd be great if you could use both simultaneously.

Describe the solution you'd like

Currently it fails because each node expects a different debug server running on ports 5005, 5006, and 5007:

Running opensearch in debug mode (client), node{::runTask-0} expecting running debug server on port 5005
Running opensearch in debug mode (client), node{::runTask-1} expecting running debug server on port 5006
Running opensearch in debug mode (client), node{::runTask-2} expecting running debug server on port 5007

Maybe they could all point towards the same server at 5005?

Related component

Build

Describe alternatives you've considered

No response

Additional context

No response

Guia do colaborador