Elffuss BraidHub

kikocis/java-driver public

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