Elffuss BraidHub

kikocis/java-driver public

81b76d1ea060 · 17.6 KiBRawPermalink
1CHANGELOG
2=========
3
42.1.2:
5------
6
7- [improvement] Support for native protocol v3 (JAVA-361, JAVA-364, JAVA-467)
8- [bug] Fix UDT fields of type inet in QueryBuilder (JAVA-454)
9- [bug] Exclude transient fields from Frozen checks (JAVA-455)
10- [bug] Fix handling of null collections in mapper (JAVA-453)
11- [improvement] Make implicit column names case-insensitive in mapper (JAVA-452)
12- [bug] Fix named bind markers in QueryBuilder (JAVA-433)
13- [bug] Fix handling of BigInteger in object mapper (JAVA-458)
14- [bug] Ignore synthetic fields in mapper (JAVA-465)
15- [improvement] Throw an exception when DCAwareRoundRobinPolicy is built with
16 an explicit but null or empty local datacenter (JAVA-451)
17- [improvement] Add backwards-compatible DataType.serialize methods (JAVA-469)
18
19Merged from 2.0 branch:
20
21- [bug] Handle null pool in PooledConnection.release (JAVA-449)
22- [improvement] Defunct connection on request timeout (JAVA-425)
23- [improvement] Try next host when we get a SERVER_ERROR (JAVA-426)
24- [bug] Handle race between query timeout and completion (JAVA-449, JAVA-460, JAVA-471)
25
26
272.1.1:
28------
29
30- [new] Support for new "frozen" keyword (JAVA-441)
31
32Merged from 2.0 branch:
33
34- [bug] Check cluster name when connecting to a new node (JAVA-397)
35- [bug] Add missing CAS delete support in QueryBuilder (JAVA-326)
36- [bug] Add collection and data length checks during serialization (JAVA-363)
37- [improvement] Surface number of retries in metrics (JAVA-329)
38- [bug] Do not use a host when no rpc_address found for it (JAVA-428)
39- [improvement] Add ResultSet.wasApplied() for conditional queries (JAVA-358)
40- [bug] Fix negative HostConnectionPool open count (JAVA-349)
41- [improvement] Log more connection details at trace and debug levels (JAVA-436)
42- [bug] Fix cluster shutdown (JAVA-445)
43
44
452.1.0:
46------
47
48- [bug] ClusteringColumn annotation not working with specified ordering (JAVA-408)
49- [improvement] Fail BoundStatement if null values are not set explicitly (JAVA-410)
50- [bug] Handle UDT and tuples in BuiltStatement.toString (JAVA-416)
51
52Merged from 2.0 branch:
53
54- [bug] Release connections on ResultSetFuture#cancel (JAVA-407)
55- [bug] Fix handling of SimpleStatement with values in query builder
56 batches (JAVA-393)
57- [bug] Ensure pool is properly closed in onDown (JAVA-417)
58- [bug] Fix tokenMap initialization at startup (JAVA-415)
59- [bug] Avoid deadlock on close (JAVA-418)
60
61
622.1.0-rc1:
63----------
64
65Merged from 2.0 branch:
66
67- [bug] Ensure defunct connections are completely closed (JAVA-394)
68- [bug] Fix memory and resource leak on closed Sessions (JAVA-342, JAVA-390)
69
70
712.1.0-beta1:
72------------
73
74- [new] Support for User Defined Types and tuples
75- [new] Simple object mapper
76
77Merged from 2.0 branch: everything up to 2.0.3 (included), and the following.
78
79- [improvement] Better handling of dead connections (JAVA-204)
80- [bug] Fix potential NPE in ControlConnection (JAVA-373)
81- [bug] Throws NPE when passed null for a contact point (JAVA-291)
82- [bug] Avoid LoadBalancingPolicy onDown+onUp at startup (JAVA-315)
83- [bug] Avoid classloader leak in Tomcat (JAVA-343)
84- [bug] Avoid deadlock in onAdd/onUp (JAVA-387)
85- [bug] Make metadata parsing more lenient (JAVA-377, JAVA-391)
86
87
882.0.7:
89------
90
91- [bug] Handle null pool in PooledConnection.release (JAVA-449)
92- [improvement] Defunct connection on request timeout (JAVA-425)
93- [improvement] Try next host when we get a SERVER_ERROR (JAVA-426)
94- [bug] Handle race between query timeout and completion (JAVA-449, JAVA-460, JAVA-471)
95
96
972.0.6:
98------
99
100- [bug] Check cluster name when connecting to a new node (JAVA-397)
101- [bug] Add missing CAS delete support in QueryBuilder (JAVA-326)
102- [bug] Add collection and data length checks during serialization (JAVA-363)
103- [improvement] Surface number of retries in metrics (JAVA-329)
104- [bug] Do not use a host when no rpc_address found for it (JAVA-428)
105- [improvement] Add ResultSet.wasApplied() for conditional queries (JAVA-358)
106- [bug] Fix negative HostConnectionPool open count (JAVA-349)
107- [improvement] Log more connection details at trace and debug levels (JAVA-436)
108- [bug] Fix cluster shutdown (JAVA-445)
109- [improvement] Expose child policy in chainable load balancing policies (JAVA-439)
110
111
112
1132.0.5:
114------
115
116- [bug] Release connections on ResultSetFuture#cancel (JAVA-407)
117- [bug] Fix handling of SimpleStatement with values in query builder
118 batches (JAVA-393)
119- [bug] Ensure pool is properly closed in onDown (JAVA-417)
120- [bug] Fix tokenMap initialization at startup (JAVA-415)
121- [bug] Avoid deadlock on close (JAVA-418)
122
123
1242.0.4:
125------
126
127- [improvement] Better handling of dead connections (JAVA-204)
128- [bug] Fix potential NPE in ControlConnection (JAVA-373)
129- [bug] Throws NPE when passed null for a contact point (JAVA-291)
130- [bug] Avoid LoadBalancingPolicy onDown+onUp at startup (JAVA-315)
131- [bug] Avoid classloader leak in Tomcat (JAVA-343)
132- [bug] Avoid deadlock in onAdd/onUp (JAVA-387)
133- [bug] Make metadata parsing more lenient (JAVA-377, JAVA-391)
134- [bug] Ensure defunct connections are completely closed (JAVA-394)
135- [bug] Fix memory and resource leak on closed Sessions (JAVA-342, JAVA-390)
136
137
1382.0.3:
139------
140
141- [new] The new AbsractSession makes mocking of Session easier.
142- [new] Allow to trigger a refresh of connected hosts (JAVA-309)
143- [new] New Session#getState method allows to grab information on
144 which nodes a session is connected to (JAVA-265)
145- [new] Add QueryBuilder syntax for tuples in where clauses (syntax
146 introduced in Cassandra 2.0.6) (JAVA-327)
147- [improvement] Properly validate arguments of PoolingOptions methods
148 (JAVA-359)
149- [bug] Fix bogus rejection of BigInteger in 'execute with values'
150 (JAVA-368)
151- [bug] Signal connection failure sooner to avoid missing them
152 (JAVA-367)
153- [bug] Throw UnsupportedOperationException for protocol batch
154 setSerialCL (JAVA-337)
155
156Merged from 1.0 branch:
157
158- [bug] Fix periodic reconnection to down hosts (JAVA-325)
159
160
1612.0.2:
162------
163
164- [api] The type of the map key returned by NoHostAvailable#getErrors has changed from
165 InetAddress to InetSocketAddress. Same for Initializer#getContactPoints return and
166 for AuthProvider#newAuthenticator.
167- [api] The default load balacing policy is now DCAwareRoundRobinPolicy, and the local
168 datacenter is automatically picked based on the first connected node. Furthermore,
169 the TokenAwarePolicy is also used by default (JAVA-296)
170- [new] New optional AddressTranslater (JAVA-145)
171- [bug] Don't remove quotes on keyspace in the query builder (JAVA-321)
172- [bug] Fix potential NPE while cluster undergo schema changes (JAVA-320)
173- [bug] Fix thread-safety of page fetching (JAVA-319)
174- [bug] Fix potential NPE using fetchMoreResults (JAVA-318)
175
176Merged from 1.0 branch:
177
178- [new] Expose the name of the partitioner in use in the cluster metadata (JAVA-179)
179- [new] Add new WhiteListPolicy to limit the nodes connected to a particular list
180- [improvement] Do not hop DC for LOCAL_* CL in DCAwareRoundRobinPolicy (JAVA-289)
181- [bug] Revert back to longs for dates in the query builder (JAVA-313)
182- [bug] Don't reconnect to nodes ignored by the load balancing policy (JAVA-314)
183
184
1852.0.1:
186------
187
188- [improvement] Handle the static columns introduced in Cassandra 2.0.6 (JAVA-278)
189- [improvement] Add Cluster#newSession method to create Session without connecting
190 right away (JAVA-208)
191- [bug] Add missing iso8601 patterns for parsing dates (JAVA-279)
192- [bug] Properly parse BytesType as the blob type
193- [bug] Potential NPE when parsing schema of pre-CQL tables of C* 1.2 nodes (JAVA-280)
194
195Merged from 1.0 branch:
196
197- [bug] LatencyAwarePolicy.Builder#withScale doesn't set the scale (JAVA-275)
198- [new] Add methods to check if a Cluster/Session instance has been closed already (JAVA-114)
199
200
2012.0.0:
202------
203
204- [api] Case sensitive identifier by default in Metadata (JAVA-269)
205- [bug] Fix potential NPE in Cluster#connect (JAVA-274)
206
207Merged from 1.0 branch:
208
209- [bug] Always return the PreparedStatement object that is cache internally (JAVA-263)
210- [bug] Fix race when multiple connect are done in parallel (JAVA-261)
211- [bug] Don't connect at all to nodes that are ignored by the load balancing
212 policy (JAVA-270)
213
214
2152.0.0-rc3:
216----------
217
218- [improvement] The protocol version 1 is now supported (features only supported by the
219 version 2 of the protocol throw UnsupportedFeatureException).
220- [improvement] Make most main objects interface to facilitate testing/mocking (JAVA-195)
221- [improvement] Adds new getStatements and clear methods to BatchStatement.
222- [api] Renamed shutdown to closeAsync and ShutdownFuture to CloseFuture. Clustering
223 and Session also now implement Closeable (JAVA-247).
224- [bug] Fix potential thread leaks when shutting down Metrics (JAVA-232)
225- [bug] Fix potential NPE in HostConnectionPool (JAVA-231)
226- [bug] Avoid NPE when node is in an unconfigured DC (JAVA-244)
227- [bug] Don't block for scheduled reconnections on Cluster#close (JAVA-258)
228
229Merged from 1.0 branch:
230
231- [new] Added Session#prepareAsync calls (JAVA-224)
232- [new] Added Cluster#getLoggedKeyspace (JAVA-249)
233- [improvement] Avoid preparing a statement multiple time per host with multiple sessions
234- [bug] Make sure connections are returned to the right pools (JAVA-255)
235- [bug] Use date string in query build to work-around CASSANDRA-6718 (JAVA-264)
236
237
2382.0.0-rc2:
239----------
240
241- [new] Add LOCAL_ONE consistency level support (requires using C* 2.0.2+) (JAVA-207)
242- [bug] Fix parsing of counter types (JAVA-219)
243- [bug] Fix missing whitespace for IN clause in the query builder (JAVA-218)
244- [bug] Fix replicas computation for token aware balancing (JAVA-221)
245
246Merged from 1.0 branch:
247
248- [bug] Fix regression from JAVA-201 (JAVA-213)
249- [improvement] New getter to obtain a snapshot of the scores maintained by
250 LatencyAwarePolicy.
251
252
2532.0.0-rc1:
254----------
255
256- [new] Mark compression dependencies optional in maven (JAVA-199).
257- [api] Renamed TableMetadata#getClusteringKey to TableMetadata#getClusteringColumns.
258
259Merged from 1.0 branch:
260
261- [new] OSGi bundle (JAVA-142)
262- [improvement] Make collections returned by Row immutable (JAVA-205)
263- [improvement] Limit internal thread pool size (JAVA-203)
264- [bug] Don't retain unused PreparedStatement in memory (JAVA-201)
265- [bug] Add missing clustering order info in TableMetadata
266- [bug] Allow bind markers for collections in the query builder (JAVA-196)
267
268
2692.0.0-beta2:
270------------
271
272- [api] BoundStatement#setX(String, X) methods now set all values (if there is
273 more than one) having the provided name, not just the first occurence.
274- [api] The Authenticator interface now has a onAuthenticationSuccess method that
275 allows to handle the potential last token sent by the server.
276- [new] The query builder don't serialize large values to strings anymore by
277 default by making use the new ability to send values alongside the query string.
278- [new] The query builder has been updated for new CQL features (JAVA-140).
279- [bug] Fix exception when a conditional write timeout C* side.
280- [bug] Ensure connection is created when Cluster metadata are asked for
281 (JAVA-182).
282- [bug] Fix potential NPE during authentication (JAVA-187)
283
284
2852.0.0-beta1:
286-----------
287
288- [api] The 2.0 version is an API-breaking upgrade of the driver. While most
289 of the breaking changes are minor, there are too numerous to be listed here
290 and you are encouraged to look at the Upgrade_guide_to_2.0 file that describe
291 those changes in details.
292- [new] LZ4 compression is supported for the protocol.
293- [new] The driver does not depend on cassandra-all anymore (JAVA-39)
294- [new] New BatchStatement class allows to execute batch other statements.
295- [new] Large ResultSet are now paged (incrementally fetched) by default.
296- [new] SimpleStatement support values for bind-variables, to allow
297 prepare+execute behavior with one roundtrip.
298- [new] Query parameters defaults (Consistency level, page size, ...) can be
299 configured globally.
300- [new] New Cassandra 2.0 SERIAL and LOCAL_SERIAL consistency levels are
301 supported.
302- [new] Cluster#shutdown now waits for ongoing queries to complete by default
303 (JAVA-116).
304- [new] Generic authentication through SASL is now exposed.
305- [bug] TokenAwarePolicy now takes all replica into account, instead of only the
306 first one (JAVA-88).
307
308
3091.0.5:
310------
311
312- [new] OSGi bundle (JAVA-142)
313- [new] Add support for ConsistencyLevel.LOCAL_ONE; note that this
314 require Cassandra 1.2.12+ (JAVA-207)
315- [improvement] Make collections returned by Row immutable (JAVA-205)
316- [improvement] Limit internal thread pool size (JAVA-203)
317- [improvement] New getter to obtain a snapshot of the scores maintained by
318 LatencyAwarePolicy.
319- [improvement] Avoid synchronization when getting codec for collection
320 types (JAVA-222)
321- [bug] Don't retain unused PreparedStatement in memory (JAVA-201, JAVA-213)
322- [bug] Add missing clustering order info in TableMetadata
323- [bug] Allow bind markers for collections in the query builder (JAVA-196)
324
325
3261.0.4:
327------
328
329- [api] The Cluster.Builder#poolingOptions and Cluster.Builder#socketOptions
330 are now deprecated. They are replaced by the new withPoolingOptions and
331 withSocketOptions methods (JAVA-163).
332- [new] A new LatencyAwarePolicy wrapping policy has been added, allowing to
333 add latency awareness to a wrapped load balancing policy (JAVA-129).
334- [new] Allow defering cluster initialization (Cluster.Builder#deferInitialization)
335 (JAVA-161)
336- [new] Add truncate statement in query builder (JAVA-117).
337- [new] Support empty IN in the query builder (JAVA-106).
338- [bug] Fix spurious "No current pool set; this should not happen" error
339 message (JAVA-166)
340- [bug] Fix potential overflow in RoundRobinPolicy and correctly errors if
341 a balancing policy throws (JAVA-184)
342- [bug] Don't release Stream ID for timeouted queries (unless we do get back
343 the response)
344- [bug] Correctly escape identifiers and use fully qualified table names when
345 exporting schema as string.
346
347
3481.0.3:
349------
350
351- [api] The query builder now correctly throw an exception when given a value
352 of a type it doesn't know about.
353- [new] SocketOptions#setReadTimeout allows to set a timeout on how long we
354 wait for the answer of one node. See the javadoc for more details.
355- [new] New Session#prepare method that takes a Statement.
356- [bug] Always take per-query CL, tracing, etc. into account for QueryBuilder
357 statements (JAVA-143).
358- [bug] Temporary fixup for TimestampType when talking to C* 2.0 nodes.
359
360
3611.0.2:
362------
363
364- [api] Host#getMonitor and all Host.HealthMonitor methods have been
365 deprecated. The new Host#isUp method is now prefered to the method
366 in the monitor and you should now register Host.StateListener against
367 the Cluster object directly (registering against a host HealthMonitor
368 was much more limited anyway).
369- [new] New serialize/deserialize methods in DataType to serialize/deserialize
370 values to/from bytes (JAVA-92).
371- [new] New getIndexOf() method in ColumnDefinitions to find the index of
372 a given column name (JAVA-128).
373- [bug] Fix a bug when thread could get blocked while setting the current
374 keyspace (JAVA-131).
375- [bug] Quote inet addresses in the query builder since CQL3 requires it
376 (JAVA-136)
377
378
3791.0.1:
380------
381
382- [api] Function call handling in the query builder has been modified in a
383 backward incompatible way. Function calls are not parsed from string values
384 anymore as this wasn't safe. Instead the new 'fcall' method should be used
385 (JAVA-100).
386- [api] Some typos in method names in PoolingOptions have been fixed in a
387 backward incompatible way before the API get widespread.
388- [bug] Don't destroy composite partition key with BoundStatement and
389 TokenAwarePolicy (JAVA-123).
390- [new] null values support in the query builder.
391- [new] SSL support (requires C* >= 1.2.1) (JAVA-5).
392- [new] Allow generating unlogged batch in the query builder (JAVA-113).
393- [improvement] Better error message when no host are available.
394- [improvement] Improves performance of the stress example application been.
395
396
3971.0.0:
398------
399
400- [api] The AuthInfoProvider has be (temporarily) removed. Instead, the
401 Cluster builder has a new withCredentials() method to provide a username
402 and password for use with Cassandra's PasswordAuthenticator. Custom
403 authenticator will be re-introduced in a future version but are not
404 supported at the moment.
405- [api] The isMetricsEnabled() method in Configuration has been replaced by
406 getMetricsOptions(). An option to disabled JMX reporting (on by default)
407 has been added.
408- [bug] Don't make default load balancing policy a static singleton since it
409 is stateful (JAVA-91).
410
411
4121.0.0-RC1:
413----------
414
415- [new] Null values are now supported in BoundStatement (but you will need at
416 least Cassandra 1.2.3 for it to work). The API of BoundStatement has been
417 slightly changed so that not binding a variable is not an error anymore,
418 the variable is simply considered null by default. The isReady() method has
419 been removed (JAVA-79).
420- [improvement] The Cluster/Session shutdown methods now properly block until
421 the shutdown is complete. A version with at timeout has been added (JAVA-75).
422- [bug] Fix use of CQL3 functions in the query builder (JAVA-44).
423- [bug] Fix case where multiple schema changes too quickly wouldn't work
424 (only triggered when 0.0.0.0 was use for the rpc_address on the Cassandra
425 nodes) (JAVA-77).
426- [bug] Fix IllegalStateException thrown due to a reconnection made on an I/O
427 thread (JAVA-72).
428- [bug] Correctly reports errors during authentication phase (JAVA-82).
429
430
4311.0.0-beta2:
432------------
433
434- [new] Support blob constants, BigInteger, BigDecimal and counter batches in
435 the query builder (JAVA-51, JAVA-60, JAVA-58)
436- [new] Basic support for custom CQL3 types (JAVA-61)
437- [new] Add "execution infos" for a result set (this also move the query
438 trace in the new ExecutionInfos object, so users of beta1 will have to
439 update) (JAVA-65)
440- [bug] Fix failover bug in DCAwareRoundRobinPolicy (JAVA-62)
441- [bug] Fix use of bind markers for routing keys in the query builder
442 (JAVA-66)
443
444
4451.0.0-beta1:
446------------
447
448- initial release