Elffuss BraidHub

kikocis/java-driver public

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