Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
roachtestutil: don't reference context after cancellation
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
- Loading branch information