Skip to content

Race between sc_set_running(0) and ddl replication#5979

Open
dorinhogea wants to merge 2 commits into
bloomberg:mainfrom
dorinhogea:scsetrunning
Open

Race between sc_set_running(0) and ddl replication#5979
dorinhogea wants to merge 2 commits into
bloomberg:mainfrom
dorinhogea:scsetrunning

Conversation

@dorinhogea
Copy link
Copy Markdown
Contributor

This adds a test to show the issue.
Adds gbl_test_sc_delay_after_unset_running tunable that inserts a configurable sleep between sc_set_running(0) and the return from osql_finalize_scs(), widening the window between the running flag clearing and trans_commit to reliably reproduce the race where stat shows no schema change running but tableversion is not yet committed.

Copy link
Copy Markdown

@roborivers roborivers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cbuild submission: Success ✓.
Regression testing: Success ✓.

The first 10 failing tests are:
sc_resume_logicalsc_generated **quarantined**
sc_setrunning_race **quarantined**
consumer_non_atomic_default_consumer_generated **quarantined**
tunables
reco-ddlk-sql [timeout] **quarantined**

Copy link
Copy Markdown

@roborivers roborivers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cbuild submission: Success ✓.
Regression testing: Success ✓.

The first 10 failing tests are:
sc_resume_logicalsc_generated **quarantined**
sqllogfill_reset_gen
reco-ddlk-sql **quarantined**
consumer_non_atomic_default_consumer_generated **quarantined**
sc_transactional_rowlocks_generated
basic_rowlocks_generated
tunables

Signed-off-by: Dorin Hogea <dhogea@bloomberg.net>
Signed-off-by: Dorin Hogea <dhogea@bloomberg.net>
Copy link
Copy Markdown

@roborivers roborivers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cbuild submission: Success ✓.
Regression testing: Success ✓.

The first 10 failing tests are:
comdb2sys_pagesize_generated [setup failed]
consumer [setup failed]
sp_snapshot_generated
consumer_non_atomic_default_consumer_generated **quarantined**
sc_transactional_rowlocks_generated
remotecreate_twopc_generated
remotecreate
basic_rowlocks_generated
reco-ddlk-sql [timeout] **quarantined**

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants