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 2021/07/21 06:04:37 UTC

[kudu-CR] [tools] --scan batch size for 'table scan' and 'perf table scan'

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


Change subject: [tools] --scan_batch_size for 'table scan' and 'perf table_scan'
......................................................................

[tools] --scan_batch_size for 'table scan' and 'perf table_scan'

This patch introduces a new command-line flag for the 'kudu table scan'
and the 'kudu perf table_scan' CLI tools: --scan_batch_size.  The new
flag allows for customization of the batch size when running scan
operations.  I also added a few test scenarios to cover the newly
introduced functionality.

Change-Id: I4fd5962eeda1d1d7921c6b70521f2d611ee1f3c7
---
M src/kudu/tools/kudu-tool-test.cc
M src/kudu/tools/table_scanner.cc
M src/kudu/tools/table_scanner.h
M src/kudu/tools/tool_action_perf.cc
M src/kudu/tools/tool_action_table.cc
5 files changed, 92 insertions(+), 0 deletions(-)



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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I4fd5962eeda1d1d7921c6b70521f2d611ee1f3c7
Gerrit-Change-Number: 17708
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>

[kudu-CR] [tools] --scan batch size for 'table scan' and 'perf table scan'

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

Change subject: [tools] --scan_batch_size for 'table scan' and 'perf table_scan'
......................................................................


Patch Set 2: Verified+1

unrelated test failure: TimestampAdvancementITest.TestUpgradeFromOlderCorruptedData (C++) and  TestSecurity (java)


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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I4fd5962eeda1d1d7921c6b70521f2d611ee1f3c7
Gerrit-Change-Number: 17708
Gerrit-PatchSet: 2
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Bankim Bhavsar <ba...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Comment-Date: Wed, 21 Jul 2021 20:59:27 +0000
Gerrit-HasComments: No

[kudu-CR] [tools] --scan batch size for 'table scan' and 'perf table scan'

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

Change subject: [tools] --scan_batch_size for 'table scan' and 'perf table_scan'
......................................................................


Patch Set 1:

(2 comments)

http://gerrit.cloudera.org:8080/#/c/17708/1/src/kudu/tools/table_scanner.cc
File src/kudu/tools/table_scanner.cc:

http://gerrit.cloudera.org:8080/#/c/17708/1/src/kudu/tools/table_scanner.cc@606
PS1, Line 606: =
What does scan_batch_size of 0 mean?


http://gerrit.cloudera.org:8080/#/c/17708/1/src/kudu/tools/tool_action_table.cc
File src/kudu/tools/tool_action_table.cc:

http://gerrit.cloudera.org:8080/#/c/17708/1/src/kudu/tools/tool_action_table.cc@118
PS1, Line 118: The size for scan results batches, in bytes. A negative value "
             :              "(e.g., -1) means the server-side default is used.
Nit: As a user I'm curious to know what's the default server-side scan batch size. I understand mentioning the value here is not recommended as it could change. How about pointing out the name of the server side scan batch size flag so that looking up is easier?



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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I4fd5962eeda1d1d7921c6b70521f2d611ee1f3c7
Gerrit-Change-Number: 17708
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Bankim Bhavsar <ba...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Comment-Date: Wed, 21 Jul 2021 17:12:52 +0000
Gerrit-HasComments: Yes

[kudu-CR] [tools] --scan batch size for 'table scan' and 'perf table scan'

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

Change subject: [tools] --scan_batch_size for 'table scan' and 'perf table_scan'
......................................................................


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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: deleteVote
Gerrit-Change-Id: I4fd5962eeda1d1d7921c6b70521f2d611ee1f3c7
Gerrit-Change-Number: 17708
Gerrit-PatchSet: 2
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Bankim Bhavsar <ba...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)

[kudu-CR] [tools] --scan batch size for 'table scan' and 'perf table scan'

Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Hello Kudu Jenkins, Bankim Bhavsar, 

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

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

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

Change subject: [tools] --scan_batch_size for 'table scan' and 'perf table_scan'
......................................................................

[tools] --scan_batch_size for 'table scan' and 'perf table_scan'

This patch introduces a new command-line flag for the 'kudu table scan'
and the 'kudu perf table_scan' CLI tools: --scan_batch_size.  The new
flag allows for customization of the batch size when running scan
operations.  I also added a few test scenarios for basic coverage of
the newly introduced functionality.

