[ 
https://issues.apache.org/jira/browse/KUDU-2061?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16090019#comment-16090019
 ] 

Scott Black commented on KUDU-2061:
-----------------------------------

Thanks for help. Using OperationResponse was able to find duplicate key values. 
Do agree the documentation could be better and the sample code be enhanced to 
show the importance of OperationResponse.

> Java Client Not Honoring setIgnoreAllDuplicateRows When Inserting Duplicate 
> Values
> ----------------------------------------------------------------------------------
>
>                 Key: KUDU-2061
>                 URL: https://issues.apache.org/jira/browse/KUDU-2061
>             Project: Kudu
>          Issue Type: Bug
>          Components: client
>    Affects Versions: 1.3.1, 1.5.0
>            Reporter: Scott Black
>
> Duplicate values on insert are not causing warning/error to be returned when 
> setIgnoreAllDuplicateRows is set to false. This is silently causing data loss.
> Test case. Use the example code from 
> [https://github.com/cloudera/kudu-examples/blob/master/java/java-sample/src/main/java/org/kududb/examples/sample/Sample.java].
>  Change line 43 to insert an constant. 3 inserts will execute but only a 
> single row with no error is thrown. See KUDU-1563 as it seems all inserts are 
> now ignore inserts.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to