Elffuss BraidHub

kikocis/java-driver public

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