HomePhabricator

[chronik] Fix a race in chronik_resync.py

Description

[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

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Differential Revision: https://reviews.bitcoinabc.org/D17244

Details

Provenance
FabienAuthored on Fri, Nov 29, 10:06
FabienPushed on Fri, Nov 29, 15:23
Reviewer
Restricted Project
Differential Revision
D17244: [chronik] Fix a race in chronik_resync.py
Parents
rABC95ec22dbb633: [ecash-agora] Add a Dockerfile for CI publishing
Branches
Unknown
Tags
Unknown