You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@kudu.apache.org by "KeDeng (Code Review)" <ge...@cloudera.org> on 2023/08/11 06:57:42 UTC
[kudu-CR] [multi-tenancy] add tenancy metadata on master
KeDeng has uploaded this change for review. ( http://gerrit.cloudera.org:8080/20343
Change subject: [multi-tenancy] add tenancy metadata on master
......................................................................
[multi-tenancy] add tenancy metadata on master
We have made initial progress in implementing multi-tenancy
at the fs layer, but there is still a long way to go for
complete implementation of multi-tenancy features. The most
important thing at the moment is to improve the management
of multi-tenancy on this basis.
For this part, my preliminary plan is to reference the
management implementation of tables and store the metadata
of tenants on the master, with the leader of the master
handling the relevant processes.
To achieve this goal, I have added tenant metadata on the
master in this patch and implemented basic metadata operations.
At the same time, I have added unit tests for certain logic to
ensure the correctness of the newly added logic.
Change-Id: I633b5b37ae7555e5622399924bd05cf08d53d853
---
M src/kudu/master/catalog_manager.cc
M src/kudu/master/catalog_manager.h
M src/kudu/master/master.proto
M src/kudu/master/sys_catalog-test.cc
M src/kudu/master/sys_catalog.cc
M src/kudu/master/sys_catalog.h
6 files changed, 467 insertions(+), 2 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/43/20343/1
--
To view, visit http://gerrit.cloudera.org:8080/20343
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I633b5b37ae7555e5622399924bd05cf08d53d853
Gerrit-Change-Number: 20343
Gerrit-PatchSet: 1
Gerrit-Owner: KeDeng <kd...@gmail.com>
[kudu-CR] [multi-tenancy] add tenancy metadata on master
Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has posted comments on this change. ( http://gerrit.cloudera.org:8080/20343 )
Change subject: [multi-tenancy] add tenancy metadata on master
......................................................................
Patch Set 5:
(7 comments)
I took a quick look at this patch, and posted a few comments without digging deeper into details.
http://gerrit.cloudera.org:8080/#/c/20343/5//COMMIT_MSG
Commit Message:
http://gerrit.cloudera.org:8080/#/c/20343/5//COMMIT_MSG@9
PS5, Line 9: implementing multi-tenancy
I'd suggest to at least use create a item in the Apache JIRA and use its ID in commits that are part of the implementation of a big task like this.
In the umbrella JIRA for the task, you could use sub-tasks to track the works on some particular part of the project.
Having JIRA ids referenced in the commit messages makes it much easier to track and review if talking about checking against the design, etc.
Thanks!
http://gerrit.cloudera.org:8080/#/c/20343/5/src/kudu/master/master.proto
File src/kudu/master/master.proto:
http://gerrit.cloudera.org:8080/#/c/20343/5/src/kudu/master/master.proto@279
PS5, Line 279: enum State {
: UNKNOWN = 0;
: PREPARING = 1;
: RUNNING = 2;
: ALTERING = 3;
: REMOVED = 4;
: }
Please add a comment to explain what each 'State' is about.
http://gerrit.cloudera.org:8080/#/c/20343/5/src/kudu/master/master.proto@288
PS5, Line 288: required
Here and below: please don't use 'required' for newly introduced PB fields -- it will bring us more headache if/when transitioning to protobuf3.
http://gerrit.cloudera.org:8080/#/c/20343/5/src/kudu/master/master.proto@288
PS5, Line 288: tenant_name
Here and below: why to add 'tenant_' prefix for these fields? Also, the current naming is inconsistent: the first 3 fields have the 'tenant_' prefix, but the rest of them -- don't.
http://gerrit.cloudera.org:8080/#/c/20343/5/src/kudu/master/master.proto@294
PS5, Line 294: tenant_key_version
If that's a version, why not to use a numeric type instead of a string instead?
http://gerrit.cloudera.org:8080/#/c/20343/5/src/kudu/master/master.proto@300
PS5, Line 300: create
nit: creation
http://gerrit.cloudera.org:8080/#/c/20343/5/src/kudu/master/tenant_manager.h
File src/kudu/master/tenant_manager.h:
http://gerrit.cloudera.org:8080/#/c/20343/5/src/kudu/master/tenant_manager.h@93
PS5, Line 93: the below mutable fields
There is anything below, so maybe drop this lock at all?
--
To view, visit http://gerrit.cloudera.org:8080/20343
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I633b5b37ae7555e5622399924bd05cf08d53d853
Gerrit-Change-Number: 20343
Gerrit-PatchSet: 5
Gerrit-Owner: KeDeng <kd...@gmail.com>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: KeDeng <kd...@gmail.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>
Gerrit-Comment-Date: Thu, 21 Sep 2023 23:35:13 +0000
Gerrit-HasComments: Yes
[kudu-CR] [multi-tenancy] add tenancy metadata on master
Posted by "Yingchun Lai (Code Review)" <ge...@cloudera.org>.
Yingchun Lai has posted comments on this change. ( http://gerrit.cloudera.org:8080/20343 )
Change subject: [multi-tenancy] add tenancy metadata on master
......................................................................
Patch Set 4: Code-Review+1
(1 comment)
http://gerrit.cloudera.org:8080/#/c/20343/3/src/kudu/master/master.proto
File src/kudu/master/master.proto:
http://gerrit.cloudera.org:8080/#/c/20343/3/src/kudu/master/master.proto@305
PS3, Line 305: // The user that owns the tenant.
: optional string owner = 8;
:
: // Tenant disk size limit.
: optional int64 tenant_disk_size_limit = 9;
: // Tenant row count limit.
: optional int64 tenant_row_count_limit = 10;
:
: // The comment on the Tenant.
: optional string comment = 11;
> The "owner" is used to identify the owner of the tenant and serves as a com
Thanks for the clarification, how about adding them back when actually use them?
--
To view, visit http://gerrit.cloudera.org:8080/20343
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I633b5b37ae7555e5622399924bd05cf08d53d853
Gerrit-Change-Number: 20343
Gerrit-PatchSet: 4
Gerrit-Owner: KeDeng <kd...@gmail.com>
Gerrit-Reviewer: KeDeng <kd...@gmail.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>
Gerrit-Comment-Date: Wed, 20 Sep 2023 05:45:32 +0000
Gerrit-HasComments: Yes
[kudu-CR] [multi-tenancy] add tenancy metadata on master
Posted by "KeDeng (Code Review)" <ge...@cloudera.org>.
Hello Yingchun Lai, Kudu Jenkins,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/20343
to look at the new patch set (#4).
Change subject: [multi-tenancy] add tenancy metadata on master
......................................................................
[multi-tenancy] add tenancy metadata on master
We have made initial progress in implementing multi-tenancy
at the fs layer, but there is still a long way to go for
complete implementation of multi-tenancy features. The most
important thing at the moment is to improve the management
of multi-tenancy on this basis.
For this part, my preliminary plan is to reference the
management implementation of tables and store the metadata
of tenants on the master, with the leader of the master
handling the relevant processes.
To achieve this goal, I have added tenant metadata on the
master in this patch and implemented basic metadata operations.
At the same time, I have added unit tests for certain logic to
ensure the correctness of the newly added logic.
Change-Id: I633b5b37ae7555e5622399924bd05cf08d53d853
---
M src/kudu/master/CMakeLists.txt
M src/kudu/master/master.proto
M src/kudu/master/sys_catalog-test.cc
M src/kudu/master/sys_catalog.cc
M src/kudu/master/sys_catalog.h
A src/kudu/master/tenant_manager.cc
A src/kudu/master/tenant_manager.h
7 files changed, 441 insertions(+), 2 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/43/20343/4
--
To view, visit http://gerrit.cloudera.org:8080/20343
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I633b5b37ae7555e5622399924bd05cf08d53d853
Gerrit-Change-Number: 20343
Gerrit-PatchSet: 4
Gerrit-Owner: KeDeng <kd...@gmail.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>
[kudu-CR] [multi-tenancy] add tenancy metadata on master
Posted by "KeDeng (Code Review)" <ge...@cloudera.org>.
KeDeng has posted comments on this change. ( http://gerrit.cloudera.org:8080/20343 )
Change subject: [multi-tenancy] add tenancy metadata on master
......................................................................
Patch Set 3:
(10 comments)
Thanks for your reviews.
http://gerrit.cloudera.org:8080/#/c/20343/3/src/kudu/master/master.proto
File src/kudu/master/master.proto:
http://gerrit.cloudera.org:8080/#/c/20343/3/src/kudu/master/master.proto@305
PS3, Line 305: // The user that owns the tenant.
: optional string owner = 8;
:
: // Tenant disk size limit.
: optional int64 tenant_disk_size_limit = 9;
: // Tenant row count limit.
: optional int64 tenant_row_count_limit = 10;
:
: // The comment on the Tenant.
: optional string comment = 11;
> How will these properties be used?
The "owner" is used to identify the owner of the tenant and serves as a complement to the tenant name. It is an optional parameter.
The "disk size limit" can be used subsequently to restrict a tenant's usage of disk space.
The "comment" can be used to provide additional information about the tenant, and it is also an optional parameter.
http://gerrit.cloudera.org:8080/#/c/20343/3/src/kudu/master/sys_catalog-test.cc
File src/kudu/master/sys_catalog-test.cc:
http://gerrit.cloudera.org:8080/#/c/20343/3/src/kudu/master/sys_catalog-test.cc@479
PS3, Line 479: TEST_F(SysCatalogTest, TestTenantsInfoOperations) {
> I guess the validation of adding/update/deleting tanent, for example, check
Yes, this patch mainly focuses on the definition and processing of metadata. The related operations for tenants will be implemented in the next patch.
http://gerrit.cloudera.org:8080/#/c/20343/3/src/kudu/master/sys_catalog-test.cc@486
PS3, Line 486: tenant_id
> nit: kTenantId
Done
http://gerrit.cloudera.org:8080/#/c/20343/3/src/kudu/master/sys_catalog-test.cc@514
PS3, Line 514: l.mutable_data()->pb.set_state(SysTenantsEntryPB::REMOVED);
> I'm a bit of confused why the state is REMOVED, but not ALTERING. Could you
This is my mistake, it has been fixed.
http://gerrit.cloudera.org:8080/#/c/20343/3/src/kudu/master/sys_catalog-test.cc@529
PS3, Line 529: loader.Reset();
> It would be clearer to move this line after L534?
Done
http://gerrit.cloudera.org:8080/#/c/20343/3/src/kudu/master/sys_catalog-test.cc@558
PS3, Line 558: ASSERT_NE("new_tenant", reader_lock.data().pb.tenant_name());
: ASSERT_NE("test running", reader_lock.data().pb.state_msg());
: ASSERT_NE(SysTenantsEntryPB::RUNNING, reader_lock.data().pb.state());
> Would it better to check the values are something, rather than they are not
This is mainly considering the case where there was no value before, writing it this way would be more intuitive. However, considering your suggestion, I will add a direct judgment method.
http://gerrit.cloudera.org:8080/#/c/20343/3/src/kudu/master/sys_catalog.cc
File src/kudu/master/sys_catalog.cc:
http://gerrit.cloudera.org:8080/#/c/20343/3/src/kudu/master/sys_catalog.cc@1098
PS3, Line 1098: KuduPartialRow row(&schema_);
> How about adding a VLOG like ReqAddTenant/ReqUpdateTenant?
Done
http://gerrit.cloudera.org:8080/#/c/20343/3/src/kudu/master/tenant_manager.h
File src/kudu/master/tenant_manager.h:
http://gerrit.cloudera.org:8080/#/c/20343/3/src/kudu/master/tenant_manager.h@55
PS3, Line 55: / This object uses copy-on-write for the portions of data which are persisted
: // on disk. This allows the mutated data to be staged and written to disk
: // while readers continue to access the previous version. These portions
: // of data are in PersistentTenantInfo above, and typically accessed using
: // TenantMetadataLock. For example:
: //
: // TenantInfo* tenant = ...;
: // TenantMetadataLock l(tenant, TenantMetadataLock::READ);
: // if (l.data().is_running()) { ... }
> Similar to class TableInfo, we can simplify the description like "Please se
Done
http://gerrit.cloudera.org:8080/#/c/20343/3/src/kudu/master/tenant_manager.h@73
PS3, Line 73: a
> nit: an
Done
http://gerrit.cloudera.org:8080/#/c/20343/3/src/kudu/master/tenant_manager.h@91
PS3, Line 91: // No synchronization needed.
> Is it true? I see it is under the lock.
The original meaning was that the caller does not need to lock. Since it may cause confusion, I will remove it directly.
--
To view, visit http://gerrit.cloudera.org:8080/20343
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I633b5b37ae7555e5622399924bd05cf08d53d853
Gerrit-Change-Number: 20343
Gerrit-PatchSet: 3
Gerrit-Owner: KeDeng <kd...@gmail.com>
Gerrit-Reviewer: KeDeng <kd...@gmail.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>
Gerrit-Comment-Date: Tue, 29 Aug 2023 12:11:37 +0000
Gerrit-HasComments: Yes
[kudu-CR] [multi-tenancy] add tenancy metadata on master
Posted by "Yingchun Lai (Code Review)" <ge...@cloudera.org>.
Yingchun Lai has posted comments on this change. ( http://gerrit.cloudera.org:8080/20343 )
Change subject: [multi-tenancy] add tenancy metadata on master
......................................................................
Patch Set 3:
(10 comments)
http://gerrit.cloudera.org:8080/#/c/20343/3/src/kudu/master/master.proto
File src/kudu/master/master.proto:
http://gerrit.cloudera.org:8080/#/c/20343/3/src/kudu/master/master.proto@305
PS3, Line 305: // The user that owns the tenant.
: optional string owner = 8;
:
: // Tenant disk size limit.
: optional int64 tenant_disk_size_limit = 9;
: // Tenant row count limit.
: optional int64 tenant_row_count_limit = 10;
:
: // The comment on the Tenant.
: optional string comment = 11;
How will these properties be used?
http://gerrit.cloudera.org:8080/#/c/20343/3/src/kudu/master/sys_catalog-test.cc
File src/kudu/master/sys_catalog-test.cc:
http://gerrit.cloudera.org:8080/#/c/20343/3/src/kudu/master/sys_catalog-test.cc@479
PS3, Line 479: TEST_F(SysCatalogTest, TestTenantsInfoOperations) {
I guess the validation of adding/update/deleting tanent, for example, check adding duplicated tanent, modify tanent id, and etc, will be implemented in another patch, right?
http://gerrit.cloudera.org:8080/#/c/20343/3/src/kudu/master/sys_catalog-test.cc@486
PS3, Line 486: tenant_id
nit: kTenantId
http://gerrit.cloudera.org:8080/#/c/20343/3/src/kudu/master/sys_catalog-test.cc@514
PS3, Line 514: l.mutable_data()->pb.set_state(SysTenantsEntryPB::REMOVED);
I'm a bit of confused why the state is REMOVED, but not ALTERING. Could you please clarify about this?
http://gerrit.cloudera.org:8080/#/c/20343/3/src/kudu/master/sys_catalog-test.cc@529
PS3, Line 529: loader.Reset();
It would be clearer to move this line after L534?
http://gerrit.cloudera.org:8080/#/c/20343/3/src/kudu/master/sys_catalog-test.cc@558
PS3, Line 558: ASSERT_NE("new_tenant", reader_lock.data().pb.tenant_name());
: ASSERT_NE("test running", reader_lock.data().pb.state_msg());
: ASSERT_NE(SysTenantsEntryPB::RUNNING, reader_lock.data().pb.state());
Would it better to check the values are something, rather than they are not something? If checking they are old values, they are not the new values nor any other values.
http://gerrit.cloudera.org:8080/#/c/20343/3/src/kudu/master/sys_catalog.cc
File src/kudu/master/sys_catalog.cc:
http://gerrit.cloudera.org:8080/#/c/20343/3/src/kudu/master/sys_catalog.cc@1098
PS3, Line 1098: KuduPartialRow row(&schema_);
How about adding a VLOG like ReqAddTenant/ReqUpdateTenant?
http://gerrit.cloudera.org:8080/#/c/20343/3/src/kudu/master/tenant_manager.h
File src/kudu/master/tenant_manager.h:
http://gerrit.cloudera.org:8080/#/c/20343/3/src/kudu/master/tenant_manager.h@55
PS3, Line 55: / This object uses copy-on-write for the portions of data which are persisted
: // on disk. This allows the mutated data to be staged and written to disk
: // while readers continue to access the previous version. These portions
: // of data are in PersistentTenantInfo above, and typically accessed using
: // TenantMetadataLock. For example:
: //
: // TenantInfo* tenant = ...;
: // TenantMetadataLock l(tenant, TenantMetadataLock::READ);
: // if (l.data().is_running()) { ... }
Similar to class TableInfo, we can simplify the description like "Please see the TabletInfo class doc above for more information." to reduce duplciation.
http://gerrit.cloudera.org:8080/#/c/20343/3/src/kudu/master/tenant_manager.h@73
PS3, Line 73: a
nit: an
http://gerrit.cloudera.org:8080/#/c/20343/3/src/kudu/master/tenant_manager.h@91
PS3, Line 91: // No synchronization needed.
Is it true? I see it is under the lock.
--
To view, visit http://gerrit.cloudera.org:8080/20343
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I633b5b37ae7555e5622399924bd05cf08d53d853
Gerrit-Change-Number: 20343
Gerrit-PatchSet: 3
Gerrit-Owner: KeDeng <kd...@gmail.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>
Gerrit-Comment-Date: Tue, 29 Aug 2023 03:46:03 +0000
Gerrit-HasComments: Yes
[kudu-CR] [multi-tenancy] add tenancy metadata on master
Posted by "KeDeng (Code Review)" <ge...@cloudera.org>.
Hello Yingchun Lai, Kudu Jenkins,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/20343
to look at the new patch set (#5).
Change subject: [multi-tenancy] add tenancy metadata on master
......................................................................
[multi-tenancy] add tenancy metadata on master
We have made initial progress in implementing multi-tenancy
at the fs layer, but there is still a long way to go for
complete implementation of multi-tenancy features. The most
important thing at the moment is to improve the management
of multi-tenancy on this basis.
For this part, my preliminary plan is to reference the
management implementation of tables and store the metadata
of tenants on the master, with the leader of the master
handling the relevant processes.
To achieve this goal, I have added tenant metadata on the
master in this patch and implemented basic metadata operations.
At the same time, I have added unit tests for certain logic to
ensure the correctness of the newly added logic.
Change-Id: I633b5b37ae7555e5622399924bd05cf08d53d853
---
M src/kudu/master/CMakeLists.txt
M src/kudu/master/master.proto
M src/kudu/master/sys_catalog-test.cc
M src/kudu/master/sys_catalog.cc
M src/kudu/master/sys_catalog.h
A src/kudu/master/tenant_manager.cc
A src/kudu/master/tenant_manager.h
7 files changed, 430 insertions(+), 2 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/43/20343/5
--
To view, visit http://gerrit.cloudera.org:8080/20343
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I633b5b37ae7555e5622399924bd05cf08d53d853
Gerrit-Change-Number: 20343
Gerrit-PatchSet: 5
Gerrit-Owner: KeDeng <kd...@gmail.com>
Gerrit-Reviewer: KeDeng <kd...@gmail.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>
[kudu-CR] KUDU-3413[multi-tenancy] add tenancy metadata on master
Posted by "KeDeng (Code Review)" <ge...@cloudera.org>.
Hello Alexey Serbin, Yingchun Lai, Kudu Jenkins,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/20343
to look at the new patch set (#7).
Change subject: KUDU-3413[multi-tenancy] add tenancy metadata on master
......................................................................
KUDU-3413[multi-tenancy] add tenancy metadata on master
We have made initial progress in implementing multi-tenancy
at the fs layer, but there is still a long way to go for
complete implementation of multi-tenancy features. The most
important thing at the moment is to improve the management
of multi-tenancy on this basis.
For this part, my preliminary plan is to reference the
management implementation of tables and store the metadata
of tenants on the master, with the leader of the master
handling the relevant processes.
To achieve this goal, I have added tenant metadata on the
master in this patch and implemented basic metadata operations.
At the same time, I have added unit tests for certain logic to
ensure the correctness of the newly added logic.
Change-Id: I633b5b37ae7555e5622399924bd05cf08d53d853
---
M src/kudu/master/CMakeLists.txt
M src/kudu/master/master.proto
M src/kudu/master/sys_catalog-test.cc
M src/kudu/master/sys_catalog.cc
M src/kudu/master/sys_catalog.h
A src/kudu/master/tenant_manager.cc
A src/kudu/master/tenant_manager.h
7 files changed, 426 insertions(+), 2 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/43/20343/7
--
To view, visit http://gerrit.cloudera.org:8080/20343
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I633b5b37ae7555e5622399924bd05cf08d53d853
Gerrit-Change-Number: 20343
Gerrit-PatchSet: 7
Gerrit-Owner: KeDeng <kd...@gmail.com>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: KeDeng <kd...@gmail.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>
[kudu-CR] KUDU-3413[multi-tenancy] add tenancy metadata on master
Posted by "KeDeng (Code Review)" <ge...@cloudera.org>.
KeDeng has posted comments on this change. ( http://gerrit.cloudera.org:8080/20343 )
Change subject: KUDU-3413[multi-tenancy] add tenancy metadata on master
......................................................................
Patch Set 6:
(7 comments)
Thank you for your review comments. I have made the necessary modifications based on your feedback. If possible, could you please help me review it again? Thank you very much.
http://gerrit.cloudera.org:8080/#/c/20343/5//COMMIT_MSG
Commit Message:
http://gerrit.cloudera.org:8080/#/c/20343/5//COMMIT_MSG@9
PS5, Line 9: implementing multi-tenancy
> I'd suggest to at least use create a item in the Apache JIRA and use its ID
Thank you for your correction. When the multi-tenancy feature was initially developed, I included the JIRA number in the patch title. Later, someone pointed out that we should also include a feature label. So, I added the JIRA number and feature label to the patch title. Then, someone commented that we should pay attention to the length of the title. In order to meet this requirement, I removed the JIRA number. After that, no one made any further comments on the title. So, in subsequent developments, I only kept the feature label. Based on your suggestion, I will prioritize the JIRA number and include the feature label if the title length allows. Do you think this approach is feasible?
http://gerrit.cloudera.org:8080/#/c/20343/5/src/kudu/master/master.proto
File src/kudu/master/master.proto:
http://gerrit.cloudera.org:8080/#/c/20343/5/src/kudu/master/master.proto@279
PS5, Line 279: // Used to indicate the lifecycle of the current tenant.
: enum State {
: UNKNOWN = 0;
: PREPARING = 1;
: RUNNING = 2;
: ALTERING = 3;
:
> Please add a comment to explain what each 'State' is about.
Done
http://gerrit.cloudera.org:8080/#/c/20343/5/src/kudu/master/master.proto@288
PS5, Line 288: // Tenan
> Here and below: please don't use 'required' for newly introduced PB fields
Done
http://gerrit.cloudera.org:8080/#/c/20343/5/src/kudu/master/master.proto@288
PS5, Line 288:
> Here and below: why to add 'tenant_' prefix for these fields? Also, the c
Done
http://gerrit.cloudera.org:8080/#/c/20343/5/src/kudu/master/master.proto@294
PS5, Line 294: rsion.
> If that's a version, why not to use a numeric type instead of a string inst
This is mainly to maintain consistency with the definition in the fs layer."
http://gerrit.cloudera.org:8080/#/c/20343/5/src/kudu/master/master.proto@300
PS5, Line 300:
> nit: creation
Done
http://gerrit.cloudera.org:8080/#/c/20343/5/src/kudu/master/tenant_manager.h
File src/kudu/master/tenant_manager.h:
http://gerrit.cloudera.org:8080/#/c/20343/5/src/kudu/master/tenant_manager.h@93
PS5, Line 93: for tenant.
> There is anything below, so maybe drop this lock at all?
Done
--
To view, visit http://gerrit.cloudera.org:8080/20343
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I633b5b37ae7555e5622399924bd05cf08d53d853
Gerrit-Change-Number: 20343
Gerrit-PatchSet: 6
Gerrit-Owner: KeDeng <kd...@gmail.com>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: KeDeng <kd...@gmail.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>
Gerrit-Comment-Date: Fri, 22 Sep 2023 03:22:28 +0000
Gerrit-HasComments: Yes
[kudu-CR] [multi-tenancy] add tenancy metadata on master
Posted by "KeDeng (Code Review)" <ge...@cloudera.org>.
KeDeng has posted comments on this change. ( http://gerrit.cloudera.org:8080/20343 )
Change subject: [multi-tenancy] add tenancy metadata on master
......................................................................
Patch Set 5:
(1 comment)
Thanks for your reviews.
http://gerrit.cloudera.org:8080/#/c/20343/3/src/kudu/master/master.proto
File src/kudu/master/master.proto:
http://gerrit.cloudera.org:8080/#/c/20343/3/src/kudu/master/master.proto@305
PS3, Line 305:
: ////////////////////////////////////////////////////////////
: // RPCs
: ////////////////////////////////////////////////////////////
:
: message PingRequestPB {
: }
:
: message PingResponsePB {
: }
> Thanks for the clarification, how about adding them back when actually use
Done
--
To view, visit http://gerrit.cloudera.org:8080/20343
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I633b5b37ae7555e5622399924bd05cf08d53d853
Gerrit-Change-Number: 20343
Gerrit-PatchSet: 5
Gerrit-Owner: KeDeng <kd...@gmail.com>
Gerrit-Reviewer: KeDeng <kd...@gmail.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>
Gerrit-Comment-Date: Wed, 20 Sep 2023 06:55:35 +0000
Gerrit-HasComments: Yes
[kudu-CR] KUDU-3413[multi-tenancy] add tenancy metadata on master
Posted by "KeDeng (Code Review)" <ge...@cloudera.org>.
Hello Alexey Serbin, Yingchun Lai, Kudu Jenkins,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/20343
to look at the new patch set (#6).
Change subject: KUDU-3413[multi-tenancy] add tenancy metadata on master
......................................................................
KUDU-3413[multi-tenancy] add tenancy metadata on master
We have made initial progress in implementing multi-tenancy
at the fs layer, but there is still a long way to go for
complete implementation of multi-tenancy features. The most
important thing at the moment is to improve the management
of multi-tenancy on this basis.
For this part, my preliminary plan is to reference the
management implementation of tables and store the metadata
of tenants on the master, with the leader of the master
handling the relevant processes.
To achieve this goal, I have added tenant metadata on the
master in this patch and implemented basic metadata operations.
At the same time, I have added unit tests for certain logic to
ensure the correctness of the newly added logic.
Change-Id: I633b5b37ae7555e5622399924bd05cf08d53d853
---
M src/kudu/master/CMakeLists.txt
M src/kudu/master/master.proto
M src/kudu/master/sys_catalog-test.cc
M src/kudu/master/sys_catalog.cc
M src/kudu/master/sys_catalog.h
A src/kudu/master/tenant_manager.cc
A src/kudu/master/tenant_manager.h
7 files changed, 426 insertions(+), 2 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/43/20343/6
--
To view, visit http://gerrit.cloudera.org:8080/20343
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I633b5b37ae7555e5622399924bd05cf08d53d853
Gerrit-Change-Number: 20343
Gerrit-PatchSet: 6
Gerrit-Owner: KeDeng <kd...@gmail.com>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: KeDeng <kd...@gmail.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>
[kudu-CR] [multi-tenancy] add tenancy metadata on master
Posted by "Yingchun Lai (Code Review)" <ge...@cloudera.org>.
Yingchun Lai has posted comments on this change. ( http://gerrit.cloudera.org:8080/20343 )
Change subject: [multi-tenancy] add tenancy metadata on master
......................................................................
Patch Set 5: Code-Review+2
--
To view, visit http://gerrit.cloudera.org:8080/20343
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I633b5b37ae7555e5622399924bd05cf08d53d853
Gerrit-Change-Number: 20343
Gerrit-PatchSet: 5
Gerrit-Owner: KeDeng <kd...@gmail.com>
Gerrit-Reviewer: KeDeng <kd...@gmail.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>
Gerrit-Comment-Date: Thu, 21 Sep 2023 06:59:54 +0000
Gerrit-HasComments: No
[kudu-CR] [multi-tenancy] add tenancy metadata on master
Posted by "KeDeng (Code Review)" <ge...@cloudera.org>.
Hello Yingchun Lai, Kudu Jenkins,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/20343
to look at the new patch set (#3).
Change subject: [multi-tenancy] add tenancy metadata on master
......................................................................
[multi-tenancy] add tenancy metadata on master
We have made initial progress in implementing multi-tenancy
at the fs layer, but there is still a long way to go for
complete implementation of multi-tenancy features. The most
important thing at the moment is to improve the management
of multi-tenancy on this basis.
For this part, my preliminary plan is to reference the
management implementation of tables and store the metadata
of tenants on the master, with the leader of the master
handling the relevant processes.
To achieve this goal, I have added tenant metadata on the
master in this patch and implemented basic metadata operations.
At the same time, I have added unit tests for certain logic to
ensure the correctness of the newly added logic.
Change-Id: I633b5b37ae7555e5622399924bd05cf08d53d853
---
M src/kudu/master/CMakeLists.txt
M src/kudu/master/master.proto
M src/kudu/master/sys_catalog-test.cc
M src/kudu/master/sys_catalog.cc
M src/kudu/master/sys_catalog.h
A src/kudu/master/tenant_manager.cc
A src/kudu/master/tenant_manager.h
7 files changed, 442 insertions(+), 2 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/43/20343/3
--
To view, visit http://gerrit.cloudera.org:8080/20343
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I633b5b37ae7555e5622399924bd05cf08d53d853
Gerrit-Change-Number: 20343
Gerrit-PatchSet: 3
Gerrit-Owner: KeDeng <kd...@gmail.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>
[kudu-CR] [multi-tenancy] add tenancy metadata on master
Posted by "KeDeng (Code Review)" <ge...@cloudera.org>.
Hello Yingchun Lai, Kudu Jenkins,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/20343
to look at the new patch set (#2).
Change subject: [multi-tenancy] add tenancy metadata on master
......................................................................
[multi-tenancy] add tenancy metadata on master
We have made initial progress in implementing multi-tenancy
at the fs layer, but there is still a long way to go for
complete implementation of multi-tenancy features. The most
important thing at the moment is to improve the management
of multi-tenancy on this basis.
For this part, my preliminary plan is to reference the
management implementation of tables and store the metadata
of tenants on the master, with the leader of the master
handling the relevant processes.
To achieve this goal, I have added tenant metadata on the
master in this patch and implemented basic metadata operations.
At the same time, I have added unit tests for certain logic to
ensure the correctness of the newly added logic.
Change-Id: I633b5b37ae7555e5622399924bd05cf08d53d853
---
M src/kudu/master/CMakeLists.txt
M src/kudu/master/master.proto
M src/kudu/master/sys_catalog-test.cc
M src/kudu/master/sys_catalog.cc
M src/kudu/master/sys_catalog.h
A src/kudu/master/tenant_manager.cc
A src/kudu/master/tenant_manager.h
7 files changed, 456 insertions(+), 2 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/43/20343/2
--
To view, visit http://gerrit.cloudera.org:8080/20343
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I633b5b37ae7555e5622399924bd05cf08d53d853
Gerrit-Change-Number: 20343
Gerrit-PatchSet: 2
Gerrit-Owner: KeDeng <kd...@gmail.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>