Commit 09d7b33
committed
Fix nodes stats API compatibility with OpenSearch 3.3.0+
Add missing fields to nodes stats API structs for OpenSearch 3.3.0+
compatibility:
- Add NeuralSearch field to NodesStatsBreakers struct for neural
search circuit breaker support
- Add QueryFailed and StartreeQueryFailed fields to search stats
for tracking failed queries
- Add SystemGeneratedProcessors and SystemGeneratedFactories fields
to NodesStatsSearchPipeline for search pipeline system components
Fixes test failures where these fields were being dropped during JSON
unmarshalling, causing jsondiff mismatches in OpenSearch 3.3.0+.
Signed-off-by: Sean Chittenden <sean.chittenden@crowdstrike.com>1 parent e66c644 commit 09d7b33
2 files changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| 157 | + | |
157 | 158 | | |
158 | 159 | | |
159 | 160 | | |
160 | 161 | | |
161 | 162 | | |
162 | 163 | | |
163 | 164 | | |
| 165 | + | |
164 | 166 | | |
165 | 167 | | |
166 | 168 | | |
| |||
494 | 496 | | |
495 | 497 | | |
496 | 498 | | |
| 499 | + | |
497 | 500 | | |
498 | 501 | | |
499 | 502 | | |
| |||
679 | 682 | | |
680 | 683 | | |
681 | 684 | | |
682 | | - | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
683 | 688 | | |
684 | 689 | | |
685 | 690 | | |
| |||
0 commit comments