Elffuss BraidHub

kikocis/java-driver public

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