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

avoid lock inversion during partition rollout #4365

Merged
merged 1 commit into from
Apr 29, 2024

Conversation

dorinhogea
Copy link
Contributor

@dorinhogea dorinhogea commented Apr 18, 2024

Short fix for partition lock inversion: do not read from llmeta during triggers update.

Re: 174791652

…g triggers update.

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

@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.

Lint check:

@@ cdb2api/cdb2api.c @@
+ Please port the change to cdb2jdbc if necessary.
+ If you add any internal configuration state to this file, please update the reset_the_configuration() function as well to include it.
@@ db/db_tunables.h @@
+ Please update the tunable documentation (docs/pages/config/config_files.md) accordingly.
@@ berkdb/db/trigger_subscription.c @@
+ Please make sure that a mutex is unlocked before returning.
@@ berkdb/env/env_method.c @@
+ Please make sure that a mutex is unlocked before returning.
@@ db/reqlog.c @@
+ Please make sure that a mutex is unlocked before returning.
@@ plugins/reversesql/reversesql.c @@
+ Please make sure that a mutex is unlocked before returning.
@@ plugins/reversesql/reversesql.c @@
+ Please replace any pthread_xxx() function in your diff with corresponding Pthread_xxx() wrapper.

Copy link

@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.

Coding style check: Error. ⚠.
Smoke testing: Success ✓.
Cbuild submission: Success ✓.
Regression testing: 8/523 tests failed ⚠.

The first 10 failing tests are:
sc_transactional_rowlocks_generated
truncatesc_offline_generated
pmux_sqlite_file_generated
tunables
sc_lotsoftables_logicalsc_generated
sc_lotsoftables
sc_downgrade
truncatesc

Copy link

@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.

Lint check:

@@ cdb2api/cdb2api.c @@
+ Please port the change to cdb2jdbc if necessary.
+ If you add any internal configuration state to this file, please update the reset_the_configuration() function as well to include it.
@@ db/db_tunables.h @@
+ Please update the tunable documentation (docs/pages/config/config_files.md) accordingly.
@@ berkdb/db/trigger_subscription.c @@
+ Please make sure that a mutex is unlocked before returning.
@@ berkdb/env/env_method.c @@
+ Please make sure that a mutex is unlocked before returning.
@@ db/reqlog.c @@
+ Please make sure that a mutex is unlocked before returning.
@@ plugins/reversesql/reversesql.c @@
+ Please make sure that a mutex is unlocked before returning.
@@ plugins/reversesql/reversesql.c @@
+ Please replace any pthread_xxx() function in your diff with corresponding Pthread_xxx() wrapper.

Copy link

@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.

Coding style check: Error. ⚠.
Smoke testing: Success ✓.
Cbuild submission: Error ⚠.
Regression testing: 7/523 tests failed ⚠.

The first 10 failing tests are:
sc_truncate
truncatesc_offline_generated
queuedb_rollover
sc_timepart_logicalsc_generated
tunables
sc_downgrade
selectv_rcode_disable_svonly_nop_generated

@dorinhogea
Copy link
Contributor Author

cdb2test Apr 18 14:00:13 2024 in-comdb2db fix_lock_inversion_partitions.R20240418.6

@dorinhogea
Copy link
Contributor Author

@mponomar thank you

@dorinhogea dorinhogea merged commit 6649536 into bloomberg:8.0 Apr 29, 2024
1 check passed
@dorinhogea dorinhogea deleted the fix_lock_inversion_partitions branch April 29, 2024 20:55
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.

None yet

3 participants