Commit 8c72130
committed
[#30367] YSQL: Log before invalidating table cache after ALTER TABLE
Summary:
When a transaction executes an ALTER TABLE operation, we remember the table id in ddl_transaction_state.altered_table_ids and upon COMMIT, we
invalidate the table cache of such tables.
We are investigating a "schema version mismatch" error (linked bug) which executes an ALTER TABLE post TRUNCATE. Add log to aid the investigation.
Note that since DDLs are not that frequent, this log can be at INFO level.
Test Plan:
Jenkins: compile only
Just adds a log, so no need to run the tests. I've run the transactional ddl test locally.
Reviewers: myang, fizaa
Reviewed By: fizaa
Subscribers: yql
Differential Revision: https://phorge.dev.yugabyte.com/D506701 parent 53176d2 commit 8c72130
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4507 | 4507 | | |
4508 | 4508 | | |
4509 | 4509 | | |
| 4510 | + | |
| 4511 | + | |
| 4512 | + | |
4510 | 4513 | | |
4511 | 4514 | | |
4512 | 4515 | | |
| |||
0 commit comments