Skip to content
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

[YSQL] ERROR: The catalog snapshot used for this transaction has been invalidated: MISMATCHED_SCHEMA, DDL is taking more time to execute #20468

Open
1 task done
agsh-yb opened this issue Jan 5, 2024 · 0 comments
Assignees
Labels
area/ysql Yugabyte SQL (YSQL) kind/bug This issue is a bug priority/medium Medium priority issue qa_automation Bugs identified via itest-system, LST, Stress automation or causing automation failures qa_itest-system Bugs identified in itest-system automation status/awaiting-triage Issue awaiting triage

Comments

@agsh-yb
Copy link
Contributor

agsh-yb commented Jan 5, 2024

Jira Link: DB-9470

Description

Error observed in 2.14.14.0-b17 quite frequently in testtabletsplittingwithpitrcopybrupgradesindexmatview-aws-rf3-upgrade-2.14.14.0-b17, While performing some DDL’s (Alter table) commands

(   123.480s) Execute DDLs' after Create BACKUP_001 : >>> Integration Test Failed <<< 
Query error: The catalog snapshot used for this transaction has been invalidated: MISMATCHED_SCHEMA
CONTEXT:  Catalog Version Mismatch: A DDL occurred while processing this query. Try again.

Note: No parallel DDL are there, Also if we add wait of 1 second after every DDL command this error is not observed
I assume alter table commands are taking time here, similar error issue #12621
Steps test is following is:

Create tables : Success
	testtabletsplittingwithpitrcopybrupgradesindexmatview-aws-rf3-upgrade-2.14.13.0-b13: Start
	(     0.667s) User Login : Success
	(     0.284s) Refresh YB Version : Success
	(    94.395s) Setup Provider : Success
	(     0.193s) Enable RBAC Flag : Success
	(     3.562s) Download old release: 2.14.13.0-b13 : Success
	(     0.311s) Updating Health Check Interval to 60000 sec : Success
	(   519.630s) Create universe sagr-isd9902-9a0cb6806c-20240103-112936 : Success
	(    25.500s) Create Database tablet_splitting_pitr : Success
	(    22.357s) Create tables : Success
	(   163.076s) Load data to employees_hash : Success
	(   163.145s) Load data to employees_range : Success
	(   156.700s) Load data to co_table_1 : Success
	(     3.442s) Create Secondary Index. : Success
	(     3.381s) Create Unique Index. : Success
	(     3.474s) Create Partial Index. : Success
	(    23.481s) Create Secondary Index. : Success
	(     3.406s) Create Unique Index. : Success
	(     3.483s) Create Partial Index. : Success
	(    14.788s) Create Secondary Index. : Success
	(     4.353s) Create Unique Index. : Success
	(     3.382s) Create Partial Index. : Success
	(    41.881s) Create Snapshot Schedule : Success
	(    41.169s) Create Snapshot Schedule colocated : Success
	(     3.486s) Execute COPY TO COPY FROM : Success
	(    31.603s) Drop Colocated tables : Success
	(   230.939s) Load data to employees_hash : Success
	(   290.376s) Load data to employees_range : Success
	(   370.444s) PITR at time(1) : Success
	(    60.097s) PITR at time(1) : Success
	(     9.570s) Create Materialized Views : Success
	(   155.701s) Create Backups : Success
	(   241.338s) Create Backups : Success
	(   126.847s) Execute DDLs' after Create BACKUP_001 : >>> Integration Test Failed <<< 
Query error: The catalog snapshot used for this transaction has been invalidated: MISMATCHED_SCHEMA
CONTEXT:  Catalog Version Mismatch: A DDL occurred while processing this query. Try again.

Observing failure from version2.14.13.0-b13

Issue Type

kind/bug

Warning: Please confirm that this issue does not contain any sensitive information

  • I confirm this issue does not contain any sensitive information.
@agsh-yb agsh-yb added area/ysql Yugabyte SQL (YSQL) status/awaiting-triage Issue awaiting triage labels Jan 5, 2024
@yugabyte-ci yugabyte-ci added kind/bug This issue is a bug priority/medium Medium priority issue labels Jan 5, 2024
@agsh-yb agsh-yb added qa_automation Bugs identified via itest-system, LST, Stress automation or causing automation failures LST_LRT LRT bugs encountered within long-system-test qa_itest-system Bugs identified in itest-system automation and removed LST_LRT LRT bugs encountered within long-system-test labels Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ysql Yugabyte SQL (YSQL) kind/bug This issue is a bug priority/medium Medium priority issue qa_automation Bugs identified via itest-system, LST, Stress automation or causing automation failures qa_itest-system Bugs identified in itest-system automation status/awaiting-triage Issue awaiting triage
Projects
None yet
Development

No branches or pull requests

3 participants