Skip to content

fix(bootstrap): use internal SQL timeout for global stat initialization - #2661

Open
laassaaser-dev wants to merge 1 commit into
oceanbase:masterfrom
laassaaser-dev:fix/issue-1544-bootstrap-timeout
Open

laassaaser-dev wants to merge 1 commit into
oceanbase:masterfrom
laassaaser-dev:fix/issue-1544-bootstrap-timeout

Conversation

@laassaaser-dev

@laassaaser-dev laassaaser-dev commented Nov 16, 2026 •

Copy link
Copy Markdown

Task Description

Fixes #1544

Fresh database bootstrap can intermittently fail with OB_TIMEOUT on Windows
during global-stat initialization.

Code inspection suggests that slow core-table loading and locking may exhaust
the default RPC timeout. The reported failure has not yet been reproduced for
this change.

Solution Description

Create a scoped timeout context in ObBootstrap::init_global_stat(), using
internal_sql_execute_timeout as the default budget.

Nested operations can inherit this context. Existing parent or worker deadlines
remain in effect when present.

Passed Regressions

  • git diff --check: passed.
  • Build: not performed.
  • Windows reproduction and lifecycle testing: not performed.
  • Regression tests: not added or run.

Other Information

This is a candidate fix. Its runtime behavior and effect on the reported
intermittent failure have not been verified.

Release Note

Use the internal SQL timeout as the default budget for global-stat
initialization during bootstrap.
OB-P:jb6yvvmt5p9SosScJdHCtQ

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@github-actions github-actions Bot added the community Contribution from community. label Nov 16, 2026

This branch has not been deployed

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

Labels

community Contribution from community.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Intermittent bootstrap OB_TIMEOUT when initializing a fresh database on Windows

2 participants