Error: Invalid column name because it conflicts with the existing column: isdirectdeal #1760
Unanswered
LexLuthr
asked this question in
Storage Provider
Replies: 1 comment
-
Permanent fix is at #1761 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A storage provider upgrading from v2.0.0 to a higher version may encounter the below error.
Error: running cassandra migrations: running migration ts20230913144459_dealsAddIsDirectDealColumn: creating new column IsDirectDeal: Duplicate Column. Invalid column name because it conflicts with the existing column: isdirectdeal ALTER TABLE PieceDeal ADD IsDirectDeal BOOLEAN
The error comes from an incomplete migration which add the new column to the existing Cassandra table in the YugabyteDB. The migration does the following:
The problem is encountered when first step complete but the second one doesn't. This causes the migration to be marked as incomplete and when it is attempted again on the next start we run into the above error.
Fix:
ycqlsh
utility from YugabyteDB.ALTER TABLE idx.PieceDeal DROP IsDirectDeal;
** We are still investigating the condition which leads to the incomplete migrations. If you encounter this error, I would request you to please submit logs here of
boostd-data
service from last time it worked till latest. **Beta Was this translation helpful? Give feedback.
All reactions