Open deeps1991 opened 2 years ago
What's the behavior when there are no INSERTs?
INSERTS could change the state of the table, and whether or not the table has the uniqueness property. If there is a possible violation,-- during backfill -- it is fair game to either fail,
So fair game for one implementation to fail the insert, vs another to fail the index-creation.
Are we sure that the duplicate error wasn’t “inserted”? If so, we should probably see this difference even when run in “isolation”.
Jira Link: DB-2962
Description
This error was noted while creating unique index using online index backfill:
However, no duplicate keys were found:
Note that adding a nonconcurrent index succeeded without errors. Also note that there were concurrent INSERTs running while the DDL was happening.