Elffuss BraidHub

kikocis/java-driver public

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