Elffuss BraidHub

kikocis/java-driver public

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