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

Jane He updated CASSJAVA-116:
-----------------------------
    Description: 
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.
 

 

  was:
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.
 


> 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
>            Priority: Normal
>
> 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]

Reply via email to