You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mattcrdb opened this issue
Jan 6, 2020
· 3 comments
Assignees
Labels
C-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.S-2Medium-high impact: many users impacted, risks of availability and difficult-to-fix data errors
That's right before we then move tables that are being added into the public state (usually only needed for FKs, but also relied on by CREATE TABLE ... AS tables that use that same state.
We could potentially move the backfill down, inside the exclusive execution region and accordingly modify the existing make-public check to skip AS tables and add a later publish step, or we could also include a lease-acquisition inside maybeBackfillAs.
What I'm not sure of though why the lease isn't acquired much earlier -- to perform any of the earlier steps like make gc mutations and make public? Also, the tableDesc.Lease isn't really trusted -- in general, exec doesn't do anything to ensure it is maintained, so longer schema changes are left to their own devices to maintain it (and often don't) so we generally have seen concurrent execution and I think we've said that schema changes have to be okay with that? If so, then we'd need some other locking for CTAS backfill, because it is decidedly not okay with concurrent execution.
C-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.S-2Medium-high impact: many users impacted, risks of availability and difficult-to-fix data errors
Describe the problem
Customer fielded a bug where a CTAS on 19.2.1 on a table with 35 million rows is reporting 10's of million rows more than expected.
They are not using it in a TXN and therefore bulk-io is used to write the table.
To Reproduce
Expected behavior
A table with the exact amount of rows and data to be created.
Additional data / screenshots
possibly related to #28842
the bug does not occur when specifying a primary key
If applicable, add screenshots to help explain your problem.
Environment:
The text was updated successfully, but these errors were encountered: