Skip to content

Conversation

@lazynina
Copy link
Member

… checksum is set to false

@lazynina lazynina marked this pull request as ready for review September 16, 2024 21:53
@lazynina lazynina requested a review from a team as a code owner September 16, 2024 21:53
Copy link
Member

@diamondhands0 diamondhands0 left a comment

Choose a reason for hiding this comment

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

I think I found a little bug, otherwise looks good to me.

lib/snapshot.go Outdated
// remove, (3) ProcessChunk, (4) ChecksumPrint, (5) Exit. So the only one operation that isn't checksum related
// is the ProcessChunk operation. However, I think we can get away with this being considered a "checksum" issue
// and not restarting the node (which causes a panic). If you have a node that didn't finish processing chunks,
// just start over again.
Copy link
Member

Choose a reason for hiding this comment

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

I would add just for extra clarity:

However, I think we can get away with this being considered a "checksum" issue because ProcessChunk only happens during initial sync

lib/snapshot.go Outdated
if err := migrations.StartMigrations(); err != nil {
// @diamondhands - If we hit this error, it means that the migration failed. Should we
// consider this a "checksum" issue or not? I believe the migrations are only necessary
// for checksums, but I'm unsure.
Copy link
Member

Choose a reason for hiding this comment

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

Yep, migrations are only needed to guarantee that checksums match. They don't change anything about how the data the node is processing is handled. I'd add that to the comment and run with it.

Base automatically changed from ln/concurrent-map-access to main September 17, 2024 17:58
@lazynina lazynina merged commit 16e9bfe into main Sep 17, 2024
@lazynina lazynina deleted the ln/handle-snapshot-restart-error branch September 17, 2024 18:07
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.

3 participants