Skip to content

Conversation

@PeterGRutherford
Copy link
Contributor

  • Refactor Bluetooth GATT HeadersRequest to route through MeshRouter.send_with_routing()
  • Refactor MeshRouter.send_to_peer() to use send_with_routing() instead of direct protocol calls
  • Refactor MeshRouter.broadcast_to_peers() to route all messages through send_with_routing()
  • Add routing integration that calls lib-network's route_message() for intelligent path finding
  • Document remaining broadcast task bypasses for future Arc refactor
  • All messages now logged and identity-verified through MeshRouter
  • QUIC handler clarified as receive-only (no bypass)
  • WiFi Direct verified as handshake-only (no message sending)

- Refactor Bluetooth GATT HeadersRequest to route through MeshRouter.send_with_routing()
- Refactor MeshRouter.send_to_peer() to use send_with_routing() instead of direct protocol calls
- Refactor MeshRouter.broadcast_to_peers() to route all messages through send_with_routing()
- Add routing integration that calls lib-network's route_message() for intelligent path finding
- Document remaining broadcast task bypasses for future Arc<Self> refactor
- All messages now logged and identity-verified through MeshRouter
- QUIC handler clarified as receive-only (no bypass)
- WiFi Direct verified as handshake-only (no message sending)
Copilot AI review requested due to automatic review settings December 23, 2025 17:52
@PeterGRutherford PeterGRutherford linked an issue Dec 23, 2025 that may be closed by this pull request
4 tasks
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
5.2% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors message routing in the ZHTP mesh router to eliminate bypass paths and ensure all messages flow through MeshRouter.send_with_routing() for proper logging and identity verification (Ticket 2.6).

  • Refactored MeshRouter.send_to_peer() and MeshRouter.broadcast_to_peers() to use send_with_routing() instead of direct protocol calls
  • Updated Bluetooth GATT HeadersRequest handler to route responses through MeshRouter
  • Documented remaining broadcast task bypasses that require future Arc refactoring

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
zhtp/src/server/quic_handler.rs Added clarifying comments that QUIC handler correctly processes incoming messages (no bypass for receives)
zhtp/src/server/protocols/bluetooth_le.rs Refactored Bluetooth GATT HeadersResponse to route through send_with_routing() instead of direct send
zhtp/src/server/mesh/blockchain_sync.rs Refactored send_to_peer() and broadcast_to_peers() to route through send_with_routing(); documented remaining broadcast task bypasses
nonce_cache_wifi/LOG.old.1766437765818365 RocksDB runtime log file added to repository (should be gitignored)
nonce_cache_wifi/LOG.old.1766437279953417 RocksDB runtime log file added to repository (should be gitignored)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +284 to +285
requester,
requester, // Use requester as sender for reply routing
Copy link

Copilot AI Dec 23, 2025

Choose a reason for hiding this comment

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

The sender parameter is incorrect. When sending a response, the sender should be the current node's public key (obtained via get_sender_public_key()), not the requester's public key. The requester should only be used as the destination parameter. This will cause identity verification to fail or incorrectly attribute the message to the requester instead of the responding node.

Suggested change
requester,
requester, // Use requester as sender for reply routing
requester, // destination: original requester
get_sender_public_key(), // sender: current node's public key

Copilot uses AI. Check for mistakes.
Comment on lines +1 to +106
2025/12/22-13:01:19.954686 9e84 RocksDB version: 8.1.1
2025/12/22-13:01:19.955602 9e84 Compile date 2023-04-06 16:38:52
2025/12/22-13:01:19.955616 9e84 DB SUMMARY
2025/12/22-13:01:19.955624 9e84 DB Session ID: X807KM7VKC9NZQITJ4GO
2025/12/22-13:01:19.956377 9e84 CURRENT file: CURRENT
2025/12/22-13:01:19.956394 9e84 IDENTITY file: IDENTITY
2025/12/22-13:01:19.956458 9e84 MANIFEST file: MANIFEST-000139 size: 299 Bytes
2025/12/22-13:01:19.956469 9e84 SST files in ./nonce_cache_wifi dir, Total Num: 2, files: 000134.sst 000137.sst
2025/12/22-13:01:19.956490 9e84 Write Ahead Log file in ./nonce_cache_wifi: 000004.log size: 40 ;
2025/12/22-13:01:19.956497 9e84 Options.error_if_exists: 0
2025/12/22-13:01:19.956503 9e84 Options.create_if_missing: 1
2025/12/22-13:01:19.956729 9e84 Options.paranoid_checks: 1
2025/12/22-13:01:19.956737 9e84 Options.flush_verify_memtable_count: 1
2025/12/22-13:01:19.956739 9e84 Options.track_and_verify_wals_in_manifest: 0
2025/12/22-13:01:19.956741 9e84 Options.verify_sst_unique_id_in_manifest: 1
2025/12/22-13:01:19.956743 9e84 Options.env: 0000020918E9C9C0
2025/12/22-13:01:19.956745 9e84 Options.fs: WinFS
2025/12/22-13:01:19.956747 9e84 Options.info_log: 000002091AAC6190
2025/12/22-13:01:19.956749 9e84 Options.max_file_opening_threads: 16
2025/12/22-13:01:19.956751 9e84 Options.statistics: 0000000000000000
2025/12/22-13:01:19.956754 9e84 Options.use_fsync: 0
2025/12/22-13:01:19.956755 9e84 Options.max_log_file_size: 0
2025/12/22-13:01:19.956758 9e84 Options.max_manifest_file_size: 1073741824
2025/12/22-13:01:19.956760 9e84 Options.log_file_time_to_roll: 0
2025/12/22-13:01:19.956761 9e84 Options.keep_log_file_num: 1000
2025/12/22-13:01:19.956763 9e84 Options.recycle_log_file_num: 0
2025/12/22-13:01:19.956765 9e84 Options.allow_fallocate: 1
2025/12/22-13:01:19.956767 9e84 Options.allow_mmap_reads: 0
2025/12/22-13:01:19.956769 9e84 Options.allow_mmap_writes: 0
2025/12/22-13:01:19.956771 9e84 Options.use_direct_reads: 0
2025/12/22-13:01:19.956773 9e84 Options.use_direct_io_for_flush_and_compaction: 0
2025/12/22-13:01:19.956775 9e84 Options.create_missing_column_families: 0
2025/12/22-13:01:19.956777 9e84 Options.db_log_dir:
2025/12/22-13:01:19.956779 9e84 Options.wal_dir:
2025/12/22-13:01:19.956781 9e84 Options.table_cache_numshardbits: 6
2025/12/22-13:01:19.956783 9e84 Options.WAL_ttl_seconds: 0
2025/12/22-13:01:19.956785 9e84 Options.WAL_size_limit_MB: 0
2025/12/22-13:01:19.956787 9e84 Options.max_write_batch_group_size_bytes: 1048576
2025/12/22-13:01:19.956789 9e84 Options.manifest_preallocation_size: 4194304
2025/12/22-13:01:19.956791 9e84 Options.is_fd_close_on_exec: 1
2025/12/22-13:01:19.956793 9e84 Options.advise_random_on_open: 1
2025/12/22-13:01:19.956795 9e84 Options.db_write_buffer_size: 0
2025/12/22-13:01:19.956797 9e84 Options.write_buffer_manager: 0000020918E9C240
2025/12/22-13:01:19.956799 9e84 Options.access_hint_on_compaction_start: 1
2025/12/22-13:01:19.956805 9e84 Options.random_access_max_buffer_size: 1048576
2025/12/22-13:01:19.956807 9e84 Options.use_adaptive_mutex: 0
2025/12/22-13:01:19.956809 9e84 Options.rate_limiter: 0000000000000000
2025/12/22-13:01:19.956812 9e84 Options.sst_file_manager.rate_bytes_per_sec: 0
2025/12/22-13:01:19.956814 9e84 Options.wal_recovery_mode: 2
2025/12/22-13:01:19.956833 9e84 Options.enable_thread_tracking: 0
2025/12/22-13:01:19.956837 9e84 Options.enable_pipelined_write: 0
2025/12/22-13:01:19.956839 9e84 Options.unordered_write: 0
2025/12/22-13:01:19.956841 9e84 Options.allow_concurrent_memtable_write: 1
2025/12/22-13:01:19.956843 9e84 Options.enable_write_thread_adaptive_yield: 1
2025/12/22-13:01:19.956845 9e84 Options.write_thread_max_yield_usec: 100
2025/12/22-13:01:19.956847 9e84 Options.write_thread_slow_yield_usec: 3
2025/12/22-13:01:19.956849 9e84 Options.row_cache: None
2025/12/22-13:01:19.956851 9e84 Options.wal_filter: None
2025/12/22-13:01:19.956853 9e84 Options.avoid_flush_during_recovery: 0
2025/12/22-13:01:19.956855 9e84 Options.allow_ingest_behind: 0
2025/12/22-13:01:19.956857 9e84 Options.two_write_queues: 0
2025/12/22-13:01:19.956859 9e84 Options.manual_wal_flush: 0
2025/12/22-13:01:19.956861 9e84 Options.wal_compression: 0
2025/12/22-13:01:19.956863 9e84 Options.atomic_flush: 0
2025/12/22-13:01:19.956865 9e84 Options.avoid_unnecessary_blocking_io: 0
2025/12/22-13:01:19.956867 9e84 Options.persist_stats_to_disk: 0
2025/12/22-13:01:19.956869 9e84 Options.write_dbid_to_manifest: 0
2025/12/22-13:01:19.956871 9e84 Options.log_readahead_size: 0
2025/12/22-13:01:19.956873 9e84 Options.file_checksum_gen_factory: Unknown
2025/12/22-13:01:19.956875 9e84 Options.best_efforts_recovery: 0
2025/12/22-13:01:19.956877 9e84 Options.max_bgerror_resume_count: 2147483647
2025/12/22-13:01:19.956879 9e84 Options.bgerror_resume_retry_interval: 1000000
2025/12/22-13:01:19.956881 9e84 Options.allow_data_in_errors: 0
2025/12/22-13:01:19.956883 9e84 Options.db_host_id: __hostname__
2025/12/22-13:01:19.956885 9e84 Options.enforce_single_del_contracts: true
2025/12/22-13:01:19.956887 9e84 Options.max_background_jobs: 2
2025/12/22-13:01:19.956889 9e84 Options.max_background_compactions: -1
2025/12/22-13:01:19.956891 9e84 Options.max_subcompactions: 1
2025/12/22-13:01:19.956893 9e84 Options.avoid_flush_during_shutdown: 0
2025/12/22-13:01:19.956895 9e84 Options.writable_file_max_buffer_size: 1048576
2025/12/22-13:01:19.956897 9e84 Options.delayed_write_rate : 16777216
2025/12/22-13:01:19.956899 9e84 Options.max_total_wal_size: 0
2025/12/22-13:01:19.956901 9e84 Options.delete_obsolete_files_period_micros: 21600000000
2025/12/22-13:01:19.956903 9e84 Options.stats_dump_period_sec: 600
2025/12/22-13:01:19.956905 9e84 Options.stats_persist_period_sec: 600
2025/12/22-13:01:19.956907 9e84 Options.stats_history_buffer_size: 1048576
2025/12/22-13:01:19.956909 9e84 Options.max_open_files: 1000
2025/12/22-13:01:19.956911 9e84 Options.bytes_per_sync: 0
2025/12/22-13:01:19.956913 9e84 Options.wal_bytes_per_sync: 0
2025/12/22-13:01:19.956915 9e84 Options.strict_bytes_per_sync: 0
2025/12/22-13:01:19.956916 9e84 Options.compaction_readahead_size: 0
2025/12/22-13:01:19.956918 9e84 Options.max_background_flushes: -1
2025/12/22-13:01:19.956920 9e84 Compression algorithms supported:
2025/12/22-13:01:19.956931 9e84 kZSTD supported: 1
2025/12/22-13:01:19.956933 9e84 kSnappyCompression supported: 1
2025/12/22-13:01:19.956936 9e84 kBZip2Compression supported: 1
2025/12/22-13:01:19.956938 9e84 kZlibCompression supported: 1
2025/12/22-13:01:19.956940 9e84 kLZ4Compression supported: 1
2025/12/22-13:01:19.956942 9e84 kXpressCompression supported: 0
2025/12/22-13:01:19.956944 9e84 kLZ4HCCompression supported: 1
2025/12/22-13:01:19.956946 9e84 kZSTDNotFinalCompression supported: 1
2025/12/22-13:01:19.956959 9e84 Fast CRC32 supported: Not supported on x86
2025/12/22-13:01:19.956962 9e84 DMutex implementation: std::mutex
2025/12/22-13:01:19.964629 9e84 [WARN] [db/db_impl/db_impl_open.cc:2075] DB::Open() failed: Corruption: CURRENT file corrupted
2025/12/22-13:01:19.964651 9e84 [db/db_impl/db_impl.cc:490] Shutdown: canceling all background work
2025/12/22-13:01:19.964710 9e84 [db/db_impl/db_impl.cc:692] Shutdown complete
Copy link

