File tree 2 files changed +8
-9
lines changed
rest-api-spec/src/main/resources/rest-api-spec/test/cat.thread_pool
server/src/main/java/org/opensearch/threadpool
2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 1
1
" Test cat thread_pool total_wait_time output " :
2
2
- skip :
3
- version : " - 3.0.0 "
4
- reason : thread_pool total_wait_time stats were introduced in V_3.0 .0
3
+ version : " - 2.10.99 "
4
+ reason : thread_pool total_wait_time stats were introduced in V_2.11 .0
5
5
6
6
- do :
7
7
cat.thread_pool : {}
19
19
20
20
- match :
21
21
$body : |
22
- /^ id \s+ name \s+ total_wait_time \s+ twt \n
23
- (\S+ \s+ search \s+ \d+s \s+ \d+ \n
24
- \S+ \s+ search_throttled \s+ \d+s \s+ \d+ \n
25
- \S+ \s+ index_searcher \s+ \d+s \s+ \d+ \n
26
- \S+ \s+ generic \s+ -1 \s+ -1 \n)+ $/
22
+ /^ name \s+ total_wait_time \s+ twt \n
23
+ (generic \s+ -1 \s+ -1 \n
24
+ search \s+ \d*\.*\d*\D+ \s+ \d*\.*\d*\D+ \n
25
+ search_throttled \s+ \d*\.*\d*\D+ \s+ \d*\.*\d*\D+ \n)+ $/
27
26
28
27
---
29
28
" Test cat thread_pool output " :
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ public Stats(StreamInput in) throws IOException {
88
88
rejected = in .readLong ();
89
89
largest = in .readInt ();
90
90
completed = in .readLong ();
91
- waitTimeNanos = in .getVersion ().onOrAfter (Version .V_3_0_0 ) ? in .readLong () : -1 ;
91
+ waitTimeNanos = in .getVersion ().onOrAfter (Version .V_2_11_0 ) ? in .readLong () : -1 ;
92
92
}
93
93
94
94
@ Override
@@ -100,7 +100,7 @@ public void writeTo(StreamOutput out) throws IOException {
100
100
out .writeLong (rejected );
101
101
out .writeInt (largest );
102
102
out .writeLong (completed );
103
- if (out .getVersion ().onOrAfter (Version .V_3_0_0 )) {
103
+ if (out .getVersion ().onOrAfter (Version .V_2_11_0 )) {
104
104
out .writeLong (waitTimeNanos );
105
105
}
106
106
}
You can’t perform that action at this time.
0 commit comments