-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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
simplify ./gradlew run-ccs #89711
simplify ./gradlew run-ccs #89711
Conversation
Documentation preview: |
@@ -37,8 +37,8 @@ default void useCluster(Provider<ElasticsearchCluster> cluster) { | |||
|
|||
default void beforeStart() {} | |||
|
|||
default void enableDebug(int portOffset) { | |||
int debugPort = 5007 + portOffset; | |||
default void enableDebug() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
part of the revert
@@ -104,7 +104,7 @@ public WorkResult delete(Object... objects) { | |||
@Override | |||
public void beforeStart() { | |||
if (debugServer) { | |||
enableDebug(0); | |||
enableDebug(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
part of the revert
@@ -35,16 +35,12 @@ public class RunTask extends DefaultTestClustersTask { | |||
|
|||
private Boolean debug = false; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all changes are part of the revert
node.setting('cluster.remote.my_remote_cluster.seeds', fulfillingCluster.get().getAllTransportPortURI().collect { "\"$it\"" }.toString()) | ||
} | ||
} | ||
queryingCluster.get().restart() //updates the on-disk config |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the main change. specifically calling .restart() to update the configuration on disk
Pinging @elastic/es-delivery (Team:Delivery) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
thanks Mark! |
This commit reverts the changes introduced via #89442 / 20ed7e3
and re-implements the same goals but with fewer changes. Also included in this commit
is the ability to change the proxyMode via system property and mention of this
new run task in the testing documentation.
===
While working #89563 I found a better pattern that does not require updates to the run task. I think this approach is cleaner especially for debugging.