Copilot AI Dec 23, 2025

Choose a reason for hiding this comment

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

Database log files (nonce_cache_wifi/LOG.old.*) should not be committed to version control. These are runtime-generated RocksDB log files. Consider adding nonce_cache_wifi/LOG* to .gitignore to prevent these files from being committed in future changes.

Copilot uses AI. Check for mistakes.
Comment on lines +1 to +324
2025/12/16-14:33:13.784113 8760385664 RocksDB version: 8.1.1
2025/12/16-14:33:13.785244 8760385664 Compile date 2023-04-06 16:38:52
2025/12/16-14:33:13.785247 8760385664 DB SUMMARY
2025/12/16-14:33:13.785249 8760385664 DB Session ID: S3QQJZR5SHZ6201AV4V2
2025/12/16-14:33:13.785339 8760385664 CURRENT file: CURRENT
2025/12/16-14:33:13.785341 8760385664 IDENTITY file: IDENTITY
2025/12/16-14:33:13.785349 8760385664 MANIFEST file: MANIFEST-000131 size: 952 Bytes
2025/12/16-14:33:13.785351 8760385664 SST files in ./nonce_cache_wifi dir, Total Num: 1, files: 000134.sst
2025/12/16-14:33:13.785352 8760385664 Write Ahead Log file in ./nonce_cache_wifi: 000130.log size: 40 ;
2025/12/16-14:33:13.785354 8760385664 Options.error_if_exists: 0
2025/12/16-14:33:13.785355 8760385664 Options.create_if_missing: 1
2025/12/16-14:33:13.785356 8760385664 Options.paranoid_checks: 1
2025/12/16-14:33:13.785357 8760385664 Options.flush_verify_memtable_count: 1
2025/12/16-14:33:13.785358 8760385664 Options.track_and_verify_wals_in_manifest: 0
2025/12/16-14:33:13.785359 8760385664 Options.verify_sst_unique_id_in_manifest: 1
2025/12/16-14:33:13.785359 8760385664 Options.env: 0x1061aa1f0
2025/12/16-14:33:13.785360 8760385664 Options.fs: PosixFileSystem
2025/12/16-14:33:13.785362 8760385664 Options.info_log: 0x106ef0678
2025/12/16-14:33:13.785362 8760385664 Options.max_file_opening_threads: 16
2025/12/16-14:33:13.785363 8760385664 Options.statistics: 0x0
2025/12/16-14:33:13.785364 8760385664 Options.use_fsync: 0
2025/12/16-14:33:13.785365 8760385664 Options.max_log_file_size: 0
2025/12/16-14:33:13.785366 8760385664 Options.max_manifest_file_size: 1073741824
2025/12/16-14:33:13.785366 8760385664 Options.log_file_time_to_roll: 0
2025/12/16-14:33:13.785367 8760385664 Options.keep_log_file_num: 1000
2025/12/16-14:33:13.785368 8760385664 Options.recycle_log_file_num: 0
2025/12/16-14:33:13.785369 8760385664 Options.allow_fallocate: 1
2025/12/16-14:33:13.785370 8760385664 Options.allow_mmap_reads: 0
2025/12/16-14:33:13.785370 8760385664 Options.allow_mmap_writes: 0
2025/12/16-14:33:13.785371 8760385664 Options.use_direct_reads: 0
2025/12/16-14:33:13.785372 8760385664 Options.use_direct_io_for_flush_and_compaction: 0
2025/12/16-14:33:13.785373 8760385664 Options.create_missing_column_families: 0
2025/12/16-14:33:13.785373 8760385664 Options.db_log_dir:
2025/12/16-14:33:13.785374 8760385664 Options.wal_dir:
2025/12/16-14:33:13.785375 8760385664 Options.table_cache_numshardbits: 6
2025/12/16-14:33:13.785376 8760385664 Options.WAL_ttl_seconds: 0
2025/12/16-14:33:13.785377 8760385664 Options.WAL_size_limit_MB: 0
2025/12/16-14:33:13.785377 8760385664 Options.max_write_batch_group_size_bytes: 1048576
2025/12/16-14:33:13.785378 8760385664 Options.manifest_preallocation_size: 4194304
2025/12/16-14:33:13.785379 8760385664 Options.is_fd_close_on_exec: 1
2025/12/16-14:33:13.785380 8760385664 Options.advise_random_on_open: 1
2025/12/16-14:33:13.785381 8760385664 Options.db_write_buffer_size: 0
2025/12/16-14:33:13.785381 8760385664 Options.write_buffer_manager: 0xcbf00c0e0
2025/12/16-14:33:13.785382 8760385664 Options.access_hint_on_compaction_start: 1
2025/12/16-14:33:13.785383 8760385664 Options.random_access_max_buffer_size: 1048576
2025/12/16-14:33:13.785384 8760385664 Options.use_adaptive_mutex: 0
2025/12/16-14:33:13.785384 8760385664 Options.rate_limiter: 0x0
2025/12/16-14:33:13.785386 8760385664 Options.sst_file_manager.rate_bytes_per_sec: 0
2025/12/16-14:33:13.785387 8760385664 Options.wal_recovery_mode: 2
2025/12/16-14:33:13.785388 8760385664 Options.enable_thread_tracking: 0
2025/12/16-14:33:13.785388 8760385664 Options.enable_pipelined_write: 0
2025/12/16-14:33:13.785389 8760385664 Options.unordered_write: 0
2025/12/16-14:33:13.785390 8760385664 Options.allow_concurrent_memtable_write: 1
2025/12/16-14:33:13.785391 8760385664 Options.enable_write_thread_adaptive_yield: 1
2025/12/16-14:33:13.785391 8760385664 Options.write_thread_max_yield_usec: 100
2025/12/16-14:33:13.785392 8760385664 Options.write_thread_slow_yield_usec: 3
2025/12/16-14:33:13.785393 8760385664 Options.row_cache: None
2025/12/16-14:33:13.785394 8760385664 Options.wal_filter: None
2025/12/16-14:33:13.785395 8760385664 Options.avoid_flush_during_recovery: 0
2025/12/16-14:33:13.785396 8760385664 Options.allow_ingest_behind: 0
2025/12/16-14:33:13.785396 8760385664 Options.two_write_queues: 0
2025/12/16-14:33:13.785397 8760385664 Options.manual_wal_flush: 0
2025/12/16-14:33:13.785398 8760385664 Options.wal_compression: 0
2025/12/16-14:33:13.785399 8760385664 Options.atomic_flush: 0
2025/12/16-14:33:13.785400 8760385664 Options.avoid_unnecessary_blocking_io: 0
2025/12/16-14:33:13.785400 8760385664 Options.persist_stats_to_disk: 0
2025/12/16-14:33:13.785401 8760385664 Options.write_dbid_to_manifest: 0
2025/12/16-14:33:13.785402 8760385664 Options.log_readahead_size: 0
2025/12/16-14:33:13.785403 8760385664 Options.file_checksum_gen_factory: Unknown
2025/12/16-14:33:13.785404 8760385664 Options.best_efforts_recovery: 0
2025/12/16-14:33:13.785405 8760385664 Options.max_bgerror_resume_count: 2147483647
2025/12/16-14:33:13.785406 8760385664 Options.bgerror_resume_retry_interval: 1000000
2025/12/16-14:33:13.785407 8760385664 Options.allow_data_in_errors: 0
2025/12/16-14:33:13.785408 8760385664 Options.db_host_id: __hostname__
2025/12/16-14:33:13.785409 8760385664 Options.enforce_single_del_contracts: true
2025/12/16-14:33:13.785410 8760385664 Options.max_background_jobs: 2
2025/12/16-14:33:13.785410 8760385664 Options.max_background_compactions: -1
2025/12/16-14:33:13.785411 8760385664 Options.max_subcompactions: 1
2025/12/16-14:33:13.785412 8760385664 Options.avoid_flush_during_shutdown: 0
2025/12/16-14:33:13.785413 8760385664 Options.writable_file_max_buffer_size: 1048576
2025/12/16-14:33:13.785414 8760385664 Options.delayed_write_rate : 16777216
2025/12/16-14:33:13.785415 8760385664 Options.max_total_wal_size: 0
2025/12/16-14:33:13.785415 8760385664 Options.delete_obsolete_files_period_micros: 21600000000
2025/12/16-14:33:13.785416 8760385664 Options.stats_dump_period_sec: 600
2025/12/16-14:33:13.785417 8760385664 Options.stats_persist_period_sec: 600
2025/12/16-14:33:13.785418 8760385664 Options.stats_history_buffer_size: 1048576
2025/12/16-14:33:13.785419 8760385664 Options.max_open_files: 1000
2025/12/16-14:33:13.785420 8760385664 Options.bytes_per_sync: 0
2025/12/16-14:33:13.785420 8760385664 Options.wal_bytes_per_sync: 0
2025/12/16-14:33:13.785421 8760385664 Options.strict_bytes_per_sync: 0
2025/12/16-14:33:13.785422 8760385664 Options.compaction_readahead_size: 0
2025/12/16-14:33:13.785423 8760385664 Options.max_background_flushes: -1
2025/12/16-14:33:13.785424 8760385664 Compression algorithms supported:
2025/12/16-14:33:13.785728 8760385664 kZSTD supported: 1
2025/12/16-14:33:13.785730 8760385664 kZlibCompression supported: 1
2025/12/16-14:33:13.785731 8760385664 kXpressCompression supported: 0
2025/12/16-14:33:13.785732 8760385664 kSnappyCompression supported: 1
2025/12/16-14:33:13.785733 8760385664 kZSTDNotFinalCompression supported: 1
2025/12/16-14:33:13.785734 8760385664 kLZ4HCCompression supported: 1
2025/12/16-14:33:13.785734 8760385664 kLZ4Compression supported: 1
2025/12/16-14:33:13.785735 8760385664 kBZip2Compression supported: 1
2025/12/16-14:33:13.785746 8760385664 Fast CRC32 supported: Supported on Arm64
2025/12/16-14:33:13.785747 8760385664 DMutex implementation: pthread_mutex_t
2025/12/16-14:33:13.785968 8760385664 [db/version_set.cc:5662] Recovering from manifest file: ./nonce_cache_wifi/MANIFEST-000131
2025/12/16-14:33:13.786173 8760385664 [db/column_family.cc:621] --------------- Options for column family [default]:
2025/12/16-14:33:13.786175 8760385664 Options.comparator: leveldb.BytewiseComparator
2025/12/16-14:33:13.786176 8760385664 Options.merge_operator: None
2025/12/16-14:33:13.786177 8760385664 Options.compaction_filter: None
2025/12/16-14:33:13.786178 8760385664 Options.compaction_filter_factory: None
2025/12/16-14:33:13.786178 8760385664 Options.sst_partitioner_factory: None
2025/12/16-14:33:13.786179 8760385664 Options.memtable_factory: SkipListFactory
2025/12/16-14:33:13.786180 8760385664 Options.table_factory: BlockBasedTable
2025/12/16-14:33:13.786197 8760385664 table_factory options: flush_block_policy_factory: FlushBlockBySizePolicyFactory (0xcbec50340)
cache_index_and_filter_blocks: 0
cache_index_and_filter_blocks_with_high_priority: 1
pin_l0_filter_and_index_blocks_in_cache: 0
pin_top_level_index_and_filter: 1
index_type: 0
data_block_index_type: 0
index_shortening: 1
data_block_hash_table_util_ratio: 0.750000
checksum: 4
no_block_cache: 0
block_cache: 0x106ee1da8
block_cache_name: LRUCache
block_cache_options:
capacity : 8388608
num_shard_bits : 4
strict_capacity_limit : 0
memory_allocator : None
high_pri_pool_ratio: 0.000
low_pri_pool_ratio: 0.000
persistent_cache: 0x0
block_size: 4096
block_size_deviation: 10
block_restart_interval: 16
index_block_restart_interval: 1
metadata_block_size: 4096
partition_filters: 0
use_delta_encoding: 1
filter_policy: nullptr
whole_key_filtering: 1
verify_compression: 0
read_amp_bytes_per_bit: 0
format_version: 5
enable_index_compression: 1
block_align: 0
max_auto_readahead_size: 262144
prepopulate_block_cache: 0
initial_auto_readahead_size: 8192
num_file_reads_for_auto_readahead: 2
2025/12/16-14:33:13.786203 8760385664 Options.write_buffer_size: 67108864
2025/12/16-14:33:13.786204 8760385664 Options.max_write_buffer_number: 2
2025/12/16-14:33:13.786206 8760385664 Options.compression: LZ4
2025/12/16-14:33:13.786206 8760385664 Options.bottommost_compression: Disabled
2025/12/16-14:33:13.786208 8760385664 Options.prefix_extractor: nullptr
2025/12/16-14:33:13.786208 8760385664 Options.memtable_insert_with_hint_prefix_extractor: nullptr
2025/12/16-14:33:13.786209 8760385664 Options.num_levels: 7
2025/12/16-14:33:13.786210 8760385664 Options.min_write_buffer_number_to_merge: 1
2025/12/16-14:33:13.786211 8760385664 Options.max_write_buffer_number_to_maintain: 0
2025/12/16-14:33:13.786211 8760385664 Options.max_write_buffer_size_to_maintain: 0
2025/12/16-14:33:13.786212 8760385664 Options.bottommost_compression_opts.window_bits: -14
2025/12/16-14:33:13.786213 8760385664 Options.bottommost_compression_opts.level: 32767
2025/12/16-14:33:13.786214 8760385664 Options.bottommost_compression_opts.strategy: 0
2025/12/16-14:33:13.786215 8760385664 Options.bottommost_compression_opts.max_dict_bytes: 0
2025/12/16-14:33:13.786216 8760385664 Options.bottommost_compression_opts.zstd_max_train_bytes: 0
2025/12/16-14:33:13.786217 8760385664 Options.bottommost_compression_opts.parallel_threads: 1
2025/12/16-14:33:13.786217 8760385664 Options.bottommost_compression_opts.enabled: false
2025/12/16-14:33:13.786218 8760385664 Options.bottommost_compression_opts.max_dict_buffer_bytes: 0
2025/12/16-14:33:13.786219 8760385664 Options.bottommost_compression_opts.use_zstd_dict_trainer: true
2025/12/16-14:33:13.786220 8760385664 Options.compression_opts.window_bits: -14
2025/12/16-14:33:13.786221 8760385664 Options.compression_opts.level: 32767
2025/12/16-14:33:13.786222 8760385664 Options.compression_opts.strategy: 0
2025/12/16-14:33:13.786222 8760385664 Options.compression_opts.max_dict_bytes: 0
2025/12/16-14:33:13.786223 8760385664 Options.compression_opts.zstd_max_train_bytes: 0
2025/12/16-14:33:13.786224 8760385664 Options.compression_opts.use_zstd_dict_trainer: true
2025/12/16-14:33:13.786225 8760385664 Options.compression_opts.parallel_threads: 1
2025/12/16-14:33:13.786225 8760385664 Options.compression_opts.enabled: false
2025/12/16-14:33:13.786226 8760385664 Options.compression_opts.max_dict_buffer_bytes: 0
2025/12/16-14:33:13.786227 8760385664 Options.level0_file_num_compaction_trigger: 4
2025/12/16-14:33:13.786228 8760385664 Options.level0_slowdown_writes_trigger: 20
2025/12/16-14:33:13.786229 8760385664 Options.level0_stop_writes_trigger: 36
2025/12/16-14:33:13.786230 8760385664 Options.target_file_size_base: 67108864
2025/12/16-14:33:13.786230 8760385664 Options.target_file_size_multiplier: 1
2025/12/16-14:33:13.786231 8760385664 Options.max_bytes_for_level_base: 268435456
2025/12/16-14:33:13.786232 8760385664 Options.level_compaction_dynamic_level_bytes: 0
2025/12/16-14:33:13.786233 8760385664 Options.max_bytes_for_level_multiplier: 10.000000
2025/12/16-14:33:13.786234 8760385664 Options.max_bytes_for_level_multiplier_addtl[0]: 1
2025/12/16-14:33:13.786235 8760385664 Options.max_bytes_for_level_multiplier_addtl[1]: 1
2025/12/16-14:33:13.786236 8760385664 Options.max_bytes_for_level_multiplier_addtl[2]: 1
2025/12/16-14:33:13.786236 8760385664 Options.max_bytes_for_level_multiplier_addtl[3]: 1
2025/12/16-14:33:13.786237 8760385664 Options.max_bytes_for_level_multiplier_addtl[4]: 1
2025/12/16-14:33:13.786238 8760385664 Options.max_bytes_for_level_multiplier_addtl[5]: 1
2025/12/16-14:33:13.786239 8760385664 Options.max_bytes_for_level_multiplier_addtl[6]: 1
2025/12/16-14:33:13.786240 8760385664 Options.max_sequential_skip_in_iterations: 8
2025/12/16-14:33:13.786240 8760385664 Options.max_compaction_bytes: 1677721600
2025/12/16-14:33:13.786241 8760385664 Options.ignore_max_compaction_bytes_for_input: true
2025/12/16-14:33:13.786242 8760385664 Options.arena_block_size: 1048576
2025/12/16-14:33:13.786243 8760385664 Options.soft_pending_compaction_bytes_limit: 68719476736
2025/12/16-14:33:13.786243 8760385664 Options.hard_pending_compaction_bytes_limit: 274877906944
2025/12/16-14:33:13.786244 8760385664 Options.disable_auto_compactions: 0
2025/12/16-14:33:13.786246 8760385664 Options.compaction_style: kCompactionStyleLevel
2025/12/16-14:33:13.786247 8760385664 Options.compaction_pri: kMinOverlappingRatio
2025/12/16-14:33:13.786247 8760385664 Options.compaction_options_universal.size_ratio: 1
2025/12/16-14:33:13.786248 8760385664 Options.compaction_options_universal.min_merge_width: 2
2025/12/16-14:33:13.786249 8760385664 Options.compaction_options_universal.max_merge_width: 4294967295
2025/12/16-14:33:13.786250 8760385664 Options.compaction_options_universal.max_size_amplification_percent: 200
2025/12/16-14:33:13.786251 8760385664 Options.compaction_options_universal.compression_size_percent: -1
2025/12/16-14:33:13.786252 8760385664 Options.compaction_options_universal.stop_style: kCompactionStopStyleTotalSize
2025/12/16-14:33:13.786255 8760385664 Options.compaction_options_fifo.max_table_files_size: 1073741824
2025/12/16-14:33:13.786256 8760385664 Options.compaction_options_fifo.allow_compaction: 0
2025/12/16-14:33:13.786258 8760385664 Options.table_properties_collectors:
2025/12/16-14:33:13.786259 8760385664 Options.inplace_update_support: 0
2025/12/16-14:33:13.786259 8760385664 Options.inplace_update_num_locks: 10000
2025/12/16-14:33:13.786260 8760385664 Options.memtable_prefix_bloom_size_ratio: 0.000000
2025/12/16-14:33:13.786261 8760385664 Options.memtable_whole_key_filtering: 0
2025/12/16-14:33:13.786262 8760385664 Options.memtable_huge_page_size: 0
2025/12/16-14:33:13.786263 8760385664 Options.bloom_locality: 0
2025/12/16-14:33:13.786264 8760385664 Options.max_successive_merges: 0
2025/12/16-14:33:13.786264 8760385664 Options.optimize_filters_for_hits: 0
2025/12/16-14:33:13.786265 8760385664 Options.paranoid_file_checks: 0
2025/12/16-14:33:13.786266 8760385664 Options.force_consistency_checks: 1
2025/12/16-14:33:13.786267 8760385664 Options.report_bg_io_stats: 0
2025/12/16-14:33:13.786268 8760385664 Options.ttl: 2592000
2025/12/16-14:33:13.786268 8760385664 Options.periodic_compaction_seconds: 0
2025/12/16-14:33:13.786269 8760385664 Options.preclude_last_level_data_seconds: 0
2025/12/16-14:33:13.786270 8760385664 Options.preserve_internal_time_seconds: 0
2025/12/16-14:33:13.786271 8760385664 Options.enable_blob_files: false
2025/12/16-14:33:13.786272 8760385664 Options.min_blob_size: 0
2025/12/16-14:33:13.786273 8760385664 Options.blob_file_size: 268435456
2025/12/16-14:33:13.786274 8760385664 Options.blob_compression_type: NoCompression
2025/12/16-14:33:13.786275 8760385664 Options.enable_blob_garbage_collection: false
2025/12/16-14:33:13.786276 8760385664 Options.blob_garbage_collection_age_cutoff: 0.250000
2025/12/16-14:33:13.786277 8760385664 Options.blob_garbage_collection_force_threshold: 1.000000
2025/12/16-14:33:13.786278 8760385664 Options.blob_compaction_readahead_size: 0
2025/12/16-14:33:13.786278 8760385664 Options.blob_file_starting_level: 0
2025/12/16-14:33:13.786279 8760385664 Options.experimental_mempurge_threshold: 0.000000
2025/12/16-14:33:13.788136 8760385664 [db/version_set.cc:5713] Recovered from manifest file:./nonce_cache_wifi/MANIFEST-000131 succeeded,manifest_file_number is 131, next_file_number is 136, last_sequence is 23, log_number is 126,prev_log_number is 0,max_column_family is 0,min_log_number_to_keep is 126
2025/12/16-14:33:13.788139 8760385664 [db/version_set.cc:5722] Column family [default] (ID 0), log number is 126
2025/12/16-14:33:13.788373 8760385664 [db/db_impl/db_impl_open.cc:537] DB ID: 3378c803-451a-45c5-b4df-431b4ab08f99
2025/12/16-14:33:13.788777 8760385664 EVENT_LOG_v1 {"time_micros": 1765895593788769, "job": 1, "event": "recovery_started", "wal_files": [130]}
2025/12/16-14:33:13.788780 8760385664 [db/db_impl/db_impl_open.cc:1031] Recovering log #130 mode 2
2025/12/16-14:33:13.789750 8760385664 EVENT_LOG_v1 {"time_micros": 1765895593789730, "cf_name": "default", "job": 1, "event": "table_file_creation", "file_number": 137, "file_size": 1010, "file_checksum": "", "file_checksum_func_name": "Unknown", "smallest_seqno": 24, "largest_seqno": 24, "table_properties": {"data_size": 42, "index_size": 27, "index_partitions": 0, "top_level_index_size": 0, "index_key_is_user_key": 1, "index_value_is_delta_encoded": 1, "filter_size": 0, "raw_key_size": 18, "raw_average_key_size": 18, "raw_value_size": 8, "raw_average_value_size": 8, "num_data_blocks": 1, "num_entries": 1, "num_filter_entries": 0, "num_deletions": 0, "num_merge_operands": 0, "num_range_deletions": 0, "format_version": 0, "fixed_key_len": 0, "filter_policy": "", "column_family_name": "default", "column_family_id": 0, "comparator": "leveldb.BytewiseComparator", "merge_operator": "nullptr", "prefix_extractor_name": "nullptr", "property_collectors": "[]", "compression": "LZ4", "compression_options": "window_bits=-14; level=32767; strategy=0; max_dict_bytes=0; zstd_max_train_bytes=0; enabled=0; max_dict_buffer_bytes=0; use_zstd_dict_trainer=1; ", "creation_time": 1765895593, "oldest_key_time": 0, "file_creation_time": 0, "slow_compression_estimated_data_size": 0, "fast_compression_estimated_data_size": 0, "db_id": "3378c803-451a-45c5-b4df-431b4ab08f99", "db_session_id": "S3QQJZR5SHZ6201AV4V2", "orig_file_number": 137, "seqno_to_time_mapping": "N/A"}}
2025/12/16-14:33:13.789835 8760385664 EVENT_LOG_v1 {"time_micros": 1765895593789833, "job": 1, "event": "recovery_finished"}
2025/12/16-14:33:13.789940 8760385664 [db/version_set.cc:5180] Creating manifest 139
2025/12/16-14:33:13.792044 8760385664 [file/delete_scheduler.cc:77] Deleted file ./nonce_cache_wifi/000130.log immediately, rate_bytes_per_sec 0, total_trash_size 0 max_trash_db_ratio 0.250000
2025/12/16-14:33:13.792244 8760385664 [db/db_impl/db_impl_open.cc:1977] SstFileManager instance 0xcbecdce00
2025/12/16-14:33:13.792291 8760385664 DB pointer 0xcbf130000
2025/12/16-14:33:13.792623 6130495488 [db/db_impl/db_impl.cc:1085] ------- DUMPING STATS -------
2025/12/16-14:33:13.792628 6130495488 [db/db_impl/db_impl.cc:1086]
** DB Stats **
Uptime(secs): 0.0 total, 0.0 interval
Cumulative writes: 0 writes, 0 keys, 0 commit groups, 0.0 writes per commit group, ingest: 0.00 GB, 0.00 MB/s
Cumulative WAL: 0 writes, 0 syncs, 0.00 writes per sync, written: 0.00 GB, 0.00 MB/s
Cumulative stall: 00:00:0.000 H:M:S, 0.0 percent
Interval writes: 0 writes, 0 keys, 0 commit groups, 0.0 writes per commit group, ingest: 0.00 MB, 0.00 MB/s
Interval WAL: 0 writes, 0 syncs, 0.00 writes per sync, written: 0.00 GB, 0.00 MB/s
Interval stall: 00:00:0.000 H:M:S, 0.0 percent
Write Stall (count): write-buffer-manager-limit-stops: 0,
** Compaction Stats [default] **
Level Files Size Score Read(GB) Rn(GB) Rnp1(GB) Write(GB) Wnew(GB) Moved(GB) W-Amp Rd(MB/s) Wr(MB/s) Comp(sec) CompMergeCPU(sec) Comp(cnt) Avg(sec) KeyIn KeyDrop Rblob(GB) Wblob(GB)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
L0 1/0 0.99 KB 0.2 0.0 0.0 0.0 0.0 0.0 0.0 1.0 0.0 1.7 0.00 0.00 1 0.001 0 0 0.0 0.0
L1 1/0 1.01 KB 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.00 0.00 0 0.000 0 0 0.0 0.0
Sum 2/0 2.00 KB 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.0 0.0 1.7 0.00 0.00 1 0.001 0 0 0.0 0.0
Int 0/0 0.00 KB 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.0 0.0 1.7 0.00 0.00 1 0.001 0 0 0.0 0.0

