Skip to content

Conversation

@mzumsande
Copy link
Contributor

@mzumsande mzumsande commented Oct 28, 2022

I can't reproduce the error from #26630 locally, but from analying the logs I think the problem is the following:

After calling sync_blocks, we didn't check that the indexes have caught up to the tip before performing the manual pruning. This could possibly lead to prune blockers with a lower height than the expected 2489, which do appear in the logs of the failed CI runs, e.g.

  • 2022-10-27T21:14:17.703920Z [C:\Users\ContainerAdministrator\AppData\Local\Temp\cirrus-ci-build\src\validation.cpp:2395] [FlushStateToDisk] [prune] coinstatsindex limited pruning to height 2488 (Cirrus)

So, this should be fixed by a call to sync_index.
Fixes #26330

After syncing the blocks, we didn't check that the
indexes have caught up to the tip before manually pruning.
This could lead to prune blockers lower thatn the expected height.
Copy link
Contributor

@brunoerg brunoerg left a comment

Choose a reason for hiding this comment

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

crACK 201b9a0

I wasn't able to reproduce it locally but waiting for the indexes have caught up to the tip should fix it. It seems a little bit similar to #26098 and #26143.

@maflcko maflcko merged commit 5274f32 into bitcoin:master Nov 2, 2022
@mzumsande mzumsande deleted the 202210_testfix_indexprune branch November 3, 2022 01:09
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Nov 3, 2022
…prune.py

201b9a0 test: fix intermittent failure in feature_index_prune.py (Martin Zumsande)

Pull request description:

  I can't reproduce the error from bitcoin#26630 locally, but from analying the logs I think the problem is the following:

  After calling `sync_blocks`, we didn't check that the indexes have caught up to the tip before performing the manual pruning. This could possibly lead to prune blockers with a lower height than the expected 2489, which do appear in the logs of the failed CI runs, e.g.
   - `2022-10-27T21:14:17.703920Z [C:\Users\ContainerAdministrator\AppData\Local\Temp\cirrus-ci-build\src\validation.cpp:2395] [FlushStateToDisk] [prune] coinstatsindex limited pruning to height 2488` ([Cirrus](https://cirrus-ci.com/task/5443742333665280?logs=functional_tests#L2506))

  So, this should be fixed by a call to `sync_index`.
  Fixes bitcoin#26330

ACKs for top commit:
  brunoerg:
    crACK 201b9a0

Tree-SHA512: fb7023c9eb2ba6d0e69e059a401453cbdf63abc6804543dffcf36ba9f93c9cd13209e57aa5536d94b2e420c9d4cd0b1a7eff1adadd19aa7b3c33f592502e1bc0
@bitcoin bitcoin locked and limited conversation to collaborators Nov 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test: Intermittent failure in feature_index_prune.py

4 participants