You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kudu.apache.org by "Grant Henke (JIRA)" <ji...@apache.org> on 2017/04/04 18:40:42 UTC

[jira] [Assigned] (KUDU-1424) java client: Impossible to uniquely identify error rows because PartialRow impl has no getters

     [ https://issues.apache.org/jira/browse/KUDU-1424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Grant Henke reassigned KUDU-1424:
---------------------------------

    Assignee: Grant Henke

> java client: Impossible to uniquely identify error rows because PartialRow impl has no getters
> ----------------------------------------------------------------------------------------------
>
>                 Key: KUDU-1424
>                 URL: https://issues.apache.org/jira/browse/KUDU-1424
>             Project: Kudu
>          Issue Type: Bug
>          Components: client
>    Affects Versions: 0.8.0
>            Reporter: Mike Percy
>            Assignee: Grant Henke
>
> The java client API error handling idiom looks roughly like the below. If a client is to identify a problem row in order to automatically retry it, we need to expose getters on PartialRow.
> {code}
> List<OperationResponse> responses = session.flush();
> for (OperationResponse response : responses) {
>   if (response.hasRowError()) {
>     Operation errorOp = response.getRowError().getOperation();
>     PartialRow errorRow = errorOp.getRow();
>     // RowId = ... ?
>     // The PartialRow java implementation has no getters.
>   }
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)