Elffuss BraidHub

kikocis/java-driver public

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