Andrew Wong has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/17376 )

Change subject: [util] Add special handling for empty strings in FastHash
......................................................................


Patch Set 5:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/17376/5/src/kudu/client/predicate-test.cc
File src/kudu/client/predicate-test.cc:

http://gerrit.cloudera.org:8080/#/c/17376/5/src/kudu/client/predicate-test.cc@1551
PS5, Line 1551:     int i = 0;
              :     int last_flush = i;
              :     while (i < kNumRows) {
              :       for (int j = 0; j < values.size() && i < kNumRows; j++, 
i++) {
              :         const string &value = values[j];
              :         unique_ptr<KuduUpsert> upsert(table->NewUpsert());
              :         ASSERT_OK(upsert->mutable_row()->SetInt64("key", i));
              :         
ASSERT_OK(upsert->mutable_row()->SetStringNoCopy("value", value));
              :         ASSERT_OK(session->Apply(upsert.release()));
              :       }
              :       // TSAN builds timeout and fail on flushing with large 
number of rows.
              :       if (i - last_flush >= 1000) {
              :         ASSERT_OK(session->Flush());
              :         last_flush = i;
              :       }
              :     }
              :     ASSERT_OK(session->Flush());
I'm a bit confused about this change -- in the commit message you mention we 
could have missed a Flush(). But we flush at the end of this loop anyway?



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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Idb2d401ab692decd5bc03b48a96d710546c0039e
Gerrit-Change-Number: 17376
Gerrit-PatchSet: 5
Gerrit-Owner: Bankim Bhavsar <[email protected]>
Gerrit-Reviewer: Andrew Wong <[email protected]>
Gerrit-Reviewer: Bankim Bhavsar <[email protected]>
Gerrit-Reviewer: Grant Henke <[email protected]>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Wenzhe Zhou <[email protected]>
Gerrit-Comment-Date: Mon, 17 May 2021 22:02:36 +0000
Gerrit-HasComments: Yes

Reply via email to