impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Tauber-Marshall (Code Review)" <>
Subject [Impala-ASF-CR] IMPALA-5799: Kudu DML can crash if schema has changed
Date Fri, 18 Aug 2017 21:23:01 GMT
Thomas Tauber-Marshall has posted comments on this change.

Change subject: IMPALA-5799: Kudu DML can crash if schema has changed

Patch Set 2:

Commit Message:

PS1, Line 14: its
> it's

PS1, Line 18: Wri
> DML is really a SQL concept, technically this should be 'WriteOp'
File be/src/exec/

PS1, Line 144: g order of column positio
> We can't assume this is true. E.g. see the comment in Send().  We actually 
File be/src/exec/

PS1, Line 37: DataType = 
> why can't you just have
Weird quirk of C++. Doing that gives the compiler message:
'error: ‘kudu::client::KuduColumnSchema’ is not a namespace'
File be/src/exec/kudu-util.h:

Line 81: /// Takes a Kudu client DataType and returns the corresponding Impala ColumnType.
> comment
File tests/query_test/

Line 399:     print cursor.fetchall() == [(i, )]
> is this test reproducing a crash before your change?
Yes, I ran it 20+ times and it repro-ed the crash every time. I has also originally thought
that it would need a loop, but then decided not to add one based on those results.

That may just be particular to my machine, and the timing may not work out quite so nicely
in other environments, in which case a loop would be good to be safe.

Adding a loop though increases the number of legitimate ways the insert may fail, eg. we may
get analysis errors.

Line 410:       threading.current_thread().errors = []
> I was thinking we could do these operations in a loop to get more opportuni

PS1, Line 416:         except Exception as e:
             :           threading.current_thread().errors.append(e)
             :     insert_thread = threading.Thread(target=insert_values)
             :     insert_thread.start()
> this you can do on the main thread while the insert thread is inserting

PS1, Line 432: rror in
> this is the error in the case we sent a write op to Kudu that was w/ the ol
Yes. I was trying to avoid depending too much on the specific text of the error, esp. in this
case where we don't control it, but its probably better to look for something more specific.

To view, visit
To unsubscribe, visit

Gerrit-MessageType: comment
Gerrit-Change-Id: I9fd6bf164310df0041144f75f5ee722665e9f587
Gerrit-PatchSet: 2
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-Owner: Thomas Tauber-Marshall <>
Gerrit-Reviewer: Matthew Jacobs <>
Gerrit-Reviewer: Thomas Tauber-Marshall <>
Gerrit-HasComments: Yes

View raw message