** Compaction Stats [default] **
Priority Files Size Score Read(GB) Rn(GB) Rnp1(GB) Write(GB) Wnew(GB) Moved(GB) W-Amp Rd(MB/s) Wr(MB/s) Comp(sec) CompMergeCPU(sec) Comp(cnt) Avg(sec) KeyIn KeyDrop Rblob(GB) Wblob(GB)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
User 0/0 0.00 KB 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.7 0.00 0.00 1 0.001 0 0 0.0 0.0

Blob file count: 0, total size: 0.0 GB, garbage size: 0.0 GB, space amp: 0.0

Uptime(secs): 0.0 total, 0.0 interval
Flush(GB): cumulative 0.000, interval 0.000
AddFile(GB): cumulative 0.000, interval 0.000
AddFile(Total Files): cumulative 0, interval 0
AddFile(L0 Files): cumulative 0, interval 0
AddFile(Keys): cumulative 0, interval 0
Cumulative compaction: 0.00 GB write, 0.15 MB/s write, 0.00 GB read, 0.00 MB/s read, 0.0 seconds
Interval compaction: 0.00 GB write, 0.15 MB/s write, 0.00 GB read, 0.00 MB/s read, 0.0 seconds
Write Stall (count): cf-l0-file-count-limit-delays-with-ongoing-compaction: 0, cf-l0-file-count-limit-stops-with-ongoing-compaction: 0, l0-file-count-limit-delays: 0, l0-file-count-limit-stops: 0, memtable-limit-delays: 0, memtable-limit-stops: 0, pending-compaction-bytes-delays: 0, pending-compaction-bytes-stops: 0, total-delays: 0, total-stops: 0, Block cache LRUCache@0x106ee1da8#96924 capacity: 8.00 MB usage: 0.08 KB table_size: 256 occupancy: 87 collections: 1 last_copies: 0 last_secs: 1e-05 secs_since: 0
Block cache entry stats(count,size,portion): Misc(1,0.00 KB,0%)

