Skip to content

Commit 16dd640

Browse files
committed
workload/schemachanger: expect competing drop error in operation generation
The type-specific table dropped error (#169991) needs to be handled in the operation generator. Epic: none Fixes: #169638 Release note: None
1 parent 38098df commit 16dd640

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

pkg/workload/schemachange/operation_generator.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,12 @@ func (og *operationGenerator) randOp(
217217
if errors.Is(err, ErrSchemaChangesDisallowedDueToPkSwap) {
218218
continue
219219
}
220+
// A concurrent DROP can remove a descriptor while we are generating
221+
// an operation against it.
222+
if pgErr := new(pgconn.PgError); errors.As(err, &pgErr) &&
223+
pgErr.Code == pgcode.UndefinedTable.String() {
224+
continue
225+
}
220226
return nil, errors.Wrapf(err, "failed generating operation: %s", op)
221227
}
222228

0 commit comments

Comments
 (0)