Elffuss BraidHub

kikocis/java-driver public

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