Wang Xixu has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/19949 )

Change subject: [KUDU-3483] Fixbug of auto flush data when table schema changed
......................................................................


Patch Set 15:

(3 comments)

http://gerrit.cloudera.org:8080/#/c/19949/15//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/19949/15//COMMIT_MSG@9
PS15, Line 9: In auto_flush_background mode, applying an operation firstly
            : inserts the row into the buffer. When the buffer is full or
            : function flush() is called, it tries to flush multiple data into
            : Kudu server.
> Kudu client also sends batched write operations in MANUAL_FLUSH mode. Does
No. MANUAL_FLUSH mode causes this problem too. Here I just set one mode to test.


http://gerrit.cloudera.org:8080/#/c/19949/15/java/kudu-client/src/main/java/org/apache/kudu/Schema.java
File java/kudu-client/src/main/java/org/apache/kudu/Schema.java:

http://gerrit.cloudera.org:8080/#/c/19949/15/java/kudu-client/src/main/java/org/apache/kudu/Schema.java@487
PS15, Line 487:   public int hashCode() {
> I didn't see the use of this method. Is it related to this patch?
If override the function equals(), java requires also override the function 
hashCode().


http://gerrit.cloudera.org:8080/#/c/19949/15/java/kudu-client/src/main/java/org/apache/kudu/client/AsyncKuduSession.java
File 
java/kudu-client/src/main/java/org/apache/kudu/client/AsyncKuduSession.java:

http://gerrit.cloudera.org:8080/#/c/19949/15/java/kudu-client/src/main/java/org/apache/kudu/client/AsyncKuduSession.java@418
PS15, Line 418: // Compare with the lastest schema in the list, because the 
lastest operations
              :         // have the same schemas with it most likely.
> How about batching all of the buffered operations into their respective tab
The batches are put into the list in the same order of operations, so 
regularly, the last batch most likely has the same schema with the current 
operation. To reduce the meaningless loop, it would be better to just judge the 
last batch in the list.



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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie6501962b32814d121f180b2942999c402d927db
Gerrit-Change-Number: 19949
Gerrit-PatchSet: 15
Gerrit-Owner: Wang Xixu <[email protected]>
Gerrit-Reviewer: Alexey Serbin <[email protected]>
Gerrit-Reviewer: KeDeng <[email protected]>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Wang Xixu <[email protected]>
Gerrit-Reviewer: Yifan Zhang <[email protected]>
Gerrit-Reviewer: Yingchun Lai <[email protected]>
Gerrit-Reviewer: Yuqi Du <[email protected]>
Gerrit-Comment-Date: Tue, 20 Jun 2023 09:58:13 +0000
Gerrit-HasComments: Yes

Reply via email to