File tree Expand file tree Collapse file tree 2 files changed +11
-16
lines changed
developer/native_protocol Expand file tree Collapse file tree 2 files changed +11
-16
lines changed Original file line number Diff line number Diff line change @@ -24,29 +24,26 @@ only available with specific protocol versions.
24
24
Java driver 4 supports protocol versions 3 to 5. By default, the version is negotiated with the
25
25
first node the driver connects to:
26
26
27
- | Cassandra version | Negotiated protocol version with driver 4 ¹ |
28
- | --------------------- | -------------------------------------------------|
29
- | 2.1.x | v3 |
30
- | 2.2.x | v4 |
31
- | 3.x | v4 |
32
- | 4.x ² | v5 |
27
+ | Cassandra version | Negotiated protocol version with driver 4 ¹ |
28
+ | -------------------| -------------------------------------------------|
29
+ | 2.1.x | v3 |
30
+ | 2.2.x | v4 |
31
+ | 3.x | v4 |
32
+ | 4.x | v5 |
33
33
34
34
* (1) for previous driver versions, see the [ 3.x documentation] [ driver3 ] *
35
35
36
- * (2) at the time of writing, Cassandra 4 is not released yet. Protocol v5 support is still in beta,
37
- and must be enabled explicitly (negotiation will yield v4).*
38
-
39
36
Since version 4.5.0, the driver can also use DSE protocols when all nodes are running a version of
40
37
DSE. The table below shows the protocol matrix for these cases:
41
38
42
39
| DSE version | Negotiated protocol version with driver 4 |
43
40
| ---------------------| -------------------------------------------------|
44
41
| 4.7/4.8 | v3 |
45
42
| 5.0 | v4 |
46
- | 5.1 | DSE_V1 ³ |
47
- | 6.0/6.7/6.8 | DSE_V2 ³ |
43
+ | 5.1 | DSE_V1 ² |
44
+ | 6.0/6.7/6.8 | DSE_V2 ² |
48
45
49
- * (3 ) DSE Protocols are chosen before other Cassandra native protocols.*
46
+ * (2 ) DSE Protocols are chosen before other Cassandra native protocols.*
50
47
51
48
### Controlling the protocol version
52
49
Original file line number Diff line number Diff line change @@ -9,10 +9,8 @@ This part of the code lives in its own project:
9
9
10
10
The protocol specifications are available in
11
11
[ native-protocol/src/main/resources] ( https://github.com/datastax/native-protocol/tree/1.x/src/main/resources ) .
12
- These files originally come from Cassandra, we copy them over for easy access. Note that, if the
13
- latest version is a beta (this is the case for v5 at the time of writing -- September 2019), the
14
- specification might not be up to date. Always compare with the latest revision in
15
- [ cassandra/doc] ( https://github.com/apache/cassandra/tree/trunk/doc ) .
12
+ These files originally come from Cassandra, we copy them over for easy access. Authoritative specifications can
13
+ always be found in [ cassandra/doc] ( https://github.com/apache/cassandra/tree/trunk/doc ) .
16
14
17
15
18
16
For a broad overview of how protocol types are used in the driver, let's step through an example:
You can’t perform that action at this time.
0 commit comments