Deprecated IdempotencyAwareRetryPolicy checks for options resulting in error

Description

IdempotencyAwareRetryPolicy is marked as deprecated since 4.0 but when used, it can throw an error when onRequestError() is invoked.

1 2 3 4 5 6 7 8 9 10 11 12 13 TypeError: Cannot read property 'isIdempotent' of undefined at IdempotenceAwareRetryPolicy.onRequestError (/usr/src/app/node_modules/cassandra-driver/lib/policies/retry.js:170:20) at RequestExecution._getDecision (/usr/src/app/node_modules/cassandra-driver/lib/request-execution.js:286:30) at RequestExecution._handleError (/usr/src/app/node_modules/cassandra-driver/lib/request-execution.js:238:31) at _operation._connection.sendStream (/usr/src/app/node_modules/cassandra-driver/lib/request-execution.js:119:23) at OperationState (/usr/src/app/node_modules/cassandra-driver/lib/connection.js:478:5) at OperationState._swapCallbackAndInvoke (/usr/src/app/node_modules/cassandra-driver/lib/operation-state.js:145:5) at OperationState._markAsTimedOut (/usr/src/app/node_modules/cassandra-driver/lib/operation-state.js:118:10) at Timeout.requestTimedOut [as _onTimeout] (/usr/src/app/node_modules/cassandra-driver/lib/operation-state.js:92:12) at ontimeout (timers.js:436:11) at tryOnTimeout (timers.js:300:5) at listOnTimeout (timers.js:263:5) at Timer.processTimers (timers.js:223:10)

Environment

None

Pull Requests

None

Status

Assignee

Unassigned

Reporter

Jorge Bay Gondra

Reviewer

None

Fix versions

None

Labels

Components

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

Size

None

Affects versions

4.2.0
4.0.0

Priority

Major