Elffuss BraidHub

kikocis/java-driver public

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