Elffuss BraidHub

kikocis/java-driver public

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