sql: improve the behavior when hitting the limit on the number of open FDs for disk spilling #91784
Labels
C-cleanup
Tech debt, refactors, loose ends, etc. Solution not expected to significantly change behavior.
T-sql-queries
SQL Queries Team
As of #84398, we now might hit a timeout when trying to acquire the file descriptors when spilling to disk. We should try a bit harder by lowering the desired FD count - e.g. the external sort needs 3 FDs to make progress, but it can be asking for more (at the moment for 1/16 of the node-wide limit), and if it doesn't get it, the sort errors out. We should be smarter here.
Jira issue: CRDB-21425
The text was updated successfully, but these errors were encountered: