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)

Reply via email to