Elffuss BraidHub

kikocis/java-driver public

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