index: Avoid async shutdown on init error #21796

pull MarcoFalke wants to merge 1 commits into bitcoin:master from MarcoFalke:2104-indexInit changing 7 files +23 −17
  1. MarcoFalke commented at 11:34 AM on April 28, 2021: member

    An async shutdown during init is confusing when a simple boolean return value can be used for a synchronous shutdown.

    This also changes the error message on stderr from:

    Error: A fatal internal error occurred, see debug.log for details
    Error: A fatal internal error occurred, see debug.log for details
    

    To:

    Error: basic block filter index best block of the index goes beyond pruned data. Please disable the index or reindex (which will download the whole blockchain again)
    
  2. DrahtBot added the label UTXO Db and Indexes on Apr 28, 2021
  3. DrahtBot commented at 4:02 PM on April 28, 2021: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--174a7506f384e20aa4161008e828411d-->

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #21866 ([Bundle 7/7] validation: Farewell, global Chainstate! by dongcarl)
    • #21767 ([Bundle 6/n] Prune g_chainman usage in auxiliary modules by dongcarl)
    • #19064 (refactor: Cleanup thread ctor calls by hebasto)

    If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

  4. DrahtBot cross-referenced this on Apr 28, 2021 from issue [Bundle 6/n] Prune g_chainman usage in auxiliary modules by dongcarl
  5. DrahtBot cross-referenced this on Apr 28, 2021 from issue refactor: Cleanup thread ctor calls by hebasto
  6. MarcoFalke cross-referenced this on May 1, 2021 from issue Starting pruned node with `blockfilterindex=1` gives unhelpful error by benthecarman
  7. laanwj commented at 2:34 PM on May 5, 2021: member

    Code review ACK—however this introduces two warnings here locally:

    …/bitcoin/src/test/coinstatsindex_tests.cpp:35:5: warning: ignoring return value of function declared with 'nodiscard' attribute [-Wunused-result]                                                       
        coin_stats_index.Start();                                                                                     
        ^~~~~~~~~~~~~~~~~~~~~~                          
    1 warning generated.            
    …/bitcoin/src/init.cpp:1566:9: warning: ignoring return value of function declared with 'nodiscard' attribute [-Wunused-result]                                                                          
            g_coin_stats_index->Start();                   
            ^~~~~~~~~~~~~~~~~~~~~~~~~                
    1 warning generated.  
    
  8. MarcoFalke force-pushed on May 5, 2021
  9. DrahtBot cross-referenced this on May 6, 2021 from issue [Bundle 7/7] validation: Farewell, global Chainstate! by dongcarl
  10. DrahtBot added the label Needs rebase on May 12, 2021
  11. index: Avoid async shutdown on init error faad68fcd4
  12. MarcoFalke force-pushed on May 12, 2021
  13. MarcoFalke commented at 8:48 AM on May 12, 2021: member

    Rebased due to change in adjacent line

  14. DrahtBot removed the label Needs rebase on May 12, 2021
  15. laanwj commented at 12:54 PM on May 12, 2021: member

    Code review ACK faad68fcd440e77e61a5a1560471417dd984e390

  16. laanwj merged this on May 12, 2021
  17. laanwj closed this on May 12, 2021

  18. MarcoFalke deleted the branch on May 12, 2021
  19. sidhujag referenced this in commit f7405ffcea on May 12, 2021
  20. domob1812 referenced this in commit 8e3af343f6 on May 17, 2021
  21. mzumsande cross-referenced this on Mar 20, 2022 from issue index: display specific error message when fatal index error occurs by ali-ahari-hashemi
  22. gwillen referenced this in commit e56472be53 on Jun 1, 2022
  23. bitcoin locked this on Aug 16, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-20 06:54 UTC