You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kudu.apache.org by "Mike Percy (JIRA)" <ji...@apache.org> on 2016/04/22 02:27:12 UTC

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

Mike Percy created KUDU-1424:
--------------------------------

             Summary: 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


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.4#6332)