You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@kudu.apache.org by "Yingchun Lai (Code Review)" <ge...@cloudera.org> on 2023/10/18 16:25:06 UTC

[kudu-CR] refactor: move SetEncryptionFlags to constructors

Yingchun Lai has uploaded this change for review. ( http://gerrit.cloudera.org:8080/20592


Change subject: refactor: move SetEncryptionFlags to constructors
......................................................................

refactor: move SetEncryptionFlags to constructors

SetEncryptionFlags() is a test util function used
to enable or disable encryption in unit tests. In
some parameterize tests, SetEncryptionFlags() calls
are distributed in many test cases, there is a risk
that missing to call it if add new test cases.

This patch moves the function call to the constructors,
also changes TEST_F to TEST_P for test
LogBlockManagerTest.TestContainerBlockLimitingByMetadataSizeWithCompaction

Change-Id: I67dca5a45f78de87309d0434c3b003a83f28e1a6
---
M src/kudu/consensus/consensus_meta-test.cc
M src/kudu/fs/log_block_manager-test.cc
M src/kudu/util/file_cache-test.cc
3 files changed, 42 insertions(+), 70 deletions(-)



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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I67dca5a45f78de87309d0434c3b003a83f28e1a6
Gerrit-Change-Number: 20592
Gerrit-PatchSet: 1
Gerrit-Owner: Yingchun Lai <la...@apache.org>

[kudu-CR] refactor: move SetEncryptionFlags to constructors

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

Change subject: refactor: move SetEncryptionFlags to constructors
......................................................................


Patch Set 2: Code-Review+2


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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I67dca5a45f78de87309d0434c3b003a83f28e1a6
Gerrit-Change-Number: 20592
Gerrit-PatchSet: 2
Gerrit-Owner: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Attila Bukor <ab...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>
Gerrit-Comment-Date: Fri, 20 Oct 2023 17:37:38 +0000
Gerrit-HasComments: No

[kudu-CR] refactor: move SetEncryptionFlags to constructors

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

Change subject: refactor: move SetEncryptionFlags to constructors
......................................................................

refactor: move SetEncryptionFlags to constructors

SetEncryptionFlags() is a test utility function used
to enable or disable encryption in unit tests. In
some parameterized tests, SetEncryptionFlags() calls
are distributed in many test cases, there is a risk
that missing to call it if add new test cases.

This patch moves the function call to the constructors,
also changes TEST_F to TEST_P for test
LogBlockManagerTest.TestContainerBlockLimitingByMetadataSizeWithCompaction

Change-Id: I67dca5a45f78de87309d0434c3b003a83f28e1a6
Reviewed-on: http://gerrit.cloudera.org:8080/20592
Tested-by: Yingchun Lai <la...@apache.org>
Reviewed-by: Alexey Serbin <al...@apache.org>
---
M src/kudu/consensus/consensus_meta-test.cc
M src/kudu/fs/log_block_manager-test.cc
M src/kudu/util/file_cache-test.cc
3 files changed, 42 insertions(+), 70 deletions(-)

Approvals:
  Yingchun Lai: Verified
  Alexey Serbin: Looks good to me, approved

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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I67dca5a45f78de87309d0434c3b003a83f28e1a6
Gerrit-Change-Number: 20592
Gerrit-PatchSet: 3
Gerrit-Owner: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Attila Bukor <ab...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>

[kudu-CR] refactor: move SetEncryptionFlags to constructors

Posted by "Yingchun Lai (Code Review)" <ge...@cloudera.org>.
Hello Alexey Serbin, Attila Bukor, Kudu Jenkins, 

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

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

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

Change subject: refactor: move SetEncryptionFlags to constructors
......................................................................

refactor: move SetEncryptionFlags to constructors

SetEncryptionFlags() is a test utility function used
to enable or disable encryption in unit tests. In
some parameterized tests, SetEncryptionFlags() calls
are distributed in many test cases, there is a risk
that missing to call it if add new test cases.

This patch moves the function call to the constructors,
also changes TEST_F to TEST_P for test
LogBlockManagerTest.TestContainerBlockLimitingByMetadataSizeWithCompaction

Change-Id: I67dca5a45f78de87309d0434c3b003a83f28e1a6
---
M src/kudu/consensus/consensus_meta-test.cc
M src/kudu/fs/log_block_manager-test.cc
M src/kudu/util/file_cache-test.cc
3 files changed, 42 insertions(+), 70 deletions(-)


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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I67dca5a45f78de87309d0434c3b003a83f28e1a6
Gerrit-Change-Number: 20592
Gerrit-PatchSet: 2
Gerrit-Owner: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Attila Bukor <ab...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>

[kudu-CR] refactor: move SetEncryptionFlags to constructors

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

Change subject: refactor: move SetEncryptionFlags to constructors
......................................................................


Patch Set 1: Code-Review+2

(2 comments)

http://gerrit.cloudera.org:8080/#/c/20592/1//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/20592/1//COMMIT_MSG@9
PS1, Line 9: util
nit: utility


http://gerrit.cloudera.org:8080/#/c/20592/1//COMMIT_MSG@11
PS1, Line 11: parameterize
nit: parameterized



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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I67dca5a45f78de87309d0434c3b003a83f28e1a6
Gerrit-Change-Number: 20592
Gerrit-PatchSet: 1
Gerrit-Owner: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Attila Bukor <ab...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>
Gerrit-Comment-Date: Thu, 19 Oct 2023 17:48:00 +0000
Gerrit-HasComments: Yes

[kudu-CR] refactor: move SetEncryptionFlags to constructors

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

Change subject: refactor: move SetEncryptionFlags to constructors
......................................................................


Patch Set 1: Verified+1

The failed test CatalogManagerTskITest.LeadershipChangeOnTskGeneration is not related.


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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I67dca5a45f78de87309d0434c3b003a83f28e1a6
Gerrit-Change-Number: 20592
Gerrit-PatchSet: 1
Gerrit-Owner: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Attila Bukor <ab...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>
Gerrit-Comment-Date: Thu, 19 Oct 2023 02:27:07 +0000
Gerrit-HasComments: No

[kudu-CR] refactor: move SetEncryptionFlags to constructors

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

Change subject: refactor: move SetEncryptionFlags to constructors
......................................................................


Patch Set 2:

(2 comments)

http://gerrit.cloudera.org:8080/#/c/20592/1//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/20592/1//COMMIT_MSG@9
PS1, Line 9: util
> nit: utility
Done


http://gerrit.cloudera.org:8080/#/c/20592/1//COMMIT_MSG@11
PS1, Line 11: parameterize
> nit: parameterized
Done



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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I67dca5a45f78de87309d0434c3b003a83f28e1a6
Gerrit-Change-Number: 20592
Gerrit-PatchSet: 2
Gerrit-Owner: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Attila Bukor <ab...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>
Gerrit-Comment-Date: Fri, 20 Oct 2023 02:26:51 +0000
Gerrit-HasComments: Yes

[kudu-CR] refactor: move SetEncryptionFlags to constructors

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

Change subject: refactor: move SetEncryptionFlags to constructors
......................................................................


Patch Set 2: Verified+1


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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I67dca5a45f78de87309d0434c3b003a83f28e1a6
Gerrit-Change-Number: 20592
Gerrit-PatchSet: 2
Gerrit-Owner: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Attila Bukor <ab...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>
Gerrit-Comment-Date: Fri, 20 Oct 2023 03:34:37 +0000
Gerrit-HasComments: No

[kudu-CR] refactor: move SetEncryptionFlags to constructors

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

Change subject: refactor: move SetEncryptionFlags to constructors
......................................................................


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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: deleteVote
Gerrit-Change-Id: I67dca5a45f78de87309d0434c3b003a83f28e1a6
Gerrit-Change-Number: 20592
Gerrit-PatchSet: 2
Gerrit-Owner: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Attila Bukor <ab...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>

[kudu-CR] refactor: move SetEncryptionFlags to constructors

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

Change subject: refactor: move SetEncryptionFlags to constructors
......................................................................


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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: deleteVote
Gerrit-Change-Id: I67dca5a45f78de87309d0434c3b003a83f28e1a6
Gerrit-Change-Number: 20592
Gerrit-PatchSet: 1
Gerrit-Owner: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Attila Bukor <ab...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>