** File Read Latency Histogram By Level [default] **
2025/12/16-14:43:13.796468 6130495488 [db/db_impl/db_impl.cc:1085] ------- DUMPING STATS -------
2025/12/16-14:43:13.796549 6130495488 [db/db_impl/db_impl.cc:1086]
** DB Stats **
Uptime(secs): 600.0 total, 600.0 interval
Cumulative writes: 1 writes, 1 keys, 1 commit groups, 1.0 writes per commit group, ingest: 0.00 GB, 0.00 MB/s
Cumulative WAL: 1 writes, 0 syncs, 1.00 writes per sync, written: 0.00 GB, 0.00 MB/s
Cumulative stall: 00:00:0.000 H:M:S, 0.0 percent
Interval writes: 1 writes, 1 keys, 1 commit groups, 1.0 writes per commit group, ingest: 0.00 MB, 0.00 MB/s
Interval WAL: 1 writes, 0 syncs, 1.00 writes per sync, written: 0.00 GB, 0.00 MB/s
Interval stall: 00:00:0.000 H:M:S, 0.0 percent
Write Stall (count): write-buffer-manager-limit-stops: 0,
** Compaction Stats [default] **
Level Files Size Score Read(GB) Rn(GB) Rnp1(GB) Write(GB) Wnew(GB) Moved(GB) W-Amp Rd(MB/s) Wr(MB/s) Comp(sec) CompMergeCPU(sec) Comp(cnt) Avg(sec) KeyIn KeyDrop Rblob(GB) Wblob(GB)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
L0 1/0 0.99 KB 0.2 0.0 0.0 0.0 0.0 0.0 0.0 1.0 0.0 1.7 0.00 0.00 1 0.001 0 0 0.0 0.0
L1 1/0 1.01 KB 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.00 0.00 0 0.000 0 0 0.0 0.0
Sum 2/0 2.00 KB 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.0 0.0 1.7 0.00 0.00 1 0.001 0 0 0.0 0.0
Int 0/0 0.00 KB 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.00 0.00 0 0.000 0 0 0.0 0.0

