You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
152595: workload: fix divide by zero in `csvServerPaths` r=stevendanna,williamchoe3 a=srosenberg
Previously, `getNodeCount` could return zero without an error. This internal helper is used in `csvServerPaths` to determine `rowStep`. Not having any SQL nodes "available" is plausibly a valid system state. However, in the context of loading data, that indicates an error.
This PR ensures `getNodeCount` returns a non-zero result or an error. As a precaution, we also clamp down the divisor.
Epic: none
Fixes: #152092
Release note: None
Co-authored-by: Stan Rosenberg <[email protected]>
0 commit comments