Skip to content

Fix Failover SSL [API-1412]#797

Merged
yuce merged 11 commits intohazelcast:masterfrom
yuce:fix-failover-ssl
Jun 24, 2022
Merged

Fix Failover SSL [API-1412]#797
yuce merged 11 commits intohazelcast:masterfrom
yuce:fix-failover-ssl

Conversation

@yuce
Copy link
Copy Markdown
Collaborator

@yuce yuce commented Jun 23, 2022

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jun 23, 2022

Codecov Report

Merging #797 (1c1346d) into master (5967a65) will increase coverage by 0.04%.
The diff coverage is 85.71%.

❗ Current head 1c1346d differs from pull request most recent head 632202d. Consider uploading reports for the commit 632202d to get more accurate results

@@            Coverage Diff             @@
##           master     #797      +/-   ##
==========================================
+ Coverage   77.17%   77.22%   +0.04%     
==========================================
  Files         329      329              
  Lines       15522    15533      +11     
==========================================
+ Hits        11979    11995      +16     
+ Misses       2701     2698       -3     
+ Partials      842      840       -2     
Impacted Files Coverage Δ
internal/cluster/connection.go 38.13% <68.18%> (+1.30%) ⬆️
internal/cluster/connection_manager.go 76.65% <95.00%> (-0.86%) ⬇️
cluster/failover_config.go 95.00% <100.00%> (+0.45%) ⬆️
internal/client/client.go 64.97% <100.00%> (+0.35%) ⬆️
internal/cluster/failover_service.go 100.00% <100.00%> (ø)
internal/cluster/heartbeat_service.go 71.15% <100.00%> (ø)
internal/cb/errors.go 50.00% <0.00%> (-20.00%) ⬇️
internal/invocation/invocation_service.go 79.35% <0.00%> (+1.29%) ⬆️
... and 2 more

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 5967a65...632202d. Read the comment docs.

@yuce yuce requested a review from utku-caglayan June 23, 2022 06:03
Copy link
Copy Markdown
Contributor

@utku-caglayan utku-caglayan left a comment

Choose a reason for hiding this comment

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

Just few comments

Comment thread .gitignore
Comment thread client_it_test.go Outdated
Comment thread cluster/failover_config.go
Comment thread cluster/failover_config.go Outdated
Comment thread cluster/failover_config.go Outdated
Comment thread cluster/failover_config.go Outdated
Comment thread internal/cluster/connection_manager.go Outdated
Comment thread internal/cluster/connection_manager.go
Comment thread internal/cluster/connection_manager_test.go Outdated
@yuce yuce requested a review from nevzatseferoglu June 24, 2022 11:32
Copy link
Copy Markdown
Contributor

@nevzatseferoglu nevzatseferoglu left a comment

Choose a reason for hiding this comment

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

Thanks, looks good to me!

@yuce
Copy link
Copy Markdown
Collaborator Author

yuce commented Jun 24, 2022

Report coverage test failed with the following log:

2022-06-24T11:39:39.1796986Z === RUN   TestClusterShutdownThenCheckOperationsNotHanging
2022-06-24T11:39:39.1797463Z === RUN   TestClusterShutdownThenCheckOperationsNotHanging/Smart_Client
2022-06-24T11:39:39.1797972Z 2022/06/24 11:39:15 INFO : trying to connect to cluster: invocation-after-shutdown-2-true
2022-06-24T11:39:39.1798407Z 2022/06/24 11:39:15 ERROR: cannot connect to localhost:44701: dial tcp [::1]:44701: connect: connection refused: dial tcp [::1]:44701: connect: connection refused
2022-06-24T11:39:39.1798929Z 2022/06/24 11:39:16 ERROR: cannot connect to localhost:44701: dial tcp [::1]:44701: connect: connection refused: dial tcp [::1]:44701: connect: connection refused
2022-06-24T11:39:39.1799398Z 2022/06/24 11:39:17 ERROR: cannot connect to localhost:44701: dial tcp [::1]:44701: connect: connection refused: dial tcp [::1]:44701: connect: connection refused
2022-06-24T11:39:39.1799870Z 2022/06/24 11:39:18 ERROR: cannot connect to localhost:44701: dial tcp [::1]:44701: connect: connection refused: dial tcp [::1]:44701: connect: connection refused
2022-06-24T11:39:39.1800338Z 2022/06/24 11:39:19 ERROR: cannot connect to localhost:44701: dial tcp [::1]:44701: connect: connection refused: dial tcp [::1]:44701: connect: connection refused
2022-06-24T11:39:39.1800797Z 2022/06/24 11:39:20 ERROR: cannot connect to localhost:44701: dial tcp [::1]:44701: connect: connection refused: dial tcp [::1]:44701: connect: connection refused
2022-06-24T11:39:39.1801263Z 2022/06/24 11:39:22 ERROR: cannot connect to localhost:44701: dial tcp [::1]:44701: connect: connection refused: dial tcp [::1]:44701: connect: connection refused
2022-06-24T11:39:39.1801713Z 2022/06/24 11:39:23 ERROR: cannot connect to localhost:44701: dial tcp [::1]:44701: connect: connection refused: dial tcp [::1]:44701: connect: connection refused
2022-06-24T11:39:39.1802170Z 2022/06/24 11:39:24 ERROR: cannot connect to localhost:44701: dial tcp [::1]:44701: connect: connection refused: dial tcp [::1]:44701: connect: connection refused
2022-06-24T11:39:39.1802639Z 2022/06/24 11:39:26 ERROR: cannot connect to localhost:44701: dial tcp [::1]:44701: connect: connection refused: dial tcp [::1]:44701: connect: connection refused
2022-06-24T11:39:39.1803107Z 2022/06/24 11:39:27 ERROR: cannot connect to localhost:44701: dial tcp [::1]:44701: connect: connection refused: dial tcp [::1]:44701: connect: connection refused
2022-06-24T11:39:39.1803564Z 2022/06/24 11:39:29 ERROR: cannot connect to localhost:44701: dial tcp [::1]:44701: connect: connection refused: dial tcp [::1]:44701: connect: connection refused
2022-06-24T11:39:39.1804031Z 2022/06/24 11:39:31 ERROR: cannot connect to localhost:44701: dial tcp [::1]:44701: connect: connection refused: dial tcp [::1]:44701: connect: connection refused
2022-06-24T11:39:39.1804489Z 2022/06/24 11:39:33 ERROR: cannot connect to localhost:44701: dial tcp [::1]:44701: connect: connection refused: dial tcp [::1]:44701: connect: connection refused
2022-06-24T11:39:39.1804928Z 2022/06/24 11:39:34 ERROR: cannot connect to localhost:44701: dial tcp [::1]:44701: connect: connection refused: dial tcp [::1]:44701: connect: connection refused
2022-06-24T11:39:39.1805434Z --- FAIL: TestClusterShutdownThenCheckOperationsNotHanging (34.73s)
2022-06-24T11:39:39.1806045Z     --- FAIL: TestClusterShutdownThenCheckOperationsNotHanging/Smart_Client (34.73s)
2022-06-24T11:39:39.1806451Z panic: cannot connect to any cluster: deadline exceeded [recovered]
2022-06-24T11:39:39.1806783Z 	panic: cannot connect to any cluster: deadline exceeded
2022-06-24T11:39:39.1806945Z 
2022-06-24T11:39:39.1807028Z goroutine 2650 [running]:
2022-06-24T11:39:39.1807287Z testing.tRunner.func1.1(0x8fc980, 0xc0001f3ce0)
2022-06-24T11:39:39.1807646Z 	/opt/hostedtoolcache/go/1.15.15/x64/src/testing/testing.go:1072 +0x30d
2022-06-24T11:39:39.1807931Z testing.tRunner.func1(0xc0003fa180)
2022-06-24T11:39:39.1808248Z 	/opt/hostedtoolcache/go/1.15.15/x64/src/testing/testing.go:1075 +0x41a
2022-06-24T11:39:39.1808500Z panic(0x8fc980, 0xc0001f3ce0)
2022-06-24T11:39:39.1808802Z 	/opt/hostedtoolcache/go/1.15.15/x64/src/runtime/panic.go:969 +0x1b9
2022-06-24T11:39:39.1809398Z github.com/hazelcast/hazelcast-go-client/internal/it.MustClient(...)
2022-06-24T11:39:39.1809916Z 	/home/runner/work/hazelcast-go-client/hazelcast-go-client/internal/it/util.go:197
2022-06-24T11:39:39.1810562Z github.com/hazelcast/hazelcast-go-client_test.TestClusterShutdownThenCheckOperationsNotHanging.func1(0xc0003fa180, 0x9321b11601)
2022-06-24T11:39:39.1811275Z 	/home/runner/work/hazelcast-go-client/hazelcast-go-client/client_it_test.go:780 +0x653
2022-06-24T11:39:39.1811754Z github.com/hazelcast/hazelcast-go-client_test.clientTester.func1(0xc0003fa180)
2022-06-24T11:39:39.1812263Z 	/home/runner/work/hazelcast-go-client/hazelcast-go-client/client_it_test.go:822 +0x34
2022-06-24T11:39:39.1812581Z testing.tRunner(0xc0003fa180, 0xc0005c21b0)
2022-06-24T11:39:39.1812900Z 	/opt/hostedtoolcache/go/1.15.15/x64/src/testing/testing.go:1123 +0xef
2022-06-24T11:39:39.1813155Z created by testing.(*T).Run
2022-06-24T11:39:39.1813458Z 	/opt/hostedtoolcache/go/1.15.15/x64/src/testing/testing.go:1168 +0x2b3
2022-06-24T11:39:39.1813858Z FAIL	github.com/hazelcast/hazelcast-go-client	435.298s

