You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@kudu.apache.org by "Alexey Serbin (Code Review)" <ge...@cloudera.org> on 2023/01/07 07:00:36 UTC

[kudu-CR] KUDU-3357 proxied RPCs for multi-master Kudu clusters

Alexey Serbin has uploaded this change for review. ( http://gerrit.cloudera.org:8080/19404


Change subject: KUDU-3357 proxied RPCs for multi-master Kudu clusters
......................................................................

KUDU-3357 proxied RPCs for multi-master Kudu clusters

With this patch, it's now possible to run a multi-master Kudu cluster in
a local area network while processing RPC requests sent from external
networks.  The RPC requests are assumed to be forwarded by a TCP proxy
which advertises RPC endpoints for the masters and the tablet servers
of the multi-master Kudu cluster.

Refactored and unified test scenarios in client-proxied-rpc-test provide
the coverage for the newly added functionality.

This is a follow-up to 3f29b5da5f59ea96cfec0608226d5c35740884a6.

Change-Id: Id834d5fae8dcc2230de9f6b6429334c24052011a
---
M src/kudu/integration-tests/client-proxied-rpc-test.cc
M src/kudu/master/master.cc
M src/kudu/master/master.h
M src/kudu/master/master_service.cc
M src/kudu/mini-cluster/external_mini_cluster.cc
M src/kudu/mini-cluster/external_mini_cluster.h
6 files changed, 455 insertions(+), 226 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/04/19404/1
-- 
To view, visit http://gerrit.cloudera.org:8080/19404
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id834d5fae8dcc2230de9f6b6429334c24052011a
Gerrit-Change-Number: 19404
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <al...@apache.org>

[kudu-CR] KUDU-3357 proxied RPCs for multi-master Kudu clusters

Posted by "Attila Bukor (Code Review)" <ge...@cloudera.org>.
Attila Bukor has posted comments on this change. ( http://gerrit.cloudera.org:8080/19404 )

Change subject: KUDU-3357 proxied RPCs for multi-master Kudu clusters
......................................................................


Patch Set 2: Code-Review+2


-- 
To view, visit http://gerrit.cloudera.org:8080/19404
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Id834d5fae8dcc2230de9f6b6429334c24052011a
Gerrit-Change-Number: 19404
Gerrit-PatchSet: 2
Gerrit-Owner: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Abhishek Chennaka <ac...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Attila Bukor <ab...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Zoltan Chovan <zc...@cloudera.com>
Gerrit-Comment-Date: Wed, 11 Jan 2023 11:30:48 +0000
Gerrit-HasComments: No

[kudu-CR] KUDU-3357 proxied RPCs for multi-master Kudu clusters

Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has posted comments on this change. ( http://gerrit.cloudera.org:8080/19404 )

Change subject: KUDU-3357 proxied RPCs for multi-master Kudu clusters
......................................................................


Patch Set 1: Verified+1

unrelated test failure (ASAN) in UnregisterTServerTest.TestUnregisterTServer/0


-- 
To view, visit http://gerrit.cloudera.org:8080/19404
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Id834d5fae8dcc2230de9f6b6429334c24052011a
Gerrit-Change-Number: 19404
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Attila Bukor <ab...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Zoltan Chovan <zc...@cloudera.com>
Gerrit-Comment-Date: Sat, 07 Jan 2023 18:10:26 +0000
Gerrit-HasComments: No

[kudu-CR] KUDU-3357 proxied RPCs for multi-master Kudu clusters

Posted by "Zoltan Chovan (Code Review)" <ge...@cloudera.org>.
Zoltan Chovan has posted comments on this change. ( http://gerrit.cloudera.org:8080/19404 )

Change subject: KUDU-3357 proxied RPCs for multi-master Kudu clusters
......................................................................


Patch Set 2: Code-Review+1


-- 
To view, visit http://gerrit.cloudera.org:8080/19404
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Id834d5fae8dcc2230de9f6b6429334c24052011a
Gerrit-Change-Number: 19404
Gerrit-PatchSet: 2
Gerrit-Owner: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Abhishek Chennaka <ac...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Attila Bukor <ab...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Zoltan Chovan <zc...@cloudera.com>
Gerrit-Comment-Date: Wed, 11 Jan 2023 12:00:26 +0000
Gerrit-HasComments: No

[kudu-CR] KUDU-3357 proxied RPCs for multi-master Kudu clusters

Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Hello Zoltan Chovan, Attila Bukor, Kudu Jenkins, Abhishek Chennaka, 

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/19404

to look at the new patch set (#2).

Change subject: KUDU-3357 proxied RPCs for multi-master Kudu clusters
......................................................................

KUDU-3357 proxied RPCs for multi-master Kudu clusters

With this patch, it's now possible to run a multi-master Kudu cluster in
a local area network while processing RPC requests sent from external
networks.  The RPC requests are assumed to be forwarded by a TCP proxy
which advertises RPC endpoints for the masters and the tablet servers
of the multi-master Kudu cluster.

Refactored and unified test scenarios in client-proxied-rpc-test provide
the coverage for the newly added functionality.

This is a follow-up to 3f29b5da5f59ea96cfec0608226d5c35740884a6.

Change-Id: Id834d5fae8dcc2230de9f6b6429334c24052011a
---
M src/kudu/integration-tests/client-proxied-rpc-test.cc
M src/kudu/master/master.cc
M src/kudu/master/master.h
M src/kudu/master/master_service.cc
M src/kudu/mini-cluster/external_mini_cluster.cc
M src/kudu/mini-cluster/external_mini_cluster.h
6 files changed, 495 insertions(+), 223 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/04/19404/2
-- 
To view, visit http://gerrit.cloudera.org:8080/19404
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Id834d5fae8dcc2230de9f6b6429334c24052011a
Gerrit-Change-Number: 19404
Gerrit-PatchSet: 2
Gerrit-Owner: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Abhishek Chennaka <ac...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Attila Bukor <ab...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Zoltan Chovan <zc...@cloudera.com>

[kudu-CR] KUDU-3357 proxied RPCs for multi-master Kudu clusters

Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has posted comments on this change. ( http://gerrit.cloudera.org:8080/19404 )

Change subject: KUDU-3357 proxied RPCs for multi-master Kudu clusters
......................................................................


Patch Set 1:

(3 comments)

http://gerrit.cloudera.org:8080/#/c/19404/1/src/kudu/integration-tests/client-proxied-rpc-test.cc
File src/kudu/integration-tests/client-proxied-rpc-test.cc:

http://gerrit.cloudera.org:8080/#/c/19404/1/src/kudu/integration-tests/client-proxied-rpc-test.cc@353
PS1, Line 353: addressed
> nit: addresses
Done


http://gerrit.cloudera.org:8080/#/c/19404/1/src/kudu/integration-tests/client-proxied-rpc-test.cc@356
PS1, Line 356: SetFaultTolerant
> Would a non-fault tolerant scan fail immediately instead of timing out?
Nope: a fault-tolerant scan is simply a scan at a particular snapshot (READ_AT_SNAPSHOT), so if any of the server components fails while scanning, re-attempting the scan would provide the same result.  Otherwise, it could return different number of rows since by default a scan uses the latest available snapshot.

But it's not crucial to have a fault-tolerant scanner here, indeed: having READ_LATEST scanner is enough.


http://gerrit.cloudera.org:8080/#/c/19404/1/src/kudu/master/master.cc
File src/kudu/master/master.cc:

http://gerrit.cloudera.org:8080/#/c/19404/1/src/kudu/master/master.cc@253
PS1, Line 253: could not find any RPC advertised address for masters
> I think this should be reworded a bit, this makes me think that the address
Done



-- 
To view, visit http://gerrit.cloudera.org:8080/19404
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Id834d5fae8dcc2230de9f6b6429334c24052011a
Gerrit-Change-Number: 19404
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Abhishek Chennaka <ac...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Attila Bukor <ab...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Zoltan Chovan <zc...@cloudera.com>
Gerrit-Comment-Date: Wed, 11 Jan 2023 03:41:40 +0000
Gerrit-HasComments: Yes

[kudu-CR] KUDU-3357 proxied RPCs for multi-master Kudu clusters

Posted by "Abhishek Chennaka (Code Review)" <ge...@cloudera.org>.
Abhishek Chennaka has posted comments on this change. ( http://gerrit.cloudera.org:8080/19404 )

Change subject: KUDU-3357 proxied RPCs for multi-master Kudu clusters
......................................................................


Patch Set 3: Code-Review+1


-- 
To view, visit http://gerrit.cloudera.org:8080/19404
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Id834d5fae8dcc2230de9f6b6429334c24052011a
Gerrit-Change-Number: 19404
Gerrit-PatchSet: 3
Gerrit-Owner: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Abhishek Chennaka <ac...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Attila Bukor <ab...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Zoltan Chovan <zc...@cloudera.com>
Gerrit-Comment-Date: Wed, 11 Jan 2023 23:49:24 +0000
Gerrit-HasComments: No

[kudu-CR] KUDU-3357 proxied RPCs for multi-master Kudu clusters

Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has posted comments on this change. ( http://gerrit.cloudera.org:8080/19404 )

Change subject: KUDU-3357 proxied RPCs for multi-master Kudu clusters
......................................................................


Patch Set 2: Verified+1

unrelated CI failure: Could not submit C++ distributed test job (TSAN)


-- 
To view, visit http://gerrit.cloudera.org:8080/19404
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Id834d5fae8dcc2230de9f6b6429334c24052011a
Gerrit-Change-Number: 19404
Gerrit-PatchSet: 2
Gerrit-Owner: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Abhishek Chennaka <ac...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Attila Bukor <ab...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Zoltan Chovan <zc...@cloudera.com>
Gerrit-Comment-Date: Wed, 11 Jan 2023 16:21:20 +0000
Gerrit-HasComments: No

[kudu-CR] KUDU-3357 proxied RPCs for multi-master Kudu clusters

Posted by "Zoltan Chovan (Code Review)" <ge...@cloudera.org>.
Zoltan Chovan has posted comments on this change. ( http://gerrit.cloudera.org:8080/19404 )

Change subject: KUDU-3357 proxied RPCs for multi-master Kudu clusters
......................................................................


Patch Set 1: Code-Review+1

(3 comments)

Just a few nits, otherwise LGTM

http://gerrit.cloudera.org:8080/#/c/19404/1/src/kudu/integration-tests/client-proxied-rpc-test.cc
File src/kudu/integration-tests/client-proxied-rpc-test.cc:

http://gerrit.cloudera.org:8080/#/c/19404/1/src/kudu/integration-tests/client-proxied-rpc-test.cc@353
PS1, Line 353: addressed
nit: addresses


http://gerrit.cloudera.org:8080/#/c/19404/1/src/kudu/integration-tests/client-proxied-rpc-test.cc@356
PS1, Line 356: SetFaultTolerant
Would a non-fault tolerant scan fail immediately instead of timing out?


http://gerrit.cloudera.org:8080/#/c/19404/1/src/kudu/master/master.cc
File src/kudu/master/master.cc:

http://gerrit.cloudera.org:8080/#/c/19404/1/src/kudu/master/master.cc@253
PS1, Line 253: could not find any RPC advertised address for masters
I think this should be reworded a bit, this makes me think that the addresses were parsed successfully, but were e.g. unreachable. Maybe go with something like: "[unable to parse | invalid ]RPC advertised address for masters"



-- 
To view, visit http://gerrit.cloudera.org:8080/19404
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Id834d5fae8dcc2230de9f6b6429334c24052011a
Gerrit-Change-Number: 19404
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Abhishek Chennaka <ac...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Attila Bukor <ab...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Zoltan Chovan <zc...@cloudera.com>
Gerrit-Comment-Date: Tue, 10 Jan 2023 10:41:06 +0000
Gerrit-HasComments: Yes

[kudu-CR] KUDU-3357 proxied RPCs for multi-master Kudu clusters

Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has removed a vote on this change.

Change subject: KUDU-3357 proxied RPCs for multi-master Kudu clusters
......................................................................


Removed Verified-1 by Kudu Jenkins (120)
-- 
To view, visit http://gerrit.cloudera.org:8080/19404
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: deleteVote
Gerrit-Change-Id: Id834d5fae8dcc2230de9f6b6429334c24052011a
Gerrit-Change-Number: 19404
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Attila Bukor <ab...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Zoltan Chovan <zc...@cloudera.com>

[kudu-CR] KUDU-3357 proxied RPCs for multi-master Kudu clusters

Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/19404 )

Change subject: KUDU-3357 proxied RPCs for multi-master Kudu clusters
......................................................................

KUDU-3357 proxied RPCs for multi-master Kudu clusters

With this patch, it's now possible to run a multi-master Kudu cluster in
a local area network while processing RPC requests sent from external
networks.  The RPC requests are assumed to be forwarded by a TCP proxy
which advertises RPC endpoints for the masters and the tablet servers
of the multi-master Kudu cluster.

Refactored and unified test scenarios in client-proxied-rpc-test provide
the coverage for the newly added functionality.

This is a follow-up to 3f29b5da5f59ea96cfec0608226d5c35740884a6.

Change-Id: Id834d5fae8dcc2230de9f6b6429334c24052011a
Reviewed-on: http://gerrit.cloudera.org:8080/19404
Reviewed-by: Attila Bukor <ab...@apache.org>
Reviewed-by: Zoltan Chovan <zc...@cloudera.com>
Tested-by: Alexey Serbin <al...@apache.org>
---
M src/kudu/integration-tests/client-proxied-rpc-test.cc
M src/kudu/master/master.cc
M src/kudu/master/master.h
M src/kudu/master/master_service.cc
M src/kudu/mini-cluster/external_mini_cluster.cc
M src/kudu/mini-cluster/external_mini_cluster.h
6 files changed, 495 insertions(+), 223 deletions(-)

Approvals:
  Attila Bukor: Looks good to me, approved
  Zoltan Chovan: Looks good to me, but someone else must approve
  Alexey Serbin: Verified

-- 
To view, visit http://gerrit.cloudera.org:8080/19404
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Id834d5fae8dcc2230de9f6b6429334c24052011a
Gerrit-Change-Number: 19404
Gerrit-PatchSet: 3
Gerrit-Owner: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Abhishek Chennaka <ac...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Attila Bukor <ab...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Zoltan Chovan <zc...@cloudera.com>

[kudu-CR] KUDU-3357 proxied RPCs for multi-master Kudu clusters

Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has removed a vote on this change.

Change subject: KUDU-3357 proxied RPCs for multi-master Kudu clusters
......................................................................


Removed Verified-1 by Kudu Jenkins (120)
-- 
To view, visit http://gerrit.cloudera.org:8080/19404
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: deleteVote
Gerrit-Change-Id: Id834d5fae8dcc2230de9f6b6429334c24052011a
Gerrit-Change-Number: 19404
Gerrit-PatchSet: 2
Gerrit-Owner: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Abhishek Chennaka <ac...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Attila Bukor <ab...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Zoltan Chovan <zc...@cloudera.com>