Driver Sends OPTIONS request with Compression Flag

Description

Per the protocol specifications compression can only be used after indicating and negotiating in the STARTUP. However since OPTIONS can come before a STARTUP request, it follows that compression cannot be allowed for an OPTIONS request as well.

This specifically causes an issue when the 4.x driver attempts to connect to a Scylla instance where the driver is configured to use compression. The driver code provides the following log:

Also documented as a known issue with the 4.x drivers connecting to Scylla here https://github.com/scylladb/scylla-java-driver-matrix/blob/264436a3da8a018eb3ac4b6b5734355f1cd986e2/versions/4.x/ignore.yaml#L36

Environment

None

Pull Requests

None

Assignee

Olivier Michallat

Reporter

Andrew From

Labels

None

PM Priority

None

Reproduced in

4.4.0

Affects versions

Fix versions

None

Doc Impact

Documentation

Size

XS

External issue ID

None

External issue ID

None

Components

Priority

Minor
Configure