Thomas Tauber-Marshall has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/8464 )

Change subject: IMPALA-4591: Bound Kudu client error mem usage
......................................................................


Patch Set 3:

(3 comments)

http://gerrit.cloudera.org:8080/#/c/8464/2/be/src/exec/kudu-table-sink.cc
File be/src/exec/kudu-table-sink.cc:

http://gerrit.cloudera.org:8080/#/c/8464/2/be/src/exec/kudu-table-sink.cc@193
PS2, Line 193:   
KUDU_RETURN_IF_ERROR(session_->SetErrorBufferSpace(error_buffer_size),
> Stray debug log
Done


http://gerrit.cloudera.org:8080/#/c/8464/2/be/src/exec/kudu-table-sink.cc@350
PS2, Line 350:   mem_tracker_->Release(client_tracked_bytes_);
> when does the client actually free the buffers that this is accounting? it
The mutation buffer is cleared by KuduSession::Flush() and the error buffer is 
cleared by KuduSession::GetPendingErrors(), both called in FlushFinal().


http://gerrit.cloudera.org:8080/#/c/8464/2/tests/custom_cluster/test_kudu.py
File tests/custom_cluster/test_kudu.py:

http://gerrit.cloudera.org:8080/#/c/8464/2/tests/custom_cluster/test_kudu.py@78
PS2, Line 78:       assert "Error overflow in Kudu session." in str(e)
> is there a test case that generates a good number of errors and verifies th
Yes, there are existing tests in kudu_insert.test that generate thousands of 
errors.

As mentioned elsewhere in the review, it takes millions of errors to hit the 
default limit, but I'm not sure that adding a test that gets close to the limit 
gives us coverage that's worth the extra testing time. Happy to add one if you 
feel differently.



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I186ddb3f3b5865e08f17dba57cf6640591d06b14
Gerrit-Change-Number: 8464
Gerrit-PatchSet: 3
Gerrit-Owner: Thomas Tauber-Marshall <tmarsh...@cloudera.com>
Gerrit-Reviewer: Dan Hecht <dhe...@cloudera.com>
Gerrit-Reviewer: Thomas Tauber-Marshall <tmarsh...@cloudera.com>
Gerrit-Reviewer: Tim Armstrong <tarmstr...@cloudera.com>
Gerrit-Comment-Date: Fri, 17 Nov 2017 23:02:40 +0000
Gerrit-HasComments: Yes

Reply via email to