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
Message propagation improvement #2902
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work and bug fix! Some comments about the logs and minor changes.
casper/src/main/scala/coop/rchain/casper/util/comm/CommUtil.scala
Outdated
Show resolved
Hide resolved
casper/src/main/scala/coop/rchain/casper/util/comm/CommUtil.scala
Outdated
Show resolved
Hide resolved
comm/src/main/scala/coop/rchain/comm/transport/StreamHandler.scala
Outdated
Show resolved
Hide resolved
comm/src/main/scala/coop/rchain/comm/transport/GrpcTransportServer.scala
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very good. But the tests are still failing
casper/src/test/scala/coop/rchain/casper/engine/RunningMaintainRequestedBlocksSpec.scala
Outdated
Show resolved
Hide resolved
899a166
to
2c59e8c
Compare
comm/src/main/scala/coop/rchain/comm/transport/GrpcTransportClient.scala
Outdated
Show resolved
Hide resolved
comm/src/main/scala/coop/rchain/comm/transport/GrpcTransportClient.scala
Outdated
Show resolved
Hide resolved
78fd6b0
to
871d0ce
Compare
I'm leaving schedulers tuning for future PR. We should investigate whats the best way. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Congratulation! Good one!
bors r+ |
Build succeeded |
Result of WIP in of #2897 and #2891
This PR enable discarding of duplicate messages to lower down load on Casper and system in general.
Moreover, bloat was found in consumption of streamed GRPC messages (blocks) which lead to over a hundred of messages waiting for processing as per
tmp/comm
. It is fixed as well.As a result, we can see nodes advancing nicely when creating blocks simultaneously (synchrony constraint 0.67).
Notes
Optional. Add any notes on caveats, approaches you tried that didn't work, or anything else.
Please make sure that this PR:
Bors cheat-sheet:
bors r+
runs integration tests and merges the PR (if it's approved),bors try
runs integration tests for the PR,bors delegate+
enables non-maintainer PR authors to run the above.