Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
roachtest/awsdms: fix race condition that can cause panics
In cockroachdb#95518, we added a new test case to check for a table error during the DMS process. However there is a race when the check happens depending on how quickly tasks have ran and the task ReplicationTaskStats can be nil and we tried to access field on the nil object that was returned from the API call. This commit checks that the ReplicationTaskStat is not nil before accessing the TablesErrored property. Fixes: cockroachdb#93305 Release note: None
- Loading branch information