Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/devp2p: submit Route53 changes in batches #20524

Merged
merged 7 commits into from Jan 17, 2020

Conversation

fjl
Copy link
Contributor

@fjl fjl commented Jan 7, 2020

This works around the 32k RDATA character limit per change request.

This works around the 32k RDATA character limit per change request.
@karalabe
Copy link
Member

karalabe commented Jan 8, 2020

Code LGTM. I do have a question around atomicity. Previously we didn't care about the order of the changes because we just applied everything or nothing. With the chunks introduced in this PR, we need to ensure that failures don't leave us in an inconsistent state.

I'm not sure how the rest of the code works currently, but I guess the first entries in the batches should be adding new nodes, then the switchover to the root, then the deletions. This way a crash at any point will still keep things consistent. Is the rest of the route53 code structured to order it like this?

@fjl
Copy link
Contributor Author

fjl commented Jan 8, 2020

Yes, the changes should be ordered like that, but there is no explicit sorting. I will add that.

@fjl
Copy link
Contributor Author

fjl commented Jan 8, 2020

Maybe it is also time to add a test, this code is getting complicated...

@fjl
Copy link
Contributor Author

fjl commented Jan 16, 2020

Turns out the changes were not sorted correctly. Now they are, and we have a test. @karalabe PTAL.

@@ -0,0 +1,124 @@
package main
Copy link
Member

Choose a reason for hiding this comment

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

Pls add the copyright header

Copy link
Member

@karalabe karalabe left a comment

Choose a reason for hiding this comment

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

Apart from a missing file header, LGTM

@karalabe karalabe added this to the 1.9.10 milestone Jan 16, 2020
Deletion requests are not accepted unless both TTL and value match the
existing record. Also improve tests to catch this case.
@fjl
Copy link
Contributor Author

fjl commented Jan 17, 2020

Added copyright header and one more bug fix.

Seems like we're not measuring RDATA size the same way the AWS API
does. Just use a lower limit to make it work.
@fjl
Copy link
Contributor Author

fjl commented Jan 17, 2020

And one more bug fix.

@fjl fjl merged commit 0af96d2 into ethereum:master Jan 17, 2020
millken pushed a commit to millken/go-ethereum that referenced this pull request Feb 25, 2021
This change works around the 32k RDATA character limit per change
request and fixes several issues in the deployer which prevented it from
working for our production trees.
enriquefynn pushed a commit to enriquefynn/go-ethereum that referenced this pull request Mar 10, 2021
This change works around the 32k RDATA character limit per change
request and fixes several issues in the deployer which prevented it from
working for our production trees.
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.

None yet

2 participants