Add observability to rewind progress#2614
Conversation
Codecov Report❌ Patch coverage is
☔ View full report in Codecov by Sentry. |
aad6f0c to
0ae5996
Compare
emhane
left a comment
There was a problem hiding this comment.
let's also add a test that generates this log, see how tracing is enabled in tests
pls screenshot the logs and add picture to description of pr
Co-authored-by: Emilia Hane <emiliaha95@gmail.com>
| let mut processed_blocks = 0; | ||
| const LOG_INTERVAL: u64 = 100; | ||
|
|
||
| info!( |
There was a problem hiding this comment.
We have to be more specific in which storage the rewinding is being performed.
There is also rewind in the log_provider.rs as well.
| let mut cursor = self.tx.cursor_write::<DerivedBlocks>()?; | ||
| let mut walker = cursor.walk(Some(block.number))?; | ||
| let mut processed_blocks = 0; | ||
| const LOG_INTERVAL: u64 = 100; |
There was a problem hiding this comment.
is this interval appropriate @itschaindev or should it be bigger or smaller?
There was a problem hiding this comment.
I think this should be smaller for more granularity. 10 should be good.
Co-authored-by: Emilia Hane <emiliaha95@gmail.com>
Co-authored-by: Emilia Hane <emiliaha95@gmail.com>
Co-authored-by: Emilia Hane <emiliaha95@gmail.com>
dhyaniarun1993
left a comment
There was a problem hiding this comment.
Can you add the logic to the log_provider as well?
emhane
left a comment
There was a problem hiding this comment.
make sure to apply the review changes to log storage provider too pls
Co-authored-by: Emilia Hane <emiliaha95@gmail.com>
Co-authored-by: Emilia Hane <emiliaha95@gmail.com>
Co-authored-by: Emilia Hane <emiliaha95@gmail.com>
emhane
left a comment
There was a problem hiding this comment.
was the screenshot in the pr description updated?
Co-authored-by: Emilia Hane <emiliaha95@gmail.com>
Co-authored-by: Emilia Hane <emiliaha95@gmail.com>
Done. |
…hdfG/kona into Add-observability-to-rewind-progress
closes: op-rs/kona#2593 Updated incremental percentage for derivation_provider and log_provider <img width="1096" height="119" alt="Screenshot 2025-09-24 at 16 57 48" src="https://github.com/user-attachments/assets/c0e71e54-97fc-4d97-9ca9-8ad403e3a897" /> <img width="1097" height="120" alt="Screenshot 2025-09-24 at 17 05 33" src="https://github.com/user-attachments/assets/2837e0a9-f2a7-4432-af6c-69a45d8f590d" /> --------- Co-authored-by: Emilia Hane <emiliaha95@gmail.com> Co-authored-by: Arun Dhyani <dhyaniarun7@gmail.com> Co-authored-by: Emilia Hane <elsaemiliaevahane@gmail.com>
closes: #2593 Updated incremental percentage for derivation_provider and log_provider <img width="1096" height="119" alt="Screenshot 2025-09-24 at 16 57 48" src="https://github.com/user-attachments/assets/c0e71e54-97fc-4d97-9ca9-8ad403e3a897" /> <img width="1097" height="120" alt="Screenshot 2025-09-24 at 17 05 33" src="https://github.com/user-attachments/assets/2837e0a9-f2a7-4432-af6c-69a45d8f590d" /> --------- Co-authored-by: Emilia Hane <emiliaha95@gmail.com> Co-authored-by: Arun Dhyani <dhyaniarun7@gmail.com> Co-authored-by: Emilia Hane <elsaemiliaevahane@gmail.com>
closes: #2593
Updated incremental percentage for derivation_provider and log_provider