Change-Id: I4fd5962eeda1d1d7921c6b70521f2d611ee1f3c7
---
M src/kudu/tools/kudu-tool-test.cc
M src/kudu/tools/table_scanner.cc
M src/kudu/tools/table_scanner.h
M src/kudu/tools/tool_action_perf.cc
M src/kudu/tools/tool_action_table.cc
5 files changed, 98 insertions(+), 0 deletions(-)


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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I4fd5962eeda1d1d7921c6b70521f2d611ee1f3c7
Gerrit-Change-Number: 17708
Gerrit-PatchSet: 2
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Bankim Bhavsar <ba...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)

[kudu-CR] [tools] --scan batch size for 'table scan' and 'perf table scan'

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

Change subject: [tools] --scan_batch_size for 'table scan' and 'perf table_scan'
......................................................................

[tools] --scan_batch_size for 'table scan' and 'perf table_scan'

This patch introduces a new command-line flag for the 'kudu table scan'
and the 'kudu perf table_scan' CLI tools: --scan_batch_size.  The new
flag allows for customization of the batch size when running scan
operations.  I also added a few test scenarios for basic coverage of
the newly introduced functionality.

Change-Id: I4fd5962eeda1d1d7921c6b70521f2d611ee1f3c7
Reviewed-on: http://gerrit.cloudera.org:8080/17708
Reviewed-by: Bankim Bhavsar <ba...@cloudera.com>
Tested-by: Alexey Serbin <as...@cloudera.com>
---
M src/kudu/tools/kudu-tool-test.cc
M src/kudu/tools/table_scanner.cc
M src/kudu/tools/table_scanner.h
M src/kudu/tools/tool_action_perf.cc
M src/kudu/tools/tool_action_table.cc
5 files changed, 98 insertions(+), 0 deletions(-)

Approvals:
  Bankim Bhavsar: Looks good to me, approved
  Alexey Serbin: Verified

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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I4fd5962eeda1d1d7921c6b70521f2d611ee1f3c7
Gerrit-Change-Number: 17708
Gerrit-PatchSet: 3
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Bankim Bhavsar <ba...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)

[kudu-CR] [tools] --scan batch size for 'table scan' and 'perf table scan'

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

Change subject: [tools] --scan_batch_size for 'table scan' and 'perf table_scan'
......................................................................


Patch Set 1:

(2 comments)

http://gerrit.cloudera.org:8080/#/c/17708/1/src/kudu/tools/table_scanner.cc
File src/kudu/tools/table_scanner.cc:

http://gerrit.cloudera.org:8080/#/c/17708/1/src/kudu/tools/table_scanner.cc@606
PS1, Line 606: =
> What does scan_batch_size of 0 mean?
It means the first batch in the scan response will be without any data.  It's documented in the client's API: https://github.com/apache/kudu/blob/5e895c642d28a1c5e3ee0845bb0775fe2e106d29/src/kudu/client/client.h#L2813-L2819

I added a comment to clarify on this.


http://gerrit.cloudera.org:8080/#/c/17708/1/src/kudu/tools/tool_action_table.cc
File src/kudu/tools/tool_action_table.cc:

http://gerrit.cloudera.org:8080/#/c/17708/1/src/kudu/tools/tool_action_table.cc@118
PS1, Line 118: The size for scan results batches, in bytes. A negative value "
             :              "(e.g., -1) means the server-side default is used.
> Nit: As a user I'm curious to know what's the default server-side scan batc
Yep, as far as I can see, we don't provide a means to peek at that if using client API.

It's a good idea to point to the corresponding server-side flag.

Done.



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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I4fd5962eeda1d1d7921c6b70521f2d611ee1f3c7
Gerrit-Change-Number: 17708
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Bankim Bhavsar <ba...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Comment-Date: Wed, 21 Jul 2021 19:32:34 +0000
Gerrit-HasComments: Yes

[kudu-CR] [tools] --scan batch size for 'table scan' and 'perf table scan'

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

Change subject: [tools] --scan_batch_size for 'table scan' and 'perf table_scan'
......................................................................


Patch Set 2: Code-Review+2


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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I4fd5962eeda1d1d7921c6b70521f2d611ee1f3c7
Gerrit-Change-Number: 17708
Gerrit-PatchSet: 2
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Bankim Bhavsar <ba...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Comment-Date: Wed, 21 Jul 2021 19:50:01 +0000
Gerrit-HasComments: No