Elffuss BraidHub

kikocis/java-driver public

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