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

Separate P2P and Resend clients #982

Merged
merged 26 commits into from
Jan 27, 2020
Merged

Conversation

prd-fox
Copy link
Contributor

@prd-fox prd-fox commented Jan 24, 2020

The "/resend" call can potentially take a long time to call, dependant upon the number of transactions that need to be resent. The default timeout for all clients was small, to cater for calling the PartyInfo API, but this means that resend requests often fail and get called repeatedly.
This causes nodes to resend the same transaction multiple times, which is bad for everybody.

This PR splits the clients up, and gives the Resend client a much larger timeout. If an even longer timeout is required, then it can be configured in the P2P server properties, the same as other polling periods are right now.

namtruong and others added 26 commits December 31, 2019 12:36
…aviour before 0.10. Log message to recommend users to switch on remote key validation for better security
# Conflicts:
#	cli/config-cli/src/test/java/com/quorum/tessera/config/cli/OverrideUtilTest.java
#	config/src/main/java/com/quorum/tessera/config/ServerConfig.java
#	tessera-jaxrs/jaxrs-client/src/main/java/com/quorum/tessera/jaxrs/client/ClientFactory.java
#	tessera-jaxrs/jaxrs-client/src/test/java/com/quorum/tessera/jaxrs/client/ClientFactoryTest.java
#	tessera-partyinfo/src/main/resources/tessera-partyinfo-spring.xml
Adds a new property called "resendWaitTime" to the P2P server
configuration. This property denotes, in milliseconds, the timeout
period for reading a response when calling the "/resend" API endpoint.

By default, a 2 hour period was chosen as long enough for a medium
sized database (about 500k transactions).
@codecov-io
Copy link

codecov-io commented Jan 24, 2020

Codecov Report

❗ No coverage uploaded for pull request base (master@c13fc44). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #982   +/-   ##
=========================================
  Coverage          ?   99.32%           
  Complexity        ?     2221           
=========================================
  Files             ?      336           
  Lines             ?     6069           
  Branches          ?      363           
=========================================
  Hits              ?     6028           
  Misses            ?        5           
  Partials          ?       36

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c13fc44...0e1fe00. Read the comment docs.

@melowe melowe merged commit 2558651 into master Jan 27, 2020
@prd-fox prd-fox deleted the separate-p2p-and-resend-client branch January 27, 2020 17:30
@Krish1979 Krish1979 added 0.10.3 0.10.3 enhancement Non-user code enhancements labels Feb 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.10.3 0.10.3 enhancement Non-user code enhancements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants