Commit 4b3928e
committed
Fix floating point precision loss in nodes stats API
Change ConcurrentAVGSliceCount field from float32 to float64 in nodes
stats API response to prevent precision loss. This fixes test failures
where values like 1.6666666666666667 were being truncated to 1.6666666
due to float32 precision limits.
Resolves OpenSearch 3.2.0+ compatibility issues with nodes stats API
floating point values.
Signed-off-by: Sean Chittenden <sean.chittenden@crowdstrike.com>1 parent 6949c2f commit 4b3928e
2 files changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
| 160 | + | |
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| |||
0 commit comments