Skip to content

Conversation

SChakravorti21
Copy link
Contributor

It seems this logic has existed since before schema lock was a thing. The critical section of statthd that inspects dbenv now acquires the schema lock, so this check should no longer be necessary. Remove the check in statthd for whether schema change is in progress so that statreqs are not missing on the master during schema change.

}
strbuf_appendf(logstr, "\n");
reqlog_logl(statlogger, REQL_INFO, strbuf_buf(logstr));
thresh = reqlog_diffstat_thresh();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Diff is mostly indentation and changes applied by the formatting script, actual change is just removing the condition. We go from

if (!get_schema_change_in_progress(__func__, __LINE__)) {
  // update statreqs
}

to

// update statreqs

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: Success ✓.
Smoke testing: Error ⚠.
Cbuild submission: Success ✓.
Regression testing: 1/634 tests failed ⚠.

The first 10 failing tests are:
reco-ddlk-sql

…hange

It seems this logic has existed since before schema lock was a thing. The
critical section of `statthd` that inspects `dbenv` now acquires the schema
lock, so this check should no longer be necessary. Remove the check in `statthd`
for whether schema change is in progress so that statreqs are not missing on the
master during schema change.

Signed-off-by: Shoumyo Chakravorti <[email protected]>
@SChakravorti21 SChakravorti21 changed the title {180685083}: Do not block statreq updates during schema change {180685083} fix(reqlog): do not block statreq updates during schema change Oct 22, 2025
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