false positives blockchain_config_mismatch_exception
While testing !1204 I got a false positive:
3228982ms application.cpp:110 startup ] Startup...
3228983ms chain_plugin.cpp:1596 plugin_startup ] Chain plugin initialization...
3228983ms chain_plugin.cpp:683 initial_settings ] Starting chain with shared_file_size: 25769803776 bytes
3228983ms chain_plugin.cpp:1600 plugin_startup ] Database opening...
3228983ms chain_plugin.cpp:767 open ] Opening shared memory from /haf-pool/old-style-backup-production/exchange-test/blockchain
3228983ms block_log.cpp:168 open ] Opening blocklog /haf-pool/old-style-backup-production/exchange-test/blockchain/block_log
3228983ms block_log.cpp:195 open ] my->block_log_size: 495694027305
3228993ms block_log_artifacts.cpp:330 open ] Opening artifacts file /haf-pool/old-style-backup-production/exchange-test/blockchain/block_log.artifacts in read & write mode ...
3228993ms block_log_artifacts.cpp:437 load_header ] Loaded header containing: git rev: 0acce16829c0702ac09d9e51beb57b9fac157c22, format version: 1.1, head_block_num: 81844489, tail_block_num: 1, generating_interrupted_at_block: 0, dirty_closed: 0
3228993ms block_log_artifacts.cpp:600 verify_if_blocks_fro ] Starting deep verification of already collected artifacts for the block range: 81844488 : 81844478. Any error during this process means that the artifacts don't match the block_log.
3228995ms block_log_artifacts.cpp:652 verify_if_blocks_fro ] Artifacts file matches block_log file.
3228996ms chainbase.cpp:247 open ] Compiler and build environment read from persistent storage: `{"compiler":"11.4.0", "debug":0, "apple":0, "windows":0, {"version":{"blockchain_version":"1.27.5","hive_revision":"9c678c23cc1858f3a64151e0bb51567231dbcb77","fc_revision":"9c678c23cc1858f3a64151e0bb51567231dbcb77","node_type":"mainnet"}}, "plugins" : ["account_by_key", "account_by_key_api", "account_history_api", "account_history_rocksdb", "block_api", "chain", "condenser_api", "database_api", "json_rpc", "network_broadcast_api", "p2p", "rc_api", "state_snapshot", "transaction_status", "transaction_status_api", "wallet_bridge_api", "webserver", "witness"]}'
3229068ms database.cpp:179 open ] 4130200 blockchain_config_mismatch_exception: Blockchain config from shared memory file mismatch current version of app.
Mismatch between blockchain configuration loaded from shared memory file and the current one
Full data about blockchain configuration are in files: current_blockchain_config.log, loaded_blockchain_config.log
{"current_config_filename":"current_blockchain_config.log","loaded_config_filename":"loaded_blockchain_config.log"}
database.cpp:3479 verify_match_of_blockchain_configuration
3229068ms database.cpp:179 open ] args.data_dir: /haf-pool/old-style-backup-production/exchange-test/blockchain args.shared_mem_dir: /haf-pool/old-style-backup-production/exchange-test/blockchain args.shared_file_size: 25769803776
3229071ms blockchain_worker_thread_pool.cpp:511 shutdown ] shutting down worker threads
3229071ms blockchain_worker_thread_pool.cpp:516 shutdown ] worker threads successfully shut down
3229071ms chain_plugin.cpp:787 open ] Error opening database. If the binary or configuration has changed, replay the blockchain explicitly using `--force-replay`.
3229071ms chain_plugin.cpp:788 open ] Error: {"code":4130200,"name":"blockchain_config_mismatch_exception","message":"Blockchain config from shared memory file mismatch current version of app.","stack":[{"context":{"level":"error","file":"database.cpp","line":3479,"method":"verify_match_of_blockchain_configuration","hostname":"","thread_name":"th_a","timestamp":"2024-02-07T14:53:49"},"format":"Mismatch between blockchain configuration loaded from shared memory file and the current one\nFull data about blockchain configuration are in files: ${current_config_filename}, ${loaded_config_filename}","data":{"current_config_filename":"current_blockchain_config.log","loaded_config_filename":"loaded_blockchain_config.log"}},{"context":{"level":"warn","file":"database.cpp","line":179,"method":"open","hostname":"","thread_name":"th_a","timestamp":"2024-02-07T14:53:49"},"format":"rethrow","data":{"args.data_dir":"/haf-pool/old-style-backup-production/exchange-test/blockchain","args.shared_mem_dir":"/haf-pool/old-style-backup-production/exchange-test/blockchain","args.shared_file_size":25769803776}}],"extension":{}}
How to reproduce:
I got a as-chain-spec-verification
branch,
{"version":{"blockchain_version":"1.27.5","hive_revision":"9c678c23cc1858f3a64151e0bb51567231dbcb77","fc_revision":"9c678c23cc1858f3a64151e0bb51567231dbcb77","node_type":"mainnet"}}
using existing block_log and the block_log.artifacts I did a forced replay (i.e. from scratch) with --exit-before-sync
Once it was replayed I just started it again to go on with sync and got above error.