** Compaction Stats [default] **
Priority Files Size Score Read(GB) Rn(GB) Rnp1(GB) Write(GB) Wnew(GB) Moved(GB) W-Amp Rd(MB/s) Wr(MB/s) Comp(sec) CompMergeCPU(sec) Comp(cnt) Avg(sec) KeyIn KeyDrop Rblob(GB) Wblob(GB)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
User 0/0 0.00 KB 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.7 0.00 0.00 1 0.001 0 0 0.0 0.0

Blob file count: 0, total size: 0.0 GB, garbage size: 0.0 GB, space amp: 0.0

Uptime(secs): 600.0 total, 600.0 interval
Flush(GB): cumulative 0.000, interval 0.000
AddFile(GB): cumulative 0.000, interval 0.000
AddFile(Total Files): cumulative 0, interval 0
AddFile(L0 Files): cumulative 0, interval 0
AddFile(Keys): cumulative 0, interval 0
Cumulative compaction: 0.00 GB write, 0.00 MB/s write, 0.00 GB read, 0.00 MB/s read, 0.0 seconds
Interval compaction: 0.00 GB write, 0.00 MB/s write, 0.00 GB read, 0.00 MB/s read, 0.0 seconds
Write Stall (count): cf-l0-file-count-limit-delays-with-ongoing-compaction: 0, cf-l0-file-count-limit-stops-with-ongoing-compaction: 0, l0-file-count-limit-delays: 0, l0-file-count-limit-stops: 0, memtable-limit-delays: 0, memtable-limit-stops: 0, pending-compaction-bytes-delays: 0, pending-compaction-bytes-stops: 0, total-delays: 0, total-stops: 0, Block cache LRUCache@0x106ee1da8#96924 capacity: 8.00 MB usage: 0.47 KB table_size: 256 occupancy: 87 collections: 2 last_copies: 0 last_secs: 3.5e-05 secs_since: 0
Block cache entry stats(count,size,portion): DataBlock(2,0.21 KB,0.00259876%) Misc(1,0.00 KB,0%)

** File Read Latency Histogram By Level [default] **
Copy link

Copilot AI Dec 23, 2025

Choose a reason for hiding this comment

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

Database log files (nonce_cache_wifi/LOG.old.*) should not be committed to version control. These are runtime-generated RocksDB log files. Consider adding nonce_cache_wifi/LOG* to .gitignore to prevent these files from being committed in future changes.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ARCH-D-2.8] Remove ZHTP Router Bypass Paths

2 participants