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

Exclude self from unseen parties list in SyncPoller #688

Merged
merged 4 commits into from
Apr 23, 2019

Conversation

peterbroadhurst
Copy link
Contributor

Hi Tessera team,

In our Tessera 0.8 environments, the nodes are attempting to connect back to themselves to perform party discovery.

I suspect this is not an issue in most environments, as the HTTPS connection would normally succeed. However, if there is NAT involved the connection fails or times out - resulting in repeated entries in the log as the SyncPoller retries the connection. We don't see a functional issue, just confusing log entries.

We haven't observed this behaviour previously with Constellation.

The attached code change simply filters out the local address from the unseen parties list before it attempts to connect. It removes the connection attempts / log entries in our environments.

@codecov-io
Copy link

codecov-io commented Apr 11, 2019

Codecov Report

Merging #688 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #688      +/-   ##
============================================
+ Coverage     99.49%   99.49%   +<.01%     
- Complexity     1864     1866       +2     
============================================
  Files           285      285              
  Lines          5546     5553       +7     
  Branches        278      278              
============================================
+ Hits           5518     5525       +7     
  Misses            5        5              
  Partials         23       23
Impacted Files Coverage Δ Complexity Δ
.../main/java/com/quorum/tessera/sync/SyncPoller.java 100% <100%> (ø) 11 <4> (+2) ⬆️

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 0f2f071...1f73d65. Read the comment docs.

@melowe melowe self-assigned this Apr 11, 2019
@prd-fox
Copy link
Contributor

prd-fox commented Apr 17, 2019

Hey Peter. This changes look good, thanks for contributing!

Could you fill out our CLA please? Once it's complete we can merge this change.

https://github.com/jpmorganchase/cla/blob/master/cla-2016-09-01.pdf

@peterbroadhurst
Copy link
Contributor Author

Thanks @melowe @prd-fox - sorry for the delay getting you the CLA. I've got it signed, and will slack it to you on the Quorum slack

@prd-fox
Copy link
Contributor

prd-fox commented May 3, 2019

Linked issue: #725

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.9.3 enhancement Non-user code enhancements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants