Page MenuHomePhabricator

[chronik] Fix a race in chronik_resync.py
ClosedPublic

Authored by Fabien on Fri, Nov 29, 10:07.

Details

Reviewers
PiRK
Group Reviewers
Restricted Project
Commits
rABC2a99990e10c0: [chronik] Fix a race in chronik_resync.py
Summary

When doing a full reindex via -reindex, both chronik and the node are reindexing.

The chronik reindex is blocking until it catches up with the node, which will happen on the first block in the case of a full reindex. So before the tip become available we need to wait:

  • For the node to be fully synced
  • For chronik to drain the validation interface queue
Test Plan
./test/functional/test_runner.py chronik_resync

Diff Detail

Repository
rABC Bitcoin ABC
Branch
fix_chronik_reindex
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 31394
Build 62286: Build Diffbuild-without-wallet · build-diff · build-debug · build-clang · build-clang-tidy
Build 62285: arc lint + arc unit