Elffuss BraidHub

kikocis/java-driver public

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