Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
116437: roachtestutil: don't reference context after cancellation r=renatolabs a=stevendanna Previously, CheckInvalidDescriptors accessed `rows` after RunWithTimeout already returned. This is a problem because the context passed to db.QueryContext is retained by the returned rows object. That context is in turn cancelled when RunWithTimeout returns. As a result, it is possible to see a context cancelled error when accessing rows if it observes the context cancellation quickly enough. Fixes #116426 Release note: None Co-authored-by: Steven Danna <[email protected]>
- Loading branch information