skalenetwork / skaled

Running more than 20 production blockchains, SKALED is Ethereum-compatible, high performance C++ Proof-of-Stake client, tools and libraries. Uses SKALE consensus as a blockchain consensus core. Includes dynamic Oracle. Implements file storage and retrieval as an EVM extension.
https://skale.network
GNU General Public License v3.0
85 stars 39 forks source link

Skaled not printed "rotated out some blocks" after skale_db block rotation #1332

Open oleksandrSydorenkoJ opened 1 year ago

oleksandrSydorenkoJ commented 1 year ago

Version schain:3.14.15-stable.2

Preconditions 20 nodes at least 1 schain without block rotation log-level info (-v2)

To Reproduce

  1. Run load test to rotating skaled databases
  2. open /blocs_and_extrass/ in live and waiting for db rotating watch du -sh <path to attached volume>/blocs_and_extrass/*
  3. check skaled logs after block rotation

Expected behavior Should print "Rotated out some blocks" after skale_db block rotation

Actual state: Skaled not printed "rotated out some blocks" after skale_db block rotation

skaled_not_printed_logs_for_rotated_skaled_db.log

dimalit commented 1 year ago

test_rotation result on skaled 3.16.0+commit.68ba9275


2023-01-12 11:41:53.189636   Block stats:BN:69:BTS:1673523713:TXS:3:HDRS:11:LOGS:40:SENGS
:1:TXRS:206:BLCKS:3:ACCS:2069:BQS:1:BDS:102:TSS:0:UTX:0:VTX:0:CMM:102049
2023-01-12 11:41:53.190622   Block 70 DB usage is 1807. Piece DB usage is 125927 bytes
2023-01-12 11:41:53.190690   Will perform storage-based block rotation
2023-01-12 11:41:53.202200   Rotated out some blocks
2023-01-12 11:41:53.203060   DB usage is 1807 bytes
2023-01-12 11:41:53.203128      Imported and best 0 (#70). Has 0 siblings.
2023-01-12 11:41:53.203481   Insterted block with 1 transactions
2023-01-12 11:41:53.204644   Post state changed.
2023-01-12 11:41:53.204763   noteChanged: {chain}
2023-01-12 11:41:53.204820   Total unsafe time so far = 0 seconds
2023-01-12 11:41:53.204878   Successfully imported 1 of 1 transactions```
dimalit commented 1 year ago

-v2

2023-01-12 12:13:49.430940   Block sealed #70 (#8746a37f…)
2023-01-12 12:13:49.430997   Block stats:BN:69:BTS:1673525629:TXS:3:HDRS:11:LOGS:40:SENGS:1:TXRS:206:BLCKS:3:ACCS:2069:BQS:1:BDS:102:TSS:0:UTX:0:VTX:0:CMM:100711
2023-01-12 12:13:49.431270   Block 70 DB usage is 1807. Piece DB usage is 125927 bytes
2023-01-12 12:13:49.436073   Rotated out some blocks
2023-01-12 12:13:49.436303   DB usage is 1807 bytes
2023-01-12 12:13:49.679223   Block sealed #71 (#bf76bce8…)
oleksandrSydorenkoJ commented 1 year ago

need to re-test on skaled 3.16.0-betf.3+

oleksandrSydorenkoJ commented 1 year ago

skalenetwork/schain:3.16.0-beta.6 Schain: soft-legitimate-sarin

            "-v",
            "2",

2023-01-31 08:25:28.639363   Rotated out some blocks
2023-01-31 10:44:18.323434   Rotated out some blocks