Alexey Serbin has submitted this change and it was merged. ( 
http://gerrit.cloudera.org:8080/20327 )

Change subject: KUDU-3495 Initialize the bitmap while decoding insert/upsert
......................................................................

KUDU-3495 Initialize the bitmap while decoding insert/upsert

The upsert request with an old client schema might lead to
unexpected result eventually.

If client A opens a table first and then client B add a column
to the table, the upsert request of client A might set the
newly added column to default value.

The reason is that we did not initialize the tablet_isset_bitmap
while decoding the insert or upsert requests.

A user does not want to change the column which he did not request
to even if the client schema is not correct, so initialize the bitmap.

Change-Id: I38a33cb58a085bc83854c5145e904c8ed51092a8
Reviewed-on: http://gerrit.cloudera.org:8080/20327
Tested-by: Kudu Jenkins
Reviewed-by: Alexey Serbin <[email protected]>
---
M src/kudu/common/row_operations-test.cc
M src/kudu/common/row_operations.cc
2 files changed, 31 insertions(+), 0 deletions(-)

Approvals:
  Kudu Jenkins: Verified
  Alexey Serbin: Looks good to me, approved

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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I38a33cb58a085bc83854c5145e904c8ed51092a8
Gerrit-Change-Number: 20327
Gerrit-PatchSet: 8
Gerrit-Owner: Song Jiacheng <[email protected]>
Gerrit-Reviewer: Alexey Serbin <[email protected]>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Song Jiacheng <[email protected]>

Reply via email to