Elffuss BraidHub

kikocis/java-driver public

0fc2037f3536 · 73.1 KiBRenderedRawPermalink
1## Changelog
2
3### 3.1.4
4
5Merged from 3.0.x branch:
6
7- [bug] JAVA-1371: Reintroduce connection pool timeout.
8- [bug] JAVA-1313: Copy SerialConsistencyLevel to PreparedStatement.
9- [documentation] JAVA-1334: Clarify documentation of method `addContactPoints`.
10- [improvement] JAVA-1357: Document that getReplicas only returns replicas of the last token in range.
11
12
13### 3.1.3
14
15Merged from 3.0.x branch:
16
17- [bug] JAVA-1330: Add un/register for SchemaChangeListener in DelegatingCluster
18- [bug] JAVA-1351: Include Custom Payload in Request.copy.
19- [bug] JAVA-1346: Reset heartbeat only on client reads (not writes).
20- [improvement] JAVA-866: Support tuple notation in QueryBuilder.eq/in.
21
22
23### 3.1.2
24
25- [bug] JAVA-1321: Wrong OSGi dependency version for Guava.
26
27Merged from 3.0.x branch:
28
29- [bug] JAVA-1312: QueryBuilder modifies selected columns when manually selected.
30- [improvement] JAVA-1303: Add missing BoundStatement.setRoutingKey(ByteBuffer...)
31- [improvement] JAVA-262: Make internal executors customizable
32
33
34### 3.1.1
35
36- [bug] JAVA-1284: ClockFactory should check system property before attempting to load Native class.
37- [bug] JAVA-1255: Allow nested UDTs to be used in Mapper.
38- [bug] JAVA-1279: Mapper should exclude Groovy's "metaClass" property when looking for mapped properties
39
40Merged from 3.0.x branch:
41
42- [improvement] JAVA-1246: Driver swallows the real exception in a few cases
43- [improvement] JAVA-1261: Throw error when attempting to page in I/O thread.
44- [bug] JAVA-1258: Regression: Mapper cannot map a materialized view after JAVA-1126.
45- [bug] JAVA-1101: Batch and BatchStatement should consider inner statements to determine query idempotence
46- [improvement] JAVA-1262: Use ParseUtils for quoting & unquoting.
47- [improvement] JAVA-1275: Use Netty's default thread factory
48- [bug] JAVA-1285: QueryBuilder routing key auto-discovery should handle case-sensitive column names.
49- [bug] JAVA-1283: Don't cache failed query preparations in the mapper.
50- [improvement] JAVA-1277: Expose AbstractSession.checkNotInEventLoop.
51- [bug] JAVA-1272: BuiltStatement not able to print its query string if it contains mapped UDTs.
52- [bug] JAVA-1292: 'Adjusted frame length' error breaks driver's ability to read data.
53- [improvement] JAVA-1293: Make DecoderForStreamIdSize.MAX_FRAME_LENGTH configurable.
54- [improvement] JAVA-1053: Add a metric for authentication errors
55- [improvement] JAVA-1263: Eliminate unnecessary memory copies in FrameCompressor implementations.
56- [improvement] JAVA-893: Make connection pool non-blocking
57
58
59### 3.1.0
60
61- [new feature] JAVA-1153: Add PER PARTITION LIMIT to Select QueryBuilder.
62- [improvement] JAVA-743: Add JSON support to QueryBuilder.
63- [improvement] JAVA-1233: Update HdrHistogram to 2.1.9.
64- [improvement] JAVA-1233: Update Snappy to 1.1.2.6.
65- [bug] JAVA-1161: Preserve full time zone info in ZonedDateTimeCodec and DateTimeCodec.
66- [new feature] JAVA-1157: Allow asynchronous paging of Mapper Result.
67- [improvement] JAVA-1212: Don't retry non-idempotent statements by default.
68- [improvement] JAVA-1192: Make EventDebouncer settings updatable at runtime.
69- [new feature] JAVA-541: Add polymorphism support to object mapper.
70- [new feature] JAVA-636: Allow @Column annotations on getters/setters as well as fields.
71- [new feature] JAVA-984: Allow non-void setters in object mapping.
72- [new feature] JAVA-1055: Add ErrorAware load balancing policy.
73
74Merged from 3.0.x branch:
75
76- [bug] JAVA-1179: Request objects should be copied when executed.
77- [improvement] JAVA-1182: Throw error when synchronous call made on I/O thread.
78- [bug] JAVA-1184: Unwrap StatementWrappers when extracting column definitions.
79- [bug] JAVA-1132: Executing bound statement with no variables results in exception with protocol v1.
80- [improvement] JAVA-1040: SimpleStatement parameters support in QueryLogger.
81- [improvement] JAVA-1151: Fail fast if HdrHistogram is not in the classpath.
82- [improvement] JAVA-1154: Allow individual Statement to cancel the read timeout.
83- [bug] JAVA-1074: Fix documentation around default timestamp generator.
84- [improvement] JAVA-1109: Document SSLOptions changes in upgrade guide.
85- [improvement] JAVA-1065: Add method to create token from partition key values.
86- [improvement] JAVA-1136: Enable JDK signature check in module driver-extras.
87- [improvement] JAVA-866: Support tuple notation in QueryBuilder.eq/in.
88- [bug] JAVA-1140: Use same connection to check for schema agreement after a DDL query.
89- [improvement] JAVA-1113: Support Cassandra 3.4 LIKE operator in QueryBuilder.
90- [improvement] JAVA-1086: Support Cassandra 3.2 CAST function in QueryBuilder.
91- [bug] JAVA-1095: Check protocol version for custom payload before sending the query.
92- [improvement] JAVA-1133: Add OSGi headers to cassandra-driver-extras.
93- [bug] JAVA-1137: Incorrect string returned by DataType.asFunctionParameterString() for collections and tuples.
94- [bug] JAVA-1046: (Dynamic)CompositeTypes need to be parsed as string literal, not blob.
95- [improvement] JAVA-1164: Clarify documentation on Host.listenAddress and broadcastAddress.
96- [improvement] JAVA-1171: Add Host method to determine if DSE Graph is enabled.
97- [improvement] JAVA-1069: Bootstrap driver-examples module.
98- [documentation] JAVA-1150: Add example and FAQ entry about ByteBuffer/BLOB.
99- [improvement] JAVA-1011: Expose PoolingOptions default values.
100- [improvement] JAVA-630: Don't process DOWN events for nodes that have active connections.
101- [improvement] JAVA-851: Improve UUIDs javadoc with regard to user-provided timestamps.
102- [improvement] JAVA-979: Update javadoc for RegularStatement toString() and getQueryString() to indicate that consistency level and other parameters are not maintained in the query string.
103- [bug] JAVA-1068: Unwrap StatementWrappers when hashing the paging state.
104- [improvement] JAVA-1021: Improve error message when connect() is called with an invalid keyspace name.
105- [improvement] JAVA-879: Mapper.map() accepts mapper-generated and user queries.
106- [bug] JAVA-1100: Exception when connecting with shaded java driver in OSGI
107- [bug] JAVA-1064: getTable create statement doesn't properly handle quotes in primary key.
108- [bug] JAVA-1089: Set LWT made from BuiltStatements to non-idempotent.
109- [improvement] JAVA-923: Position idempotent flag on object mapper queries.
110- [bug] JAVA-1070: The Mapper should not prepare queries synchronously.
111- [new feature] JAVA-982: Introduce new method ConsistencyLevel.isSerial().
112- [bug] JAVA-764: Retry with the normal consistency level (not the serial one) when a write times out on the Paxos phase.
113- [improvement] JAVA-852: Ignore peers with null entries during discovery.
114- [bug] JAVA-1005: DowngradingConsistencyRetryPolicy does not work with EACH_QUORUM when 1 DC is down.
115- [bug] JAVA-1002: Avoid deadlock when re-preparing a statement on other hosts.
116- [bug] JAVA-1072: Ensure defunct connections are properly evicted from the pool.
117- [bug] JAVA-1152: Fix NPE at ControlConnection.refreshNodeListAndTokenMap().
118
119Merged from 2.1 branch:
120
121- [improvement] JAVA-1038: Fetch node info by rpc_address if its broadcast_address is not in system.peers.
122- [improvement] JAVA-888: Add cluster-wide percentile tracker.
123- [improvement] JAVA-963: Automatically register PercentileTracker from components that use it.
124- [new feature] JAVA-1019: SchemaBuilder support for CREATE/ALTER/DROP KEYSPACE.
125- [bug] JAVA-727: Allow monotonic timestamp generators to drift in the future + use microsecond precision when possible.
126- [improvement] JAVA-444: Add Java process information to UUIDs.makeNode() hash.
127
128
129### 3.0.6
130
131- [bug] JAVA-1330: Add un/register for SchemaChangeListener in DelegatingCluster
132- [bug] JAVA-1351: Include Custom Payload in Request.copy.
133- [bug] JAVA-1346: Reset heartbeat only on client reads (not writes).
134- [improvement] JAVA-866: Support tuple notation in QueryBuilder.eq/in.
135
136
137### 3.0.5
138
139- [bug] JAVA-1312: QueryBuilder modifies selected columns when manually selected.
140- [improvement] JAVA-1303: Add missing BoundStatement.setRoutingKey(ByteBuffer...)
141- [improvement] JAVA-262: Make internal executors customizable
142- [bug] JAVA-1320: prevent unnecessary task creation on empty pool
143
144
145### 3.0.4
146
147- [improvement] JAVA-1246: Driver swallows the real exception in a few cases
148- [improvement] JAVA-1261: Throw error when attempting to page in I/O thread.
149- [bug] JAVA-1258: Regression: Mapper cannot map a materialized view after JAVA-1126.
150- [bug] JAVA-1101: Batch and BatchStatement should consider inner statements to determine query idempotence
151- [improvement] JAVA-1262: Use ParseUtils for quoting & unquoting.
152- [improvement] JAVA-1275: Use Netty's default thread factory
153- [bug] JAVA-1285: QueryBuilder routing key auto-discovery should handle case-sensitive column names.
154- [bug] JAVA-1283: Don't cache failed query preparations in the mapper.
155- [improvement] JAVA-1277: Expose AbstractSession.checkNotInEventLoop.
156- [bug] JAVA-1272: BuiltStatement not able to print its query string if it contains mapped UDTs.
157- [bug] JAVA-1292: 'Adjusted frame length' error breaks driver's ability to read data.
158- [improvement] JAVA-1293: Make DecoderForStreamIdSize.MAX_FRAME_LENGTH configurable.
159- [improvement] JAVA-1053: Add a metric for authentication errors
160- [improvement] JAVA-1263: Eliminate unnecessary memory copies in FrameCompressor implementations.
161- [improvement] JAVA-893: Make connection pool non-blocking
162
163
164### 3.0.3
165
166- [improvement] JAVA-1147: Upgrade Netty to 4.0.37.
167- [bug] JAVA-1213: Allow updates and inserts to BLOB column using read-only ByteBuffer.
168- [bug] JAVA-1209: ProtocolOptions.getProtocolVersion() should return null instead of throwing NPE if Cluster has not
169 been init'd.
170- [improvement] JAVA-1204: Update documentation to indicate tcnative version requirement.
171- [bug] JAVA-1186: Fix duplicated hosts in DCAwarePolicy warn message.
172- [bug] JAVA-1187: Fix warning message when local CL used with RoundRobinPolicy.
173- [improvement] JAVA-1175: Warn if DCAwarePolicy configuration is inconsistent.
174- [bug] JAVA-1139: ConnectionException.getMessage() throws NPE if address is null.
175- [bug] JAVA-1202: Handle null rpc_address when checking schema agreement.
176- [improvement] JAVA-1198: Document that BoundStatement is not thread-safe.
177- [improvement] JAVA-1200: Upgrade LZ4 to 1.3.0.
178- [bug] JAVA-1232: Fix NPE in IdempotenceAwareRetryPolicy.isIdempotent.
179- [improvement] JAVA-1227: Document "SELECT *" issue with prepared statement.
180- [bug] JAVA-1160: Fix NPE in VersionNumber.getPreReleaseLabels().
181- [improvement] JAVA-1126: Handle schema changes in Mapper.
182- [bug] JAVA-1193: Refresh token and replica metadata synchronously when schema is altered.
183- [bug] JAVA-1120: Skip schema refresh debouncer when checking for agreement as a result of schema change made by client.
184- [improvement] JAVA-1242: Fix driver-core dependency in driver-stress
185- [improvement] JAVA-1235: Move the query to the end of "re-preparing .." log message as a key value.
186
187
188### 3.0.2
189
190Merged from 2.1 branch:
191
192- [bug] JAVA-1179: Request objects should be copied when executed.
193- [improvement] JAVA-1182: Throw error when synchronous call made on I/O thread.
194- [bug] JAVA-1184: Unwrap StatementWrappers when extracting column definitions.
195
196
197### 3.0.1
198
199- [bug] JAVA-1132: Executing bound statement with no variables results in exception with protocol v1.
200- [improvement] JAVA-1040: SimpleStatement parameters support in QueryLogger.
201- [improvement] JAVA-1151: Fail fast if HdrHistogram is not in the classpath.
202- [improvement] JAVA-1154: Allow individual Statement to cancel the read timeout.
203- [bug] JAVA-1074: Fix documentation around default timestamp generator.
204- [improvement] JAVA-1109: Document SSLOptions changes in upgrade guide.
205- [improvement] JAVA-1065: Add method to create token from partition key values.
206- [improvement] JAVA-1136: Enable JDK signature check in module driver-extras.
207- [improvement] JAVA-866: Support tuple notation in QueryBuilder.eq/in.
208- [bug] JAVA-1140: Use same connection to check for schema agreement after a DDL query.
209- [improvement] JAVA-1113: Support Cassandra 3.4 LIKE operator in QueryBuilder.
210- [improvement] JAVA-1086: Support Cassandra 3.2 CAST function in QueryBuilder.
211- [bug] JAVA-1095: Check protocol version for custom payload before sending the query.
212- [improvement] JAVA-1133: Add OSGi headers to cassandra-driver-extras.
213- [bug] JAVA-1137: Incorrect string returned by DataType.asFunctionParameterString() for collections and tuples.
214- [bug] JAVA-1046: (Dynamic)CompositeTypes need to be parsed as string literal, not blob.
215- [improvement] JAVA-1164: Clarify documentation on Host.listenAddress and broadcastAddress.
216- [improvement] JAVA-1171: Add Host method to determine if DSE Graph is enabled.
217- [improvement] JAVA-1069: Bootstrap driver-examples module.
218- [documentation] JAVA-1150: Add example and FAQ entry about ByteBuffer/BLOB.
219
220Merged from 2.1 branch:
221
222- [improvement] JAVA-1011: Expose PoolingOptions default values.
223- [improvement] JAVA-630: Don't process DOWN events for nodes that have active connections.
224- [improvement] JAVA-851: Improve UUIDs javadoc with regard to user-provided timestamps.
225- [improvement] JAVA-979: Update javadoc for RegularStatement toString() and getQueryString() to indicate that consistency level and other parameters are not maintained in the query string.
226- [bug] JAVA-1068: Unwrap StatementWrappers when hashing the paging state.
227- [improvement] JAVA-1021: Improve error message when connect() is called with an invalid keyspace name.
228- [improvement] JAVA-879: Mapper.map() accepts mapper-generated and user queries.
229- [bug] JAVA-1100: Exception when connecting with shaded java driver in OSGI
230- [bug] JAVA-1064: getTable create statement doesn't properly handle quotes in primary key.
231- [bug] JAVA-1089: Set LWT made from BuiltStatements to non-idempotent.
232- [improvement] JAVA-923: Position idempotent flag on object mapper queries.
233- [bug] JAVA-1070: The Mapper should not prepare queries synchronously.
234- [new feature] JAVA-982: Introduce new method ConsistencyLevel.isSerial().
235- [bug] JAVA-764: Retry with the normal consistency level (not the serial one) when a write times out on the Paxos phase.
236- [improvement] JAVA-852: Ignore peers with null entries during discovery.
237- [bug] JAVA-1005: DowngradingConsistencyRetryPolicy does not work with EACH_QUORUM when 1 DC is down.
238- [bug] JAVA-1002: Avoid deadlock when re-preparing a statement on other hosts.
239- [bug] JAVA-1072: Ensure defunct connections are properly evicted from the pool.
240- [bug] JAVA-1152: Fix NPE at ControlConnection.refreshNodeListAndTokenMap().
241
242
243### 3.0.0
244
245- [bug] JAVA-1034: fix metadata parser for collections of custom types.
246- [improvement] JAVA-1035: Expose host broadcast_address and listen_address if available.
247- [new feature] JAVA-1037: Allow named parameters in simple statements.
248- [improvement] JAVA-1033: Allow per-statement read timeout.
249- [improvement] JAVA-1042: Include DSE version and workload in Host data.
250
251Merged from 2.1 branch:
252
253- [improvement] JAVA-1030: Log token to replica map computation times.
254- [bug] JAVA-1039: Minor bugs in Event Debouncer.
255
256
257### 3.0.0-rc1
258
259- [bug] JAVA-890: fix mapper for case-sensitive UDT.
260
261
262### 3.0.0-beta1
263
264- [bug] JAVA-993: Support for "custom" types after CASSANDRA-10365.
265- [bug] JAVA-999: Handle unset parameters in QueryLogger.
266- [bug] JAVA-998: SchemaChangeListener not invoked for Functions or Aggregates having UDT arguments.
267- [bug] JAVA-1009: use CL ONE to compute query plan when reconnecting
268 control connection.
269- [improvement] JAVA-1003: Change default consistency level to LOCAL_ONE (amends JAVA-926).
270- [improvement] JAVA-863: Idempotence propagation in prepared statements.
271- [improvement] JAVA-996: Make CodecRegistry available to ProtocolDecoder.
272- [bug] JAVA-819: Driver shouldn't retry on client timeout if statement is not idempotent.
273- [improvement] JAVA-1007: Make SimpleStatement and QueryBuilder "detached" again.
274
275Merged from 2.1 branch:
276
277- [improvement] JAVA-989: Include keyspace name when invalid replication found when generating token map.
278- [improvement] JAVA-664: Reduce heap consumption for TokenMap.
279- [bug] JAVA-994: Don't call on(Up|Down|Add|Remove) methods if Cluster is closed/closing.
280
281
282### 3.0.0-alpha5
283
284- [improvement] JAVA-958: Make TableOrView.Order visible.
285- [improvement] JAVA-968: Update metrics to the latest version.
286- [improvement] JAVA-965: Improve error handling for when a non-type 1 UUID is given to bind() on a timeuuid column.
287- [improvement] JAVA-885: Pass the authenticator name from the server to the auth provider.
288- [improvement] JAVA-961: Raise an exception when an older version of guava (<16.01) is found.
289- [bug] JAVA-972: TypeCodec.parse() implementations should be case insensitive when checking for keyword NULL.
290- [bug] JAVA-971: Make type codecs invariant.
291- [bug] JAVA-986: Update documentation links to reference 3.0.
292- [improvement] JAVA-841: Refactor SSLOptions API.
293- [improvement] JAVA-948: Don't limit cipher suites by default.
294- [improvement] JAVA-917: Document SSL configuration.
295- [improvement] JAVA-936: Adapt schema metadata parsing logic to new storage format of CQL types in C* 3.0.
296- [new feature] JAVA-846: Provide custom codecs library as an extra module.
297- [new feature] JAVA-742: Codec Support for JSON.
298- [new feature] JAVA-606: Codec support for Java 8.
299- [new feature] JAVA-565: Codec support for Java arrays.
300- [new feature] JAVA-605: Codec support for Java enums.
301- [bug] JAVA-884: Fix UDT mapper to process fields in the correct order.
302
303Merged from 2.1 branch:
304
305- [bug] JAVA-854: avoid early return in Cluster.init when a node doesn't support the protocol version.
306- [bug] JAVA-978: Fix quoting issue that caused Mapper.getTableMetadata() to return null.
307- [improvement] JAVA-920: Downgrade "error creating pool" message to WARN.
308- [bug] JAVA-954: Don't trigger reconnection before initialization complete.
309- [improvement] JAVA-914: Avoid rejected tasks at shutdown.
310- [improvement] JAVA-921: Add SimpleStatement.getValuesCount().
311- [bug] JAVA-901: Move call to connection.release() out of cancelHandler.
312- [bug] JAVA-960: Avoid race in control connection shutdown.
313- [bug] JAVA-656: Fix NPE in ControlConnection.updateLocationInfo.
314- [bug] JAVA-966: Count uninitialized connections in conviction policy.
315- [improvement] JAVA-917: Document SSL configuration.
316- [improvement] JAVA-652: Add DCAwareRoundRobinPolicy builder.
317- [improvement] JAVA-808: Add generic filtering policy that can be used to exclude specific DCs.
318- [bug] JAVA-988: Metadata.handleId should handle escaped double quotes.
319- [bug] JAVA-983: QueryBuilder cannot handle collections containing function calls.
320
321
322### 3.0.0-alpha4
323
324- [improvement] JAVA-926: Change default consistency level to LOCAL_QUORUM.
325- [bug] JAVA-942: Fix implementation of UserType.hashCode().
326- [improvement] JAVA-877: Don't delay UP/ADDED notifications if protocol version = V4.
327- [improvement] JAVA-938: Parse 'extensions' column in table metadata.
328- [bug] JAVA-900: Fix Configuration builder to allow disabled metrics.
329- [new feature] JAVA-902: Prepare API for async query trace.
330- [new feature] JAVA-930: Add BoundStatement#unset.
331- [bug] JAVA-946: Make table metadata options class visible.
332- [bug] JAVA-939: Add crcCheckChance to TableOptionsMetadata#equals/hashCode.
333- [bug] JAVA-922: Make TypeCodec return mutable collections.
334- [improvement] JAVA-932: Limit visibility of codec internals.
335- [improvement] JAVA-934: Warn if a custom codec collides with an existing one.
336- [improvement] JAVA-940: Allow typed getters/setters to target any CQL type.
337- [bug] JAVA-950: Fix Cluster.connect with a case-sensitive keyspace.
338- [bug] JAVA-953: Fix MaterializedViewMetadata when base table name is case sensitive.
339
340
341### 3.0.0-alpha3
342
343- [new feature] JAVA-571: Support new system tables in C* 3.0.
344- [improvement] JAVA-919: Move crc_check_chance out of compressions options.
345
346Merged from 2.0 branch:
347
348- [improvement] JAVA-718: Log streamid at the trace level on sending request and receiving response.
349- [bug] JAVA-796: Fix SpeculativeExecutionPolicy.init() and close() are never called.
350- [improvement] JAVA-710: Suppress unnecessary warning at shutdown.
351- [improvement] #340: Allow DNS name with multiple A-records as contact point.
352- [bug] JAVA-794: Allow tracing across multiple result pages.
353- [bug] JAVA-737: DowngradingConsistencyRetryPolicy ignores write timeouts.
354- [bug] JAVA-736: Forbid bind marker in QueryBuilder add/append/prepend.
355- [bug] JAVA-712: Prevent QueryBuilder.quote() from applying duplicate double quotes.
356- [bug] JAVA-688: Prevent QueryBuilder from trying to serialize raw string.
357- [bug] JAVA-679: Support bind marker in QueryBuilder DELETE's list index.
358- [improvement] JAVA-475: Improve QueryBuilder API for SELECT DISTINCT.
359- [improvement] JAVA-225: Create values() function for Insert builder using List.
360- [improvement] JAVA-702: Warn when ReplicationStrategy encounters invalid
361 replication factors.
362- [improvement] JAVA-662: Add PoolingOptions method to set both core and max
363 connections.
364- [improvement] JAVA-766: Do not include epoll JAR in binary distribution.
365- [improvement] JAVA-726: Optimize internal copies of Request objects.
366- [bug] JAVA-815: Preserve tracing across retries.
367- [improvement] JAVA-709: New RetryDecision.tryNextHost().
368- [bug] JAVA-733: Handle function calls and raw strings as non-idempotent in QueryBuilder.
369- [improvement] JAVA-765: Provide API to retrieve values of a Parameterized SimpleStatement.
370- [improvement] JAVA-827: implement UPDATE .. IF EXISTS in QueryBuilder.
371- [improvement] JAVA-618: Randomize contact points list to prevent hotspots.
372- [improvement] JAVA-720: Surface the coordinator used on query failure.
373- [bug] JAVA-792: Handle contact points removed during init.
374- [improvement] JAVA-719: Allow PlainTextAuthProvider to change its credentials at runtime.
375- [new feature] JAVA-151: Make it possible to register for SchemaChange Events.
376- [improvement] JAVA-861: Downgrade "Asked to rebuild table" log from ERROR to INFO level.
377- [improvement] JAVA-797: Provide an option to prepare statements only on one node.
378- [improvement] JAVA-658: Provide an option to not re-prepare all statements in onUp.
379- [improvement] JAVA-853: Customizable creation of netty timer.
380- [bug] JAVA-859: Avoid quadratic ring processing with invalid replication factors.
381- [improvement] JAVA-657: Debounce control connection queries.
382- [bug] JAVA-784: LoadBalancingPolicy.distance() called before init().
383- [new feature] JAVA-828: Make driver-side metadata optional.
384- [improvement] JAVA-544: Allow hosts to remain partially up.
385- [improvement] JAVA-821, JAVA-822: Remove internal blocking calls and expose async session
386 creation.
387- [improvement] JAVA-725: Use parallel calls when re-preparing statement on other
388 hosts.
389- [bug] JAVA-629: Don't use connection timeout for unrelated internal queries.
390- [bug] JAVA-892: Fix NPE in speculative executions when metrics disabled.
391
392
393### 3.0.0-alpha2
394
395- [new feature] JAVA-875, JAVA-882: Move secondary index metadata out of column definitions.
396
397Merged from 2.2 branch:
398
399- [bug] JAVA-847: Propagate CodecRegistry to nested UDTs.
400- [improvement] JAVA-848: Ability to store a default, shareable CodecRegistry
401 instance.
402- [bug] JAVA-880: Treat empty ByteBuffers as empty values in TupleCodec and
403 UDTCodec.
404
405
406### 3.0.0-alpha1
407
408- [new feature] JAVA-876: Support new system tables in C* 3.0.0-alpha1.
409
410Merged from 2.2 branch:
411
412- [improvement] JAVA-810: Rename DateWithoutTime to LocalDate.
413- [bug] JAVA-816: DateCodec does not format values correctly.
414- [bug] JAVA-817: TimeCodec does not format values correctly.
415- [bug] JAVA-818: TypeCodec.getDataTypeFor() does not handle LocalDate instances.
416- [improvement] JAVA-836: Make ResultSet#fetchMoreResult return a
417 ListenableFuture<ResultSet>.
418- [improvement] JAVA-843: Disable frozen checks in mapper.
419- [improvement] JAVA-721: Allow user to register custom type codecs.
420- [improvement] JAVA-722: Support custom type codecs in mapper.
421
422
423### 2.2.0-rc3
424
425- [bug] JAVA-847: Propagate CodecRegistry to nested UDTs.
426- [improvement] JAVA-848: Ability to store a default, shareable CodecRegistry
427 instance.
428- [bug] JAVA-880: Treat empty ByteBuffers as empty values in TupleCodec and
429 UDTCodec.
430
431
432### 2.2.0-rc2
433
434- [improvement] JAVA-810: Rename DateWithoutTime to LocalDate.
435- [bug] JAVA-816: DateCodec does not format values correctly.
436- [bug] JAVA-817: TimeCodec does not format values correctly.
437- [bug] JAVA-818: TypeCodec.getDataTypeFor() does not handle LocalDate instances.
438- [improvement] JAVA-836: Make ResultSet#fetchMoreResult return a
439 ListenableFuture<ResultSet>.
440- [improvement] JAVA-843: Disable frozen checks in mapper.
441- [improvement] JAVA-721: Allow user to register custom type codecs.
442- [improvement] JAVA-722: Support custom type codecs in mapper.
443
444Merged from 2.1 branch:
445
446- [bug] JAVA-834: Special case check for 'null' string in index_options column.
447- [improvement] JAVA-835: Allow accessor methods with less parameters in case
448 named bind markers are repeated.
449- [improvement] JAVA-475: Improve QueryBuilder API for SELECT DISTINCT.
450- [improvement] JAVA-715: Make NativeColumnType a top-level class.
451- [improvement] JAVA-700: Expose ProtocolVersion#toInt.
452- [bug] JAVA-542: Handle void return types in accessors.
453- [improvement] JAVA-225: Create values() function for Insert builder using List.
454- [improvement] JAVA-713: HashMap throws an OOM Exception when logging level is set to TRACE.
455- [bug] JAVA-679: Support bind marker in QueryBuilder DELETE's list index.
456- [improvement] JAVA-732: Expose KEYS and FULL indexing options in IndexMetadata.
457- [improvement] JAVA-589: Allow @Enumerated in Accessor method parameters.
458- [improvement] JAVA-554: Allow access to table metadata from Mapper.
459- [improvement] JAVA-661: Provide a way to map computed fields.
460- [improvement] JAVA-824: Ignore missing columns in mapper.
461- [bug] JAVA-724: Preserve default timestamp for retries and speculative executions.
462- [improvement] JAVA-738: Use same pool implementation for protocol v2 and v3.
463- [improvement] JAVA-677: Support CONTAINS / CONTAINS KEY in QueryBuilder.
464- [improvement] JAVA-477/JAVA-540: Add USING options in mapper for delete and save
465 operations.
466- [improvement] JAVA-473: Add mapper option to configure whether to save null fields.
467
468Merged from 2.0 branch:
469
470- [bug] JAVA-737: DowngradingConsistencyRetryPolicy ignores write timeouts.
471- [bug] JAVA-736: Forbid bind marker in QueryBuilder add/append/prepend.
472- [bug] JAVA-712: Prevent QueryBuilder.quote() from applying duplicate double quotes.
473- [bug] JAVA-688: Prevent QueryBuilder from trying to serialize raw string.
474- [bug] JAVA-679: Support bind marker in QueryBuilder DELETE's list index.
475- [improvement] JAVA-475: Improve QueryBuilder API for SELECT DISTINCT.
476- [improvement] JAVA-225: Create values() function for Insert builder using List.
477- [improvement] JAVA-702: Warn when ReplicationStrategy encounters invalid
478 replication factors.
479- [improvement] JAVA-662: Add PoolingOptions method to set both core and max
480 connections.
481- [improvement] JAVA-766: Do not include epoll JAR in binary distribution.
482- [improvement] JAVA-726: Optimize internal copies of Request objects.
483- [bug] JAVA-815: Preserve tracing across retries.
484- [improvement] JAVA-709: New RetryDecision.tryNextHost().
485- [bug] JAVA-733: Handle function calls and raw strings as non-idempotent in QueryBuilder.
486
487
488### 2.2.0-rc1
489
490- [new feature] JAVA-783: Protocol V4 enum support.
491- [new feature] JAVA-776: Use PK columns in protocol v4 PREPARED response.
492- [new feature] JAVA-777: Distinguish NULL and UNSET values.
493- [new feature] JAVA-779: Add k/v payload for 3rd party usage.
494- [new feature] JAVA-780: Expose server-side warnings on ExecutionInfo.
495- [new feature] JAVA-749: Expose new read/write failure exceptions.
496- [new feature] JAVA-747: Expose function and aggregate metadata.
497- [new feature] JAVA-778: Add new client exception for CQL function failure.
498- [improvement] JAVA-700: Expose ProtocolVersion#toInt.
499- [new feature] JAVA-404: Support new C* 2.2 CQL date and time types.
500
501Merged from 2.1 branch:
502
503- [improvement] JAVA-782: Unify "Target" enum for schema elements.
504
505
506### 2.1.10.2
507
508Merged from 2.0 branch:
509
510- [bug] JAVA-1179: Request objects should be copied when executed.
511- [improvement] JAVA-1182: Throw error when synchronous call made on I/O thread.
512- [bug] JAVA-1184: Unwrap StatementWrappers when extracting column definitions.
513
514
515### 2.1.10.1
516
517- [bug] JAVA-1152: Fix NPE at ControlConnection.refreshNodeListAndTokenMap().
518- [bug] JAVA-1156: Fix NPE at TableMetadata.equals().
519
520
521### 2.1.10
522
523- [bug] JAVA-988: Metadata.handleId should handle escaped double quotes.
524- [bug] JAVA-983: QueryBuilder cannot handle collections containing function calls.
525- [improvement] JAVA-863: Idempotence propagation in PreparedStatements.
526- [bug] JAVA-937: TypeCodec static initializers not always correctly executed.
527- [improvement] JAVA-989: Include keyspace name when invalid replication found when generating token map.
528- [improvement] JAVA-664: Reduce heap consumption for TokenMap.
529- [improvement] JAVA-1030: Log token to replica map computation times.
530- [bug] JAVA-1039: Minor bugs in Event Debouncer.
531- [improvement] JAVA-843: Disable frozen checks in mapper.
532- [improvement] JAVA-833: Improve message when a nested type can't be serialized.
533- [improvement] JAVA-1011: Expose PoolingOptions default values.
534- [improvement] JAVA-630: Don't process DOWN events for nodes that have active connections.
535- [improvement] JAVA-851: Improve UUIDs javadoc with regard to user-provided timestamps.
536- [improvement] JAVA-979: Update javadoc for RegularStatement toString() and getQueryString() to indicate that consistency level and other parameters are not maintained in the query string.
537- [improvement] JAVA-1038: Fetch node info by rpc_address if its broadcast_address is not in system.peers.
538- [improvement] JAVA-974: Validate accessor parameter types against bound statement.
539- [bug] JAVA-1068: Unwrap StatementWrappers when hashing the paging state.
540- [bug] JAVA-831: Mapper can't load an entity where the PK is a UDT.
541- [improvement] JAVA-1021: Improve error message when connect() is called with an invalid keyspace name.
542- [improvement] JAVA-879: Mapper.map() accepts mapper-generated and user queries.
543- [bug] JAVA-1100: Exception when connecting with shaded java driver in OSGI
544- [bug] JAVA-819: Expose more errors in RetryPolicy + provide idempotent-aware wrapper.
545- [improvement] JAVA-1040: SimpleStatement parameters support in QueryLogger.
546- [bug] JAVA-1064: getTable create statement doesn't properly handle quotes in primary key.
547- [improvement] JAVA-888: Add cluster-wide percentile tracker.
548- [improvement] JAVA-963: Automatically register PercentileTracker from components that use it.
549- [bug] JAVA-1089: Set LWT made from BuiltStatements to non-idempotent.
550- [improvement] JAVA-923: Position idempotent flag on object mapper queries.
551- [new feature] JAVA-1019: SchemaBuilder support for CREATE/ALTER/DROP KEYSPACE.
552- [bug] JAVA-1070: The Mapper should not prepare queries synchronously.
553- [new feature] JAVA-982: Introduce new method ConsistencyLevel.isSerial().
554- [bug] JAVA-764: Retry with the normal consistency level (not the serial one) when a write times out on the Paxos phase.
555- [bug] JAVA-727: Allow monotonic timestamp generators to drift in the future + use microsecond precision when possible.
556- [improvement] JAVA-444: Add Java process information to UUIDs.makeNode() hash.
557- [improvement] JAVA-977: Preserve original cause when BuiltStatement value can't be serialized.
558- [bug] JAVA-1094: Backport TypeCodec parse and format fixes from 3.0.
559- [improvement] JAVA-852: Ignore peers with null entries during discovery.
560- [bug] JAVA-1132: Executing bound statement with no variables results in exception with protocol v1.
561- [bug] JAVA-1005: DowngradingConsistencyRetryPolicy does not work with EACH_QUORUM when 1 DC is down.
562- [bug] JAVA-1002: Avoid deadlock when re-preparing a statement on other hosts.
563
564Merged from 2.0 branch:
565
566- [bug] JAVA-994: Don't call on(Up|Down|Add|Remove) methods if Cluster is closed/closing.
567- [improvement] JAVA-805: Document that metrics are null until Cluster is initialized.
568- [bug] JAVA-1072: Ensure defunct connections are properly evicted from the pool.
569
570
571### 2.1.9
572
573- [bug] JAVA-942: Fix implementation of UserType.hashCode().
574- [bug] JAVA-854: avoid early return in Cluster.init when a node doesn't support the protocol version.
575- [bug] JAVA-978: Fix quoting issue that caused Mapper.getTableMetadata() to return null.
576
577Merged from 2.0 branch:
578
579- [bug] JAVA-950: Fix Cluster.connect with a case-sensitive keyspace.
580- [improvement] JAVA-920: Downgrade "error creating pool" message to WARN.
581- [bug] JAVA-954: Don't trigger reconnection before initialization complete.
582- [improvement] JAVA-914: Avoid rejected tasks at shutdown.
583- [improvement] JAVA-921: Add SimpleStatement.getValuesCount().
584- [bug] JAVA-901: Move call to connection.release() out of cancelHandler.
585- [bug] JAVA-960: Avoid race in control connection shutdown.
586- [bug] JAVA-656: Fix NPE in ControlConnection.updateLocationInfo.
587- [bug] JAVA-966: Count uninitialized connections in conviction policy.
588- [improvement] JAVA-917: Document SSL configuration.
589- [improvement] JAVA-652: Add DCAwareRoundRobinPolicy builder.
590- [improvement] JAVA-808: Add generic filtering policy that can be used to exclude specific DCs.
591
592
593### 2.1.8
594
595Merged from 2.0 branch:
596
597- [improvement] JAVA-718: Log streamid at the trace level on sending request and receiving response.
598
599- [bug] JAVA-796: Fix SpeculativeExecutionPolicy.init() and close() are never called.
600- [improvement] JAVA-710: Suppress unnecessary warning at shutdown.
601- [improvement] #340: Allow DNS name with multiple A-records as contact point.
602- [bug] JAVA-794: Allow tracing across multiple result pages.
603- [bug] JAVA-737: DowngradingConsistencyRetryPolicy ignores write timeouts.
604- [bug] JAVA-736: Forbid bind marker in QueryBuilder add/append/prepend.
605- [bug] JAVA-712: Prevent QueryBuilder.quote() from applying duplicate double quotes.
606- [bug] JAVA-688: Prevent QueryBuilder from trying to serialize raw string.
607- [bug] JAVA-679: Support bind marker in QueryBuilder DELETE's list index.
608- [improvement] JAVA-475: Improve QueryBuilder API for SELECT DISTINCT.
609- [improvement] JAVA-225: Create values() function for Insert builder using List.
610- [improvement] JAVA-702: Warn when ReplicationStrategy encounters invalid
611 replication factors.
612- [improvement] JAVA-662: Add PoolingOptions method to set both core and max
613 connections.
614- [improvement] JAVA-766: Do not include epoll JAR in binary distribution.
615- [improvement] JAVA-726: Optimize internal copies of Request objects.
616- [bug] JAVA-815: Preserve tracing across retries.
617- [improvement] JAVA-709: New RetryDecision.tryNextHost().
618- [bug] JAVA-733: Handle function calls and raw strings as non-idempotent in QueryBuilder.
619- [improvement] JAVA-765: Provide API to retrieve values of a Parameterized SimpleStatement.
620- [improvement] JAVA-827: implement UPDATE .. IF EXISTS in QueryBuilder.
621- [improvement] JAVA-618: Randomize contact points list to prevent hotspots.
622- [improvement] JAVA-720: Surface the coordinator used on query failure.
623- [bug] JAVA-792: Handle contact points removed during init.
624- [improvement] JAVA-719: Allow PlainTextAuthProvider to change its credentials at runtime.
625- [new feature] JAVA-151: Make it possible to register for SchemaChange Events.
626- [improvement] JAVA-861: Downgrade "Asked to rebuild table" log from ERROR to INFO level.
627- [improvement] JAVA-797: Provide an option to prepare statements only on one node.
628- [improvement] JAVA-658: Provide an option to not re-prepare all statements in onUp.
629- [improvement] JAVA-853: Customizable creation of netty timer.
630- [bug] JAVA-859: Avoid quadratic ring processing with invalid replication factors.
631- [improvement] JAVA-657: Debounce control connection queries.
632- [bug] JAVA-784: LoadBalancingPolicy.distance() called before init().
633- [new feature] JAVA-828: Make driver-side metadata optional.
634- [improvement] JAVA-544: Allow hosts to remain partially up.
635- [improvement] JAVA-821, JAVA-822: Remove internal blocking calls and expose async session
636 creation.
637- [improvement] JAVA-725: Use parallel calls when re-preparing statement on other
638 hosts.
639- [bug] JAVA-629: Don't use connection timeout for unrelated internal queries.
640- [bug] JAVA-892: Fix NPE in speculative executions when metrics disabled.
641
642
643### 2.1.7.1
644
645- [bug] JAVA-834: Special case check for 'null' string in index_options column.
646- [improvement] JAVA-835: Allow accessor methods with less parameters in case
647 named bind markers are repeated.
648
649
650### 2.1.7
651
652- [improvement] JAVA-475: Improve QueryBuilder API for SELECT DISTINCT.
653- [improvement] JAVA-715: Make NativeColumnType a top-level class.
654- [improvement] JAVA-782: Unify "Target" enum for schema elements.
655- [improvement] JAVA-700: Expose ProtocolVersion#toInt.
656- [bug] JAVA-542: Handle void return types in accessors.
657- [improvement] JAVA-225: Create values() function for Insert builder using List.
658- [improvement] JAVA-713: HashMap throws an OOM Exception when logging level is set to TRACE.
659- [bug] JAVA-679: Support bind marker in QueryBuilder DELETE's list index.
660- [improvement] JAVA-732: Expose KEYS and FULL indexing options in IndexMetadata.
661- [improvement] JAVA-589: Allow @Enumerated in Accessor method parameters.
662- [improvement] JAVA-554: Allow access to table metadata from Mapper.
663- [improvement] JAVA-661: Provide a way to map computed fields.
664- [improvement] JAVA-824: Ignore missing columns in mapper.
665- [bug] JAVA-724: Preserve default timestamp for retries and speculative executions.
666- [improvement] JAVA-738: Use same pool implementation for protocol v2 and v3.
667- [improvement] JAVA-677: Support CONTAINS / CONTAINS KEY in QueryBuilder.
668- [improvement] JAVA-477/JAVA-540: Add USING options in mapper for delete and save
669 operations.
670- [improvement] JAVA-473: Add mapper option to configure whether to save null fields.
671
672Merged from 2.0 branch:
673
674- [bug] JAVA-737: DowngradingConsistencyRetryPolicy ignores write timeouts.
675- [bug] JAVA-736: Forbid bind marker in QueryBuilder add/append/prepend.
676- [bug] JAVA-712: Prevent QueryBuilder.quote() from applying duplicate double quotes.
677- [bug] JAVA-688: Prevent QueryBuilder from trying to serialize raw string.
678- [bug] JAVA-679: Support bind marker in QueryBuilder DELETE's list index.
679- [improvement] JAVA-475: Improve QueryBuilder API for SELECT DISTINCT.
680- [improvement] JAVA-225: Create values() function for Insert builder using List.
681- [improvement] JAVA-702: Warn when ReplicationStrategy encounters invalid
682 replication factors.
683- [improvement] JAVA-662: Add PoolingOptions method to set both core and max
684 connections.
685- [improvement] JAVA-766: Do not include epoll JAR in binary distribution.
686- [improvement] JAVA-726: Optimize internal copies of Request objects.
687- [bug] JAVA-815: Preserve tracing across retries.
688- [improvement] JAVA-709: New RetryDecision.tryNextHost().
689- [bug] JAVA-733: Handle function calls and raw strings as non-idempotent in QueryBuilder.
690
691
692### 2.1.6
693
694Merged from 2.0 branch:
695
696- [new feature] JAVA-584: Add getObject to BoundStatement and Row.
697- [improvement] JAVA-419: Improve connection pool resizing algorithm.
698- [bug] JAVA-599: Fix race condition between pool expansion and shutdown.
699- [improvement] JAVA-622: Upgrade Netty to 4.0.27.
700- [improvement] JAVA-562: Coalesce frames before flushing them to the connection.
701- [improvement] JAVA-583: Rename threads to indicate that they are for the driver.
702- [new feature] JAVA-550: Expose paging state.
703- [new feature] JAVA-646: Slow Query Logger.
704- [improvement] JAVA-698: Exclude some errors from measurements in LatencyAwarePolicy.
705- [bug] JAVA-641: Fix issue when executing a PreparedStatement from another cluster.
706- [improvement] JAVA-534: Log keyspace xxx does not exist at WARN level.
707- [improvement] JAVA-619: Allow Cluster subclasses to delegate to another instance.
708- [new feature] JAVA-669: Expose an API to check for schema agreement after a
709 schema-altering statement.
710- [improvement] JAVA-692: Make connection and pool creation fully async.
711- [improvement] JAVA-505: Optimize connection use after reconnection.
712- [improvement] JAVA-617: Remove "suspected" mechanism.
713- [improvement] reverts JAVA-425: Don't mark connection defunct on client timeout.
714- [new feature] JAVA-561: Speculative query executions.
715- [bug] JAVA-666: Release connection before completing the ResultSetFuture.
716- [new feature BETA] JAVA-723: Percentile-based variant of query logger and speculative
717 executions.
718- [bug] JAVA-734: Fix buffer leaks when compression is enabled.
719- [improvement] JAVA-756: Use Netty's pooled ByteBufAllocator by default.
720- [improvement] JAVA-759: Expose "unsafe" paging state API.
721- [bug] JAVA-768: Prevent race during pool initialization.
722
723
724### 2.1.5
725
726- [bug] JAVA-575: Authorize Null parameter in Accessor method.
727- [improvement] JAVA-570: Support C* 2.1.3's nested collections.
728- [bug] JAVA-612: Fix checks on mapped collection types.
729- [bug] JAVA-672: Fix QueryBuilder.putAll() when the collection contains UDTs.
730
731Merged from 2.0 branch:
732
733- [new feature] JAVA-518: Add AddressTranslater for EC2 multi-region deployment.
734- [improvement] JAVA-533: Add connection heartbeat.
735- [improvement] JAVA-568: Reduce level of logs on missing rpc_address.
736- [improvement] JAVA-312, JAVA-681: Expose node token and range information.
737- [bug] JAVA-595: Fix cluster name mismatch check at startup.
738- [bug] JAVA-620: Fix guava dependency when using OSGI.
739- [bug] JAVA-678: Fix handling of DROP events when ks name is case-sensitive.
740- [improvement] JAVA-631: Use List<?> instead of List<Object> in QueryBuilder API.
741- [improvement] JAVA-654: Exclude Netty POM from META-INF in shaded JAR.
742- [bug] JAVA-655: Quote single quotes contained in table comments in asCQLQuery method.
743- [bug] JAVA-684: Empty TokenRange returned in a one token cluster.
744- [improvement] JAVA-687: Expose TokenRange#contains.
745- [bug] JAVA-614: Prevent race between cancellation and query completion.
746- [bug] JAVA-632: Prevent cancel and timeout from cancelling unrelated ResponseHandler if
747 streamId was already released and reused.
748- [bug] JAVA-642: Fix issue when newly opened pool fails before we could mark the node UP.
749- [bug] JAVA-613: Fix unwanted LBP notifications when a contact host is down.
750- [bug] JAVA-651: Fix edge cases where a connection was released twice.
751- [bug] JAVA-653: Fix edge cases in query cancellation.
752
753
754### 2.1.4
755
756Merged from 2.0 branch:
757
758- [improvement] JAVA-538: Shade Netty dependency.
759- [improvement] JAVA-543: Target schema refreshes more precisely.
760- [bug] JAVA-546: Don't check rpc_address for control host.
761- [improvement] JAVA-409: Improve message of NoHostAvailableException.
762- [bug] JAVA-556: Rework connection reaper to avoid deadlock.
763- [bug] JAVA-557: Avoid deadlock when multiple connections to the same host get write
764 errors.
765- [improvement] JAVA-504: Make shuffle=true the default for TokenAwarePolicy.
766- [bug] JAVA-577: Fix bug when SUSPECT reconnection succeeds, but one of the pooled
767 connections fails while bringing the node back up.
768- [bug] JAVA-419: JAVA-587: Prevent faulty control connection from ignoring reconnecting hosts.
769- temporarily revert "Add idle timeout to the connection pool".
770- [bug] JAVA-593: Ensure updateCreatedPools does not add pools for suspected hosts.
771- [bug] JAVA-594: Ensure state change notifications for a given host are handled serially.
772- [bug] JAVA-597: Ensure control connection reconnects when control host is removed.
773
774
775### 2.1.3
776
777- [bug] JAVA-510: Ignore static fields in mapper.
778- [bug] JAVA-509: Fix UDT parsing at init when using the default protocol version.
779- [bug] JAVA-495: Fix toString, equals and hashCode on accessor proxies.
780- [bug] JAVA-528: Allow empty name on Column and Field annotations.
781
782Merged from 2.0 branch:
783
784- [bug] JAVA-497: Ensure control connection does not trigger concurrent reconnects.
785- [improvement] JAVA-472: Keep trying to reconnect on authentication errors.
786- [improvement] JAVA-463: Expose close method on load balancing policy.
787- [improvement] JAVA-459: Allow load balancing policy to trigger refresh for a single host.
788- [bug] JAVA-493: Expose an API to cancel reconnection attempts.
789- [bug] JAVA-503: Fix NPE when a connection fails during pool construction.
790- [improvement] JAVA-423: Log datacenter name in DCAware policy's init when it is explicitly provided.
791- [improvement] JAVA-504: Shuffle the replicas in TokenAwarePolicy.newQueryPlan.
792- [improvement] JAVA-507: Make schema agreement wait tuneable.
793- [improvement] JAVA-494: Document how to inject the driver metrics into another registry.
794- [improvement] JAVA-419: Add idle timeout to the connection pool.
795- [bug] JAVA-516: LatencyAwarePolicy does not shutdown executor on invocation of close.
796- [improvement] JAVA-451: Throw an exception when DCAwareRoundRobinPolicy is built with
797 an explicit but null or empty local datacenter.
798- [bug] JAVA-511: Fix check for local contact points in DCAware policy's init.
799- [improvement] JAVA-457: Make timeout on saturated pool customizable.
800- [improvement] JAVA-521: Downgrade Guava to 14.0.1.
801- [bug] JAVA-526: Fix token awareness for case-sensitive keyspaces and tables.
802- [bug] JAVA-515: Check maximum number of values passed to SimpleStatement.
803- [improvement] JAVA-532: Expose the driver version through the API.
804- [improvement] JAVA-522: Optimize session initialization when some hosts are not
805 responsive.
806
807
808### 2.1.2
809
810- [improvement] JAVA-361, JAVA-364, JAVA-467: Support for native protocol v3.
811- [bug] JAVA-454: Fix UDT fields of type inet in QueryBuilder.
812- [bug] JAVA-455: Exclude transient fields from Frozen checks.
813- [bug] JAVA-453: Fix handling of null collections in mapper.
814- [improvement] JAVA-452: Make implicit column names case-insensitive in mapper.
815- [bug] JAVA-433: Fix named bind markers in QueryBuilder.
816- [bug] JAVA-458: Fix handling of BigInteger in object mapper.
817- [bug] JAVA-465: Ignore synthetic fields in mapper.
818- [improvement] JAVA-451: Throw an exception when DCAwareRoundRobinPolicy is built with
819 an explicit but null or empty local datacenter.
820- [improvement] JAVA-469: Add backwards-compatible DataType.serialize methods.
821- [bug] JAVA-487: Handle null enum fields in object mapper.
822- [bug] JAVA-499: Handle null UDT fields in object mapper.
823
824Merged from 2.0 branch:
825
826- [bug] JAVA-449: Handle null pool in PooledConnection.release.
827- [improvement] JAVA-425: Defunct connection on request timeout.
828- [improvement] JAVA-426: Try next host when we get a SERVER_ERROR.
829- [bug] JAVA-449, JAVA-460, JAVA-471: Handle race between query timeout and completion.
830- [bug] JAVA-496: Fix DCAwareRoundRobinPolicy datacenter auto-discovery.
831
832
833### 2.1.1
834
835- [new] JAVA-441: Support for new "frozen" keyword.
836
837Merged from 2.0 branch:
838
839- [bug] JAVA-397: Check cluster name when connecting to a new node.
840- [bug] JAVA-326: Add missing CAS delete support in QueryBuilder.
841- [bug] JAVA-363: Add collection and data length checks during serialization.
842- [improvement] JAVA-329: Surface number of retries in metrics.
843- [bug] JAVA-428: Do not use a host when no rpc_address found for it.
844- [improvement] JAVA-358: Add ResultSet.wasApplied() for conditional queries.
845- [bug] JAVA-349: Fix negative HostConnectionPool open count.
846- [improvement] JAVA-436: Log more connection details at trace and debug levels.
847- [bug] JAVA-445: Fix cluster shutdown.
848
849
850### 2.1.0
851
852- [bug] JAVA-408: ClusteringColumn annotation not working with specified ordering.
853- [improvement] JAVA-410: Fail BoundStatement if null values are not set explicitly.
854- [bug] JAVA-416: Handle UDT and tuples in BuiltStatement.toString.
855
856Merged from 2.0 branch:
857
858- [bug] JAVA-407: Release connections on ResultSetFuture#cancel.
859- [bug] JAVA-393: Fix handling of SimpleStatement with values in query builder
860 batches.
861- [bug] JAVA-417: Ensure pool is properly closed in onDown.
862- [bug] JAVA-415: Fix tokenMap initialization at startup.
863- [bug] JAVA-418: Avoid deadlock on close.
864
865
866### 2.1.0-rc1
867
868Merged from 2.0 branch:
869
870- [bug] JAVA-394: Ensure defunct connections are completely closed.
871- [bug] JAVA-342, JAVA-390: Fix memory and resource leak on closed Sessions.
872
873
874### 2.1.0-beta1
875
876- [new] Support for User Defined Types and tuples
877- [new] Simple object mapper
878
879Merged from 2.0 branch: everything up to 2.0.3 (included), and the following.
880
881- [improvement] JAVA-204: Better handling of dead connections.
882- [bug] JAVA-373: Fix potential NPE in ControlConnection.
883- [bug] JAVA-291: Throws NPE when passed null for a contact point.
884- [bug] JAVA-315: Avoid LoadBalancingPolicy onDown+onUp at startup.
885- [bug] JAVA-343: Avoid classloader leak in Tomcat.
886- [bug] JAVA-387: Avoid deadlock in onAdd/onUp.
887- [bug] JAVA-377, JAVA-391: Make metadata parsing more lenient.
888
889
890### 2.0.12.2
891
892- [bug] JAVA-1179: Request objects should be copied when executed.
893- [improvement] JAVA-1182: Throw error when synchronous call made on I/O thread.
894- [bug] JAVA-1184: Unwrap StatementWrappers when extracting column definitions.
895
896
897### 2.0.12.1
898
899- [bug] JAVA-994: Don't call on(Up|Down|Add|Remove) methods if Cluster is closed/closing.
900- [improvement] JAVA-805: Document that metrics are null until Cluster is initialized.
901- [bug] JAVA-1072: Ensure defunct connections are properly evicted from the pool.
902
903
904### 2.0.12
905
906- [bug] JAVA-950: Fix Cluster.connect with a case-sensitive keyspace.
907- [improvement] JAVA-920: Downgrade "error creating pool" message to WARN.
908- [bug] JAVA-954: Don't trigger reconnection before initialization complete.
909- [improvement] JAVA-914: Avoid rejected tasks at shutdown.
910- [improvement] JAVA-921: Add SimpleStatement.getValuesCount().
911- [bug] JAVA-901: Move call to connection.release() out of cancelHandler.
912- [bug] JAVA-960: Avoid race in control connection shutdown.
913- [bug] JAVA-656: Fix NPE in ControlConnection.updateLocationInfo.
914- [bug] JAVA-966: Count uninitialized connections in conviction policy.
915- [improvement] JAVA-917: Document SSL configuration.
916- [improvement] JAVA-652: Add DCAwareRoundRobinPolicy builder.
917- [improvement] JAVA-808: Add generic filtering policy that can be used to exclude specific DCs.
918
919
920### 2.0.11
921
922- [improvement] JAVA-718: Log streamid at the trace level on sending request and receiving response.
923- [bug] JAVA-796: Fix SpeculativeExecutionPolicy.init() and close() are never called.
924- [improvement] JAVA-710: Suppress unnecessary warning at shutdown.
925- [improvement] #340: Allow DNS name with multiple A-records as contact point.
926- [bug] JAVA-794: Allow tracing across multiple result pages.
927- [bug] JAVA-737: DowngradingConsistencyRetryPolicy ignores write timeouts.
928- [bug] JAVA-736: Forbid bind marker in QueryBuilder add/append/prepend.
929- [bug] JAVA-712: Prevent QueryBuilder.quote() from applying duplicate double quotes.
930- [bug] JAVA-688: Prevent QueryBuilder from trying to serialize raw string.
931- [bug] JAVA-679: Support bind marker in QueryBuilder DELETE's list index.
932- [improvement] JAVA-475: Improve QueryBuilder API for SELECT DISTINCT.
933- [improvement] JAVA-225: Create values() function for Insert builder using List.
934- [improvement] JAVA-702: Warn when ReplicationStrategy encounters invalid
935 replication factors.
936- [improvement] JAVA-662: Add PoolingOptions method to set both core and max
937 connections.
938- [improvement] JAVA-766: Do not include epoll JAR in binary distribution.
939- [improvement] JAVA-726: Optimize internal copies of Request objects.
940- [bug] JAVA-815: Preserve tracing across retries.
941- [improvement] JAVA-709: New RetryDecision.tryNextHost().
942- [bug] JAVA-733: Handle function calls and raw strings as non-idempotent in QueryBuilder.
943- [improvement] JAVA-765: Provide API to retrieve values of a Parameterized SimpleStatement.
944- [improvement] JAVA-827: implement UPDATE .. IF EXISTS in QueryBuilder.
945- [improvement] JAVA-618: Randomize contact points list to prevent hotspots.
946- [improvement] JAVA-720: Surface the coordinator used on query failure.
947- [bug] JAVA-792: Handle contact points removed during init.
948- [improvement] JAVA-719: Allow PlainTextAuthProvider to change its credentials at runtime.
949- [new feature] JAVA-151: Make it possible to register for SchemaChange Events.
950- [improvement] JAVA-861: Downgrade "Asked to rebuild table" log from ERROR to INFO level.
951- [improvement] JAVA-797: Provide an option to prepare statements only on one node.
952- [improvement] JAVA-658: Provide an option to not re-prepare all statements in onUp.
953- [improvement] JAVA-853: Customizable creation of netty timer.
954- [bug] JAVA-859: Avoid quadratic ring processing with invalid replication factors.
955- [improvement] JAVA-657: Debounce control connection queries.
956- [bug] JAVA-784: LoadBalancingPolicy.distance() called before init().
957- [new feature] JAVA-828: Make driver-side metadata optional.
958- [improvement] JAVA-544: Allow hosts to remain partially up.
959- [improvement] JAVA-821, JAVA-822: Remove internal blocking calls and expose async session
960 creation.
961- [improvement] JAVA-725: Use parallel calls when re-preparing statement on other
962 hosts.
963- [bug] JAVA-629: Don't use connection timeout for unrelated internal queries.
964- [bug] JAVA-892: Fix NPE in speculative executions when metrics disabled.
965
966Merged from 2.0.10_fixes branch:
967
968- [improvement] JAVA-756: Use Netty's pooled ByteBufAllocator by default.
969- [improvement] JAVA-759: Expose "unsafe" paging state API.
970- [bug] JAVA-767: Fix getObject by name.
971- [bug] JAVA-768: Prevent race during pool initialization.
972
973
974### 2.0.10.1
975
976- [improvement] JAVA-756: Use Netty's pooled ByteBufAllocator by default.
977- [improvement] JAVA-759: Expose "unsafe" paging state API.
978- [bug] JAVA-767: Fix getObject by name.
979- [bug] JAVA-768: Prevent race during pool initialization.
980
981
982### 2.0.10
983
984- [new feature] JAVA-518: Add AddressTranslater for EC2 multi-region deployment.
985- [improvement] JAVA-533: Add connection heartbeat.
986- [improvement] JAVA-568: Reduce level of logs on missing rpc_address.
987- [improvement] JAVA-312, JAVA-681: Expose node token and range information.
988- [bug] JAVA-595: Fix cluster name mismatch check at startup.
989- [bug] JAVA-620: Fix guava dependency when using OSGI.
990- [bug] JAVA-678: Fix handling of DROP events when ks name is case-sensitive.
991- [improvement] JAVA-631: Use List<?> instead of List<Object> in QueryBuilder API.
992- [improvement] JAVA-654: Exclude Netty POM from META-INF in shaded JAR.
993- [bug] JAVA-655: Quote single quotes contained in table comments in asCQLQuery method.
994- [bug] JAVA-684: Empty TokenRange returned in a one token cluster.
995- [improvement] JAVA-687: Expose TokenRange#contains.
996- [new feature] JAVA-547: Expose values of BoundStatement.
997- [new feature] JAVA-584: Add getObject to BoundStatement and Row.
998- [improvement] JAVA-419: Improve connection pool resizing algorithm.
999- [bug] JAVA-599: Fix race condition between pool expansion and shutdown.
1000- [improvement] JAVA-622: Upgrade Netty to 4.0.27.
1001- [improvement] JAVA-562: Coalesce frames before flushing them to the connection.
1002- [improvement] JAVA-583: Rename threads to indicate that they are for the driver.
1003- [new feature] JAVA-550: Expose paging state.
1004- [new feature] JAVA-646: Slow Query Logger.
1005- [improvement] JAVA-698: Exclude some errors from measurements in LatencyAwarePolicy.
1006- [bug] JAVA-641: Fix issue when executing a PreparedStatement from another cluster.
1007- [improvement] JAVA-534: Log keyspace xxx does not exist at WARN level.
1008- [improvement] JAVA-619: Allow Cluster subclasses to delegate to another instance.
1009- [new feature] JAVA-669: Expose an API to check for schema agreement after a
1010 schema-altering statement.
1011- [improvement] JAVA-692: Make connection and pool creation fully async.
1012- [improvement] JAVA-505: Optimize connection use after reconnection.
1013- [improvement] JAVA-617: Remove "suspected" mechanism.
1014- [improvement] reverts JAVA-425: Don't mark connection defunct on client timeout.
1015- [new feature] JAVA-561: Speculative query executions.
1016- [bug] JAVA-666: Release connection before completing the ResultSetFuture.
1017- [new feature BETA] JAVA-723: Percentile-based variant of query logger and speculative
1018 executions.
1019- [bug] JAVA-734: Fix buffer leaks when compression is enabled.
1020
1021Merged from 2.0.9_fixes branch:
1022
1023- [bug] JAVA-614: Prevent race between cancellation and query completion.
1024- [bug] JAVA-632: Prevent cancel and timeout from cancelling unrelated ResponseHandler if
1025 streamId was already released and reused.
1026- [bug] JAVA-642: Fix issue when newly opened pool fails before we could mark the node UP.
1027- [bug] JAVA-613: Fix unwanted LBP notifications when a contact host is down.
1028- [bug] JAVA-651: Fix edge cases where a connection was released twice.
1029- [bug] JAVA-653: Fix edge cases in query cancellation.
1030
1031
1032### 2.0.9.2
1033
1034- [bug] JAVA-651: Fix edge cases where a connection was released twice.
1035- [bug] JAVA-653: Fix edge cases in query cancellation.
1036
1037
1038### 2.0.9.1
1039
1040- [bug] JAVA-614: Prevent race between cancellation and query completion.
1041- [bug] JAVA-632: Prevent cancel and timeout from cancelling unrelated ResponseHandler if
1042 streamId was already released and reused.
1043- [bug] JAVA-642: Fix issue when newly opened pool fails before we could mark the node UP.
1044- [bug] JAVA-613: Fix unwanted LBP notifications when a contact host is down.
1045
1046
1047### 2.0.9
1048
1049- [improvement] JAVA-538: Shade Netty dependency.
1050- [improvement] JAVA-543: Target schema refreshes more precisely.
1051- [bug] JAVA-546: Don't check rpc_address for control host.
1052- [improvement] JAVA-409: Improve message of NoHostAvailableException.
1053- [bug] JAVA-556: Rework connection reaper to avoid deadlock.
1054- [bug] JAVA-557: Avoid deadlock when multiple connections to the same host get write
1055 errors.
1056- [improvement] JAVA-504: Make shuffle=true the default for TokenAwarePolicy.
1057- [bug] JAVA-577: Fix bug when SUSPECT reconnection succeeds, but one of the pooled
1058 connections fails while bringing the node back up.
1059- [bug] JAVA-419: JAVA-587: Prevent faulty control connection from ignoring reconnecting hosts.
1060- temporarily revert "Add idle timeout to the connection pool".
1061- [bug] JAVA-593: Ensure updateCreatedPools does not add pools for suspected hosts.
1062- [bug] JAVA-594: Ensure state change notifications for a given host are handled serially.
1063- [bug] JAVA-597: Ensure control connection reconnects when control host is removed.
1064
1065
1066### 2.0.8
1067
1068- [bug] JAVA-526: Fix token awareness for case-sensitive keyspaces and tables.
1069- [bug] JAVA-515: Check maximum number of values passed to SimpleStatement.
1070- [improvement] JAVA-532: Expose the driver version through the API.
1071- [improvement] JAVA-522: Optimize session initialization when some hosts are not
1072 responsive.
1073
1074
1075### 2.0.7
1076
1077- [bug] JAVA-449: Handle null pool in PooledConnection.release.
1078- [improvement] JAVA-425: Defunct connection on request timeout.
1079- [improvement] JAVA-426: Try next host when we get a SERVER_ERROR.
1080- [bug] JAVA-449, JAVA-460, JAVA-471: Handle race between query timeout and completion.
1081- [bug] JAVA-496: Fix DCAwareRoundRobinPolicy datacenter auto-discovery.
1082- [bug] JAVA-497: Ensure control connection does not trigger concurrent reconnects.
1083- [improvement] JAVA-472: Keep trying to reconnect on authentication errors.
1084- [improvement] JAVA-463: Expose close method on load balancing policy.
1085- [improvement] JAVA-459: Allow load balancing policy to trigger refresh for a single host.
1086- [bug] JAVA-493: Expose an API to cancel reconnection attempts.
1087- [bug] JAVA-503: Fix NPE when a connection fails during pool construction.
1088- [improvement] JAVA-423: Log datacenter name in DCAware policy's init when it is explicitly provided.
1089- [improvement] JAVA-504: Shuffle the replicas in TokenAwarePolicy.newQueryPlan.
1090- [improvement] JAVA-507: Make schema agreement wait tuneable.
1091- [improvement] JAVA-494: Document how to inject the driver metrics into another registry.
1092- [improvement] JAVA-419: Add idle timeout to the connection pool.
1093- [bug] JAVA-516: LatencyAwarePolicy does not shutdown executor on invocation of close.
1094- [improvement] JAVA-451: Throw an exception when DCAwareRoundRobinPolicy is built with
1095 an explicit but null or empty local datacenter.
1096- [bug] JAVA-511: Fix check for local contact points in DCAware policy's init.
1097- [improvement] JAVA-457: Make timeout on saturated pool customizable.
1098- [improvement] JAVA-521: Downgrade Guava to 14.0.1.
1099
1100
1101### 2.0.6
1102
1103- [bug] JAVA-397: Check cluster name when connecting to a new node.
1104- [bug] JAVA-326: Add missing CAS delete support in QueryBuilder.
1105- [bug] JAVA-363: Add collection and data length checks during serialization.
1106- [improvement] JAVA-329: Surface number of retries in metrics.
1107- [bug] JAVA-428: Do not use a host when no rpc_address found for it.
1108- [improvement] JAVA-358: Add ResultSet.wasApplied() for conditional queries.
1109- [bug] JAVA-349: Fix negative HostConnectionPool open count.
1110- [improvement] JAVA-436: Log more connection details at trace and debug levels.
1111- [bug] JAVA-445: Fix cluster shutdown.
1112- [improvement] JAVA-439: Expose child policy in chainable load balancing policies.
1113
1114
1115### 2.0.5
1116
1117- [bug] JAVA-407: Release connections on ResultSetFuture#cancel.
1118- [bug] JAVA-393: Fix handling of SimpleStatement with values in query builder
1119 batches.
1120- [bug] JAVA-417: Ensure pool is properly closed in onDown.
1121- [bug] JAVA-415: Fix tokenMap initialization at startup.
1122- [bug] JAVA-418: Avoid deadlock on close.
1123
1124
1125### 2.0.4
1126
1127- [improvement] JAVA-204: Better handling of dead connections.
1128- [bug] JAVA-373: Fix potential NPE in ControlConnection.
1129- [bug] JAVA-291: Throws NPE when passed null for a contact point.
1130- [bug] JAVA-315: Avoid LoadBalancingPolicy onDown+onUp at startup.
1131- [bug] JAVA-343: Avoid classloader leak in Tomcat.
1132- [bug] JAVA-387: Avoid deadlock in onAdd/onUp.
1133- [bug] JAVA-377, JAVA-391: Make metadata parsing more lenient.
1134- [bug] JAVA-394: Ensure defunct connections are completely closed.
1135- [bug] JAVA-342, JAVA-390: Fix memory and resource leak on closed Sessions.
1136
1137
1138### 2.0.3
1139
1140- [new] The new AbsractSession makes mocking of Session easier.
1141- [new] JAVA-309: Allow to trigger a refresh of connected hosts.
1142- [new] JAVA-265: New Session#getState method allows to grab information on
1143 which nodes a session is connected to.
1144- [new] JAVA-327: Add QueryBuilder syntax for tuples in where clauses (syntax
1145 introduced in Cassandra 2.0.6).
1146- [improvement] JAVA-359: Properly validate arguments of PoolingOptions methods.
1147- [bug] JAVA-368: Fix bogus rejection of BigInteger in 'execute with values'.
1148- [bug] JAVA-367: Signal connection failure sooner to avoid missing them.
1149- [bug] JAVA-337: Throw UnsupportedOperationException for protocol batch
1150 setSerialCL.
1151
1152Merged from 1.0 branch:
1153
1154- [bug] JAVA-325: Fix periodic reconnection to down hosts.
1155
1156
1157### 2.0.2
1158
1159- [api] The type of the map key returned by NoHostAvailable#getErrors has changed from
1160 InetAddress to InetSocketAddress. Same for Initializer#getContactPoints return and
1161 for AuthProvider#newAuthenticator.
1162- [api] JAVA-296: The default load balacing policy is now DCAwareRoundRobinPolicy, and the local
1163 datacenter is automatically picked based on the first connected node. Furthermore,
1164 the TokenAwarePolicy is also used by default.
1165- [new] JAVA-145: New optional AddressTranslater.
1166- [bug] JAVA-321: Don't remove quotes on keyspace in the query builder.
1167- [bug] JAVA-320: Fix potential NPE while cluster undergo schema changes.
1168- [bug] JAVA-319: Fix thread-safety of page fetching.
1169- [bug] JAVA-318: Fix potential NPE using fetchMoreResults.
1170
1171Merged from 1.0 branch:
1172
1173- [new] JAVA-179: Expose the name of the partitioner in use in the cluster metadata.
1174- [new] Add new WhiteListPolicy to limit the nodes connected to a particular list.
1175- [improvement] JAVA-289: Do not hop DC for LOCAL_* CL in DCAwareRoundRobinPolicy.
1176- [bug] JAVA-313: Revert back to longs for dates in the query builder.
1177- [bug] JAVA-314: Don't reconnect to nodes ignored by the load balancing policy.
1178
1179
1180### 2.0.1
1181
1182- [improvement] JAVA-278: Handle the static columns introduced in Cassandra 2.0.6.
1183- [improvement] JAVA-208: Add Cluster#newSession method to create Session without connecting
1184 right away.
1185- [bug] JAVA-279: Add missing iso8601 patterns for parsing dates.
1186- [bug] Properly parse BytesType as the blob type.
1187- [bug] JAVA-280: Potential NPE when parsing schema of pre-CQL tables of C* 1.2 nodes.
1188
1189Merged from 1.0 branch:
1190
1191- [bug] JAVA-275: LatencyAwarePolicy.Builder#withScale doesn't set the scale.
1192- [new] JAVA-114: Add methods to check if a Cluster/Session instance has been closed already.
1193
1194
1195### 2.0.0
1196
1197- [api] JAVA-269: Case sensitive identifier by default in Metadata.
1198- [bug] JAVA-274: Fix potential NPE in Cluster#connect.
1199
1200Merged from 1.0 branch:
1201
1202- [bug] JAVA-263: Always return the PreparedStatement object that is cache internally.
1203- [bug] JAVA-261: Fix race when multiple connect are done in parallel.
1204- [bug] JAVA-270: Don't connect at all to nodes that are ignored by the load balancing
1205 policy.
1206
1207
1208### 2.0.0-rc3
1209
1210- [improvement] The protocol version 1 is now supported (features only supported by the
1211 version 2 of the protocol throw UnsupportedFeatureException).
1212- [improvement] JAVA-195: Make most main objects interface to facilitate testing/mocking.
1213- [improvement] Adds new getStatements and clear methods to BatchStatement.
1214- [api] JAVA-247: Renamed shutdown to closeAsync and ShutdownFuture to CloseFuture. Clustering
1215 and Session also now implement Closeable.
1216- [bug] JAVA-232: Fix potential thread leaks when shutting down Metrics.
1217- [bug] JAVA-231: Fix potential NPE in HostConnectionPool.
1218- [bug] JAVA-244: Avoid NPE when node is in an unconfigured DC.
1219- [bug] JAVA-258: Don't block for scheduled reconnections on Cluster#close.
1220
1221Merged from 1.0 branch:
1222
1223- [new] JAVA-224: Added Session#prepareAsync calls.
1224- [new] JAVA-249: Added Cluster#getLoggedKeyspace.
1225- [improvement] Avoid preparing a statement multiple time per host with multiple sessions.
1226- [bug] JAVA-255: Make sure connections are returned to the right pools.
1227- [bug] JAVA-264: Use date string in query build to work-around CASSANDRA-6718.
1228
1229
1230### 2.0.0-rc2
1231
1232- [new] JAVA-207: Add LOCAL_ONE consistency level support (requires using C* 2.0.2+).
1233- [bug] JAVA-219: Fix parsing of counter types.
1234- [bug] JAVA-218: Fix missing whitespace for IN clause in the query builder.
1235- [bug] JAVA-221: Fix replicas computation for token aware balancing.
1236
1237Merged from 1.0 branch:
1238
1239- [bug] JAVA-213: Fix regression from JAVA-201.
1240- [improvement] New getter to obtain a snapshot of the scores maintained by
1241 LatencyAwarePolicy.
1242
1243
1244### 2.0.0-rc1
1245
1246- [new] JAVA-199: Mark compression dependencies optional in maven.
1247- [api] Renamed TableMetadata#getClusteringKey to TableMetadata#getClusteringColumns.
1248
1249Merged from 1.0 branch:
1250
1251- [new] JAVA-142: OSGi bundle.
1252- [improvement] JAVA-205: Make collections returned by Row immutable.
1253- [improvement] JAVA-203: Limit internal thread pool size.
1254- [bug] JAVA-201: Don't retain unused PreparedStatement in memory.
1255- [bug] Add missing clustering order info in TableMetadata
1256- [bug] JAVA-196: Allow bind markers for collections in the query builder.
1257
1258
1259### 2.0.0-beta2
1260
1261- [api] BoundStatement#setX(String, X) methods now set all values (if there is
1262 more than one) having the provided name, not just the first occurence.
1263- [api] The Authenticator interface now has a onAuthenticationSuccess method that
1264 allows to handle the potential last token sent by the server.
1265- [new] The query builder don't serialize large values to strings anymore by
1266 default by making use the new ability to send values alongside the query string.
1267- [new] JAVA-140: The query builder has been updated for new CQL features.
1268- [bug] Fix exception when a conditional write timeout C* side.
1269- [bug] JAVA-182: Ensure connection is created when Cluster metadata are asked for.
1270- [bug] JAVA-187: Fix potential NPE during authentication.
1271
1272
1273### 2.0.0-beta1
1274
1275- [api] The 2.0 version is an API-breaking upgrade of the driver. While most
1276 of the breaking changes are minor, there are too numerous to be listed here
1277 and you are encouraged to look at the Upgrade_guide_to_2.0 file that describe
1278 those changes in details.
1279- [new] LZ4 compression is supported for the protocol.
1280- [new] JAVA-39: The driver does not depend on cassandra-all anymore.
1281- [new] New BatchStatement class allows to execute batch other statements.
1282- [new] Large ResultSet are now paged (incrementally fetched) by default.
1283- [new] SimpleStatement support values for bind-variables, to allow
1284 prepare+execute behavior with one roundtrip.
1285- [new] Query parameters defaults (Consistency level, page size, ...) can be
1286 configured globally.
1287- [new] New Cassandra 2.0 SERIAL and LOCAL_SERIAL consistency levels are
1288 supported.
1289- [new] JAVA-116: Cluster#shutdown now waits for ongoing queries to complete by default.
1290- [new] Generic authentication through SASL is now exposed.
1291- [bug] JAVA-88: TokenAwarePolicy now takes all replica into account, instead of only the
1292 first one.
1293
1294
1295### 1.0.5
1296
1297- [new] JAVA-142: OSGi bundle.
1298- [new] JAVA-207: Add support for ConsistencyLevel.LOCAL_ONE; note that this
1299 require Cassandra 1.2.12+.
1300- [improvement] JAVA-205: Make collections returned by Row immutable.
1301- [improvement] JAVA-203: Limit internal thread pool size.
1302- [improvement] New getter to obtain a snapshot of the scores maintained by
1303 LatencyAwarePolicy.
1304- [improvement] JAVA-222: Avoid synchronization when getting codec for collection
1305 types.
1306- [bug] JAVA-201, JAVA-213: Don't retain unused PreparedStatement in memory.
1307- [bug] Add missing clustering order info in TableMetadata
1308- [bug] JAVA-196: Allow bind markers for collections in the query builder.
1309
1310
1311### 1.0.4
1312
1313- [api] JAVA-163: The Cluster.Builder#poolingOptions and Cluster.Builder#socketOptions
1314 are now deprecated. They are replaced by the new withPoolingOptions and
1315 withSocketOptions methods.
1316- [new] JAVA-129: A new LatencyAwarePolicy wrapping policy has been added, allowing to
1317 add latency awareness to a wrapped load balancing policy.
1318- [new] JAVA-161: Cluster.Builder#deferInitialization: Allow defering cluster initialization.
1319- [new] JAVA-117: Add truncate statement in query builder.
1320- [new] JAVA-106: Support empty IN in the query builder.
1321- [bug] JAVA-166: Fix spurious "No current pool set; this should not happen" error
1322 message.
1323- [bug] JAVA-184: Fix potential overflow in RoundRobinPolicy and correctly errors if
1324 a balancing policy throws.
1325- [bug] Don't release Stream ID for timeouted queries (unless we do get back
1326 the response)
1327- [bug] Correctly escape identifiers and use fully qualified table names when
1328 exporting schema as string.
1329
1330
1331### 1.0.3
1332
1333- [api] The query builder now correctly throw an exception when given a value
1334 of a type it doesn't know about.
1335- [new] SocketOptions#setReadTimeout allows to set a timeout on how long we
1336 wait for the answer of one node. See the javadoc for more details.
1337- [new] New Session#prepare method that takes a Statement.
1338- [bug] JAVA-143: Always take per-query CL, tracing, etc. into account for QueryBuilder
1339 statements.
1340- [bug] Temporary fixup for TimestampType when talking to C* 2.0 nodes.
1341
1342
1343### 1.0.2
1344
1345- [api] Host#getMonitor and all Host.HealthMonitor methods have been
1346 deprecated. The new Host#isUp method is now prefered to the method
1347 in the monitor and you should now register Host.StateListener against
1348 the Cluster object directly (registering against a host HealthMonitor
1349 was much more limited anyway).
1350- [new] JAVA-92: New serialize/deserialize methods in DataType to serialize/deserialize
1351 values to/from bytes.
1352- [new] JAVA-128: New getIndexOf() method in ColumnDefinitions to find the index of
1353 a given column name.
1354- [bug] JAVA-131: Fix a bug when thread could get blocked while setting the current
1355 keyspace.
1356- [bug] JAVA-136: Quote inet addresses in the query builder since CQL3 requires it.
1357
1358
1359### 1.0.1
1360
1361- [api] JAVA-100: Function call handling in the query builder has been modified in a
1362 backward incompatible way. Function calls are not parsed from string values
1363 anymore as this wasn't safe. Instead the new 'fcall' method should be used.
1364- [api] Some typos in method names in PoolingOptions have been fixed in a
1365 backward incompatible way before the API get widespread.
1366- [bug] JAVA-123: Don't destroy composite partition key with BoundStatement and
1367 TokenAwarePolicy.
1368- [new] null values support in the query builder.
1369- [new] JAVA-5: SSL support (requires C* >= 1.2.1).
1370- [new] JAVA-113: Allow generating unlogged batch in the query builder.
1371- [improvement] Better error message when no host are available.
1372- [improvement] Improves performance of the stress example application been.
1373
1374
1375### 1.0.0
1376
1377- [api] The AuthInfoProvider has be (temporarily) removed. Instead, the
1378 Cluster builder has a new withCredentials() method to provide a username
1379 and password for use with Cassandra's PasswordAuthenticator. Custom
1380 authenticator will be re-introduced in a future version but are not
1381 supported at the moment.
1382- [api] The isMetricsEnabled() method in Configuration has been replaced by
1383 getMetricsOptions(). An option to disabled JMX reporting (on by default)
1384 has been added.
1385- [bug] JAVA-91: Don't make default load balancing policy a static singleton since it
1386 is stateful.
1387
1388
1389### 1.0.0-RC1
1390
1391- [new] JAVA-79: Null values are now supported in BoundStatement (but you will need at
1392 least Cassandra 1.2.3 for it to work). The API of BoundStatement has been
1393 slightly changed so that not binding a variable is not an error anymore,
1394 the variable is simply considered null by default. The isReady() method has
1395 been removed.
1396- [improvement] JAVA-75: The Cluster/Session shutdown methods now properly block until
1397 the shutdown is complete. A version with at timeout has been added.
1398- [bug] JAVA-44: Fix use of CQL3 functions in the query builder.
1399- [bug] JAVA-77: Fix case where multiple schema changes too quickly wouldn't work
1400 (only triggered when 0.0.0.0 was used for the rpc_address on the Cassandra
1401 nodes).
1402- [bug] JAVA-72: Fix IllegalStateException thrown due to a reconnection made on an I/O
1403 thread.
1404- [bug] JAVA-82: Correctly reports errors during authentication phase.
1405
1406
1407### 1.0.0-beta2
1408
1409- [new] JAVA-51, JAVA-60, JAVA-58: Support blob constants, BigInteger, BigDecimal and counter batches in
1410 the query builder.
1411- [new] JAVA-61: Basic support for custom CQL3 types.
1412- [new] JAVA-65: Add "execution infos" for a result set (this also move the query
1413 trace in the new ExecutionInfos object, so users of beta1 will have to
1414 update).
1415- [bug] JAVA-62: Fix failover bug in DCAwareRoundRobinPolicy.
1416- [bug] JAVA-66: Fix use of bind markers for routing keys in the query builder.
1417
1418
1419### 1.0.0-beta1
1420
1421- initial release