Elffuss BraidHub

kikocis/java-driver public

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