Elffuss BraidHub

kikocis/java-driver public

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