Elffuss BraidHub

kikocis/java-driver public

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