original log at: https://github.com/hazelcast/hazelcast-go-client/runs/7040780669?check_suite_focus=true

Line 780 corresponds to:

client := it.MustClient(hz.StartNewClientWithConfig(ctx, config))

So the client couldn't connect. I believe this is an RC-related problem.

@yuce yuce merged commit 989e683 into hazelcast:master Jun 24, 2022
@yuce yuce deleted the fix-failover-ssl branch June 24, 2022 13:12
utku-caglayan pushed a commit to utku-caglayan/hazelcast-go-client that referenced this pull request Jul 5, 2022
Fixes the connection manager not using failover cluster settings for SSL

(cherry picked from commit 989e683)
utku-caglayan added a commit that referenced this pull request Jul 5, 2022
* Fix all partitions being assigned to one node (#775)

Fix all partitions getting mapped to one node

(cherry picked from commit ec11592)

* Fix go tools version so that it works with go 1.15 (#792)

(cherry picked from commit dc17db9)

* [Backports] Fixes SQL driver test to work with SSL

* Fix SQL leak (#795)

* Fixes SQL goroutine leak.

(cherry picked from commit c10fdf4)

* Fix Failover SSL (#797)

Fixes the connection manager not using failover cluster settings for SSL

(cherry picked from commit 989e683)

* [Backports] Fix uptime gauge [API-1382] (#808)

* Fix Invocation Service group lost handling (#816)

Fixed invocation service's group lost event handling

(cherry picked from commit a5c2607)

* Remove MakeSubscriptionID method (#815)

Removed MakeSubscriptionID method

(cherry picked from commit d5fc815)

* Renamed proto.EntrySizeInBytes and removed dead code (#814)

(cherry picked from commit f06827c)

* add missing API usage (#776)

(cherry picked from commit c5e35ff)

* update client version

* fix for client version test

Co-authored-by: Alex Barkan <aleckz@gmail.com>
Co-authored-by: Serkan Özel <serkan.ozel@hazelcast.com>
Co-authored-by: Yüce Tekol <yuce.tekol@hazelcast.com>
@yuce yuce added this to the 1.3.0 milestone Jul 7, 2022
@degerhz degerhz changed the title Fix Failover SSL Fix Failover SSL [API-1412] Jul 14, 2022
yuce added a commit that referenced this pull request Dec 26, 2022
Fixes the connection manager not using failover cluster settings for SSL
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.

Failover does not respect individual failover cluster SSL settings [API-1412]

4 participants