Elffuss BraidHub

kikocis/java-driver public

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