Elffuss BraidHub

kikocis/java-driver public

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