Set idempotence to null in BatchStatement.newInstance

Description

newInstance methods on BatchStatement are setting idempotence to false:

When it is set false instead of null the REQUEST_DEFAULT_IDEMPOTENCE is not taken into account when doing retry using policy:

SimpleStatement.newInstance is setting it to null therefore it is honoring that REQUEST_DEFAULT_IDEMPOTENCE, the BatchStatement doesn't.
Also, for 3.x the default was null so this behavior is not compatible with 3.x.

Environment

None

Pull Requests

None

Status

Assignee

Tomasz Lelek

Reporter

Tomasz Lelek

Labels

None

PM Priority

None

Reproduced in

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

Doc Impact

None

Reviewer

None

Size

None

Fix versions

Affects versions

4.2.1

Priority

Major
Configure