-
Notifications
You must be signed in to change notification settings - Fork 468
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
storage/sources: Minor fixes for source table objects #29563
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is failing a bunch, but is it possible to create a deterministic test for this?
@def- what do you mean by 'this'? Do you mean the |
I meant a deterministic test for the issue that this PR fixes. Something like this: materialize/test/cluster/mzcompose.py Lines 781 to 786 in 03b586b
|
Well, we are expecting that this error message no longer occurs. |
Yes exactly, if this fix works we will no longer see other tests fail when encountering that error message |
Motivation
Also fixes https://github.com/MaterializeInc/database-issues/issues/8557 and fixes https://github.com/MaterializeInc/database-issues/issues/8545 and fixes https://github.com/MaterializeInc/database-issues/issues/8558
We were error logging whenever source tables were dropped after their corresponding source which was always happening when they are dropped together in a transaction due to the implicit ordering in
src/adapter/src/coord/ddl.rs
. There isn't an actual bug in dropping out-of-order so I could have just removed the error log but I thought that it would be better to keep it since it might be useful in any future issue around dependency ordering.The error log happens here:
materialize/src/storage-controller/src/lib.rs
Lines 1453 to 1461 in 03b586b
Tips for reviewer
@MaterializeInc/testing I wasn't actually able to repro https://github.com/MaterializeInc/database-issues/issues/8542 using the command in that issue but I believe this is the fix for that issue. If you could try to repro on this branch that would be awesome.
Checklist
$T ⇔ Proto$T
mapping (possibly in a backwards-incompatible way), then it is tagged with aT-proto
label.