Elffuss BraidHub

kikocis/java-driver public

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