Repository navigation
Mandate flow control in bytes - #4353
Merged
Merged
Conversation
bboston7
commented
Jun 7, 2024
SirTyson
approved these changes
Jun 17, 2024
SirTyson
left a comment
Contributor
There was a problem hiding this comment.
LGTM, one comment on changing a flow control bytes check to make deprecation easier.
SirTyson
previously approved these changes
Jun 20, 2024
SirTyson
left a comment
Contributor
There was a problem hiding this comment.
LGTM, thanks for the changes!
marta-lokhova
requested changes
Jun 26, 2024
Contributor
There was a problem hiding this comment.
I think you can go further with this change and remove support for disabling flow control in bytes completely:
- Minimum overlay version is far beyond
FIRST_VERSION_SUPPORTING_FLOW_CONTROL_IN_BYTESat this point, so most (if not all) nodes on the network will have the feature enabled - I doubt there are any nodes outside of our infra that are manually tuning this config. Looking at a snapshot of peers on one of the watchers, I don't see anyone not using the feature.
- I think we can remove any conditional enabling of flow control in bytes, and just implicitly set it to true. You might be able to get rid of the annoying FlowControl::start call at the end of authentication as well, and basically start flow control automatically when we create Peer.
- We also don't need to set
AUTH_MSG_FLAG_FLOW_CONTROL_BYTES_REQUESTEDanymore. I'd suggest we set auth flags back to 0, so we can use it for future feature rollout.AUTH_MSG_FLAG_FLOW_CONTROL_BYTES_REQUESTEDcan be deprecated. - We still need to bump overlay version. While we're at it: the network recently upgraded to v21, so we can actually bump minimum overlay version as well to the one that supports v21 (meaning that we can drop all v20 clients now)
- Dropping support for this flag means we can drop all the tests dealing with mixed modes. Yay to code removal!
bboston7
force-pushed
the
flow-control-bytes
branch
from
July 25, 2024 00:10
122282c to
ce045cb
Compare
bboston7
force-pushed
the
flow-control-bytes
branch
from
July 29, 2024 22:02
283930d to
a763d67
Compare
Contributor
Author
|
I fully removed the option to disable flow control in bytes and simplified the flow control code. I also bumped the minimum overlay version. This is now ready for another round of review! |
marta-lokhova
requested changes
Jul 31, 2024
bboston7
force-pushed
the
flow-control-bytes
branch
from
August 2, 2024 22:38
f1111b9 to
fe4d44d
Compare
This change removes the `ENABLE_FLOW_CONTROL_BYTES` config option and always uses flow control bytes.
bboston7
force-pushed
the
flow-control-bytes
branch
from
August 7, 2024 00:52
80c7cba to
ee2bd68
Compare
marta-lokhova
approved these changes
Aug 7, 2024
marta-lokhova
enabled auto-merge
August 7, 2024 00:53
github-merge-queue Bot
pushed a commit
that referenced
this pull request
Aug 8, 2024
* Minor follow up to #4353 to harden tests * Bump medida
pull Bot
pushed a commit
to Mirage1348/stellar-core
that referenced
this pull request
Jul 23, 2026
A followup to stellar#4353 to flow-control total bytes not just flood bytes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #3781 and #4374.
This change removes the
ENABLE_FLOW_CONTROL_BYTESconfig option and always uses flow control in bytes.Checklist
clang-formatv8.0.0 (viamake formator the Visual Studio extension)