Elffuss BraidHub

kikocis/java-driver public

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