Skip to content

Commit 7a18294

Browse files
Use snake case for nodes stats/info metric names (#53446)
The REST API uses "thread_pool" as the name of the thread pool metric. If we use this name internally when we serialize nodes stats and info requests, we won't need to do any fancy logic to check for and switch out "threadPool", which was the previous internal name.
1 parent febe7af commit 7a18294

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,8 @@ task verifyVersions {
221221
* after the backport of the backcompat code is complete.
222222
*/
223223

224-
boolean bwc_tests_enabled = true
225-
final String bwc_tests_disabled_issue = "" /* place a PR link here when committing bwc changes */
224+
boolean bwc_tests_enabled = false
225+
final String bwc_tests_disabled_issue = "https://github.com/elastic/elasticsearch/pull/53446" /* place a PR link here when committing bwc changes */
226226
if (bwc_tests_enabled == false) {
227227
if (bwc_tests_disabled_issue.isEmpty()) {
228228
throw new GradleException("bwc_tests_disabled_issue must be set when bwc_tests_enabled == false")

server/src/main/java/org/elasticsearch/action/admin/cluster/node/info/NodesInfoRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ enum Metrics {
286286
OS("os"),
287287
PROCESS("process"),
288288
JVM("jvm"),
289-
THREAD_POOL("threadPool"),
289+
THREAD_POOL("thread_pool"),
290290
TRANSPORT("transport"),
291291
HTTP("http"),
292292
PLUGINS("plugins"),

server/src/main/java/org/elasticsearch/action/admin/cluster/node/stats/NodesStatsRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ private enum Metric {
319319
OS("os"),
320320
PROCESS("process"),
321321
JVM("jvm"),
322-
THREAD_POOL("threadPool"),
322+
THREAD_POOL("thread_pool"),
323323
FS("fs"),
324324
TRANSPORT("transport"),
325325
HTTP("http"),

0 commit comments

Comments
 (0)