Jane He created CASSJAVA-116:
--------------------------------
Summary: Retry or Speculative Execution with RequestIdGenerator
throws "Duplicate Key"
Key: CASSJAVA-116
URL: https://issues.apache.org/jira/browse/CASSJAVA-116
Project: Apache Cassandra Java driver
Issue Type: Improvement
Components: Core
Reporter: Jane He
Assignee: Jane He
It's because CqlRequestHandler can call {{sendRequest}} more than one time, so
"getDecoreatedStatement" can be called more than one time, so there will be
duplicate key.
We should modify the {{RequestIdGenerator.getDecoratedStatement}} so that
```
if (statement.getCustomPayload().containsKey(getCustomPayloadKey())) {
return statement;
}
```
This is a serious bug, we should release the fix ASAP.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]