-
Notifications
You must be signed in to change notification settings - Fork 678
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
Revert "Include signed ip address in TIER2 handshake. #8902 (#9100)" #9191
Conversation
Protobuf failures as protobuf backward compatibility doesnt account for git revert ==" but it shouldn't be an issue |
@saketh-are do you have opinions on the protobuf backward compatibility failure? If I understand correctly, it shouldn't be a big problem right now. Say we have 2 nodes connecting to each other, one before this reversion and one after. Then the one with this reversion might see a proto with a field it doesn't recognize, and will just ignore it silently. The one without the reversion will se a handshake proto without this field and will just populate it w the default, and it should be fine (I tested that it's fine on a localnet setup). But there could be problems down the line if we add another field with the same tag and someone happens to be running a binary that was built from master between when this feature was added and when it was reverted. That's maybe a bit icky but probably not super likely to affect too many people |
@marcelo-gonzalez That all makes sense, I agree with your analysis. Thanks for thinking through it and testing it. |
hey, i'm unable to merge due to buildkite failing because of the protocol buffer incompatibility issue. Few approaches: |
@soonnear for now I've just cherry picked this into my 1.35.0 branch: https://github.com/marcelo-gonzalez/nearcore/tree/1.35.0. And maybe for committing this to master, we should update the buildkite backwards compatibility test to be more flexible? As in to allow an explicit ACK from the author/reviewer that we're okay with the breaking change. And another option is to just reserve the tag, and use the tag |
…ore into soon_revert_sign_ip
@marcelo-gonzalez Thanks, seems like reserving that 1 number is the quickest way to get this merged. Numbers can be pretty high. Although extremely unlikely, if protobuf performance ever becomes a concern in future that requires all field numbers to be <= 15, a migration to a new protobuf message can be an option. |
This reverts commit bc9ba97 due to https://near.zulipchat.com/#narrow/stream/297663-pagoda.2Fnetwork/topic/network.20stall.20during.20mocknet.20test/near/365948241