Elffuss BraidHub

kikocis/java-driver public

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