Skip to content

Conversation

zpqrtbnk
Copy link
Contributor

This is the big PR. It implemented TPC as per the TDD.

  • New TpcOptions and plumbing
  • Refactored CloudDiscovery to also discover TPC ports
  • New (temporary) codecs for authentication
  • New authentication for TPC
  • And finally, MemberConnection now handles TPC

Comes with sets of tests.

  • Remote tests that actually connect to a Hazelcast cluster with TPC
  • Local tests that use our mock servers to ensure that TPC behaves correctly.

@zpqrtbnk zpqrtbnk added this to the 5.3.0 milestone May 11, 2023
@zpqrtbnk zpqrtbnk requested a review from emreyigit May 11, 2023 11:32
@netlify
Copy link

netlify bot commented May 11, 2023

👷 Deploy request for silly-valkyrie-e996d9 pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 4e0d204


try
{
// TODO: should the parallel count be an option? what is a good value?
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about count of tcp ports? Is it too dynamic?

Copy link
Collaborator

@emreyigit emreyigit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewing everything in one shot was exhausting but I see no contradiction with TDD. LGTM.

@codecov-commenter
Copy link

Codecov Report

Merging #830 (4e0d204) into master (c529bfc) will increase coverage by 0.21%.
The diff coverage is 82.35%.

@@            Coverage Diff             @@
##           master     #830      +/-   ##
==========================================
+ Coverage   84.29%   84.50%   +0.21%     
==========================================
  Files         892      890       -2     
  Lines       21124    21114      -10     
==========================================
+ Hits        17807    17843      +36     
+ Misses       3317     3271      -46     
Impacted Files Coverage Δ
src/Hazelcast.Net/Messaging/ClientMessage.cs 100.00% <ø> (ø)
...c/Hazelcast.Net/Networking/SocketConnectionBase.cs 91.83% <40.00%> (-7.40%) ⬇️
src/Hazelcast.Net/Models/AuthenticationResult.cs 86.95% <50.00%> (-13.05%) ⬇️
src/Hazelcast.Net/Clustering/Authenticator.cs 72.91% <73.91%> (-8.48%) ⬇️
src/Hazelcast.Net/Clustering/MemberConnection.cs 82.19% <82.85%> (-1.04%) ⬇️
src/Hazelcast.Net/Clustering/ClusterState.cs 90.83% <83.33%> (+1.31%) ⬆️
.../Hazelcast.Net/Clustering/AuthenticationOptions.cs 93.33% <100.00%> (+0.47%) ⬆️
src/Hazelcast.Net/Clustering/ClusterConnections.cs 78.81% <100.00%> (-0.75%) ⬇️
src/Hazelcast.Net/HazelcastClientFactory.cs 83.05% <100.00%> (+0.29%) ⬆️
...Hazelcast.Net/Messaging/ClientMessageConnection.cs 99.25% <100.00%> (+<0.01%) ⬆️
... and 3 more

... and 5 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@zpqrtbnk zpqrtbnk merged commit 9218c59 into hazelcast:master May 12, 2023
@zpqrtbnk zpqrtbnk deleted the dev/tpc branch May 12, 2023 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants