Commit 23f403a
authored
fix: Negative finishCpu causes stats reporting to fail (#26587)
Summary:
finishCpu += operator.getFinishCpu().roundTo(NANOSECONDS);
getFinishCpu has underlying issue that causes finisheCpu to overflow
thus resulting in a negative result. This causes exception while
reporting query completion event leading to stats not being reported.
Fix it by setting finishCpu to max value when it overflows
# Release Note
```
== NO RELEASE NOTE ==
```1 parent 0e12d41 commit 23f403a
File tree
1 file changed
+3
-1
lines changed- presto-main-base/src/main/java/com/facebook/presto/operator
1 file changed
+3
-1
lines changedLines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
885 | 885 | | |
886 | 886 | | |
887 | 887 | | |
888 | | - | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
889 | 891 | | |
890 | 892 | | |
891 | 893 | | |
| |||
0 commit comments