Open giangpham712 opened 11 months ago
Hello, I am Blathers. I am here to help you get the issue triaged.
Hoot - a bug! Though bugs are the bane of my existence, rest assured the wretched thing will get the best of care here.
I have CC'd a few people who may be able to assist you:
If we have not gotten back to your issue within a few business days, you can try the following:
:owl: Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.
This is a limitation of the legacy schema changer, but it won't be eliminated in the short term. In general, we don't fully support running schema changes in transactions: https://www.cockroachlabs.com/docs/stable/online-schema-changes#limitations. So, there will be weird bugs like this
@giangpham712 since this is affecting some tests, but we can't fix this soon, I think you should skip those tests for CRDB.
Describe the problem
Within a transaction, dropping the foreign key constraint followed by dropping the referenced table doesn't seem to work
To Reproduce
Create two tables with the following schema
Try to drop the foreign key constraint
FK_Blogs_Owners_OwnerId
and then drop the two tables in the same transaction as followThe following error is returned
Additional context
This is affecting some tests in efcore.pg library
@fqazi @rafiss
Jira issue: CRDB-30285