| 1 | ## Changelog |
| 2 | |
| 3 | ### 2.0.12 (in progress) |
| 4 | |
| 5 | - [bug] JAVA-950: Fix Cluster.connect with a case-sensitive keyspace. |
| 6 | - [improvement] JAVA-920: Downgrade "error creating pool" message to WARN. |
| 7 | - [bug] JAVA-954: Don't trigger reconnection before initialization complete. |
| 8 | - [improvement] JAVA-914: Avoid rejected tasks at shutdown. |
| 9 | - [improvement] JAVA-921: Add SimpleStatement.getValuesCount(). |
| 10 | - [bug] JAVA-901: Move call to connection.release() out of cancelHandler. |
| 11 | - [bug] JAVA-960: Avoid race in control connection shutdown. |
| 12 | - [bug] JAVA-656: Fix NPE in ControlConnection.updateLocationInfo. |
| 13 | - [bug] JAVA-966: Count uninitialized connections in conviction policy. |
| 14 | |
| 15 | |
| 16 | ### 2.0.11 |
| 17 | |
| 18 | - [improvement] Log streamid at the trace level on sending request and receiving response (JAVA-718) |
| 19 | - [bug] Fix SpeculativeExecutionPolicy.init() and close() are never called (JAVA-796) |
| 20 | - [improvement] Suppress unnecessary warning at shutdown (JAVA-710) |
| 21 | - [improvement] Allow DNS name with multiple A-records as contact point (#340) |
| 22 | - [bug] Allow tracing across multiple result pages (JAVA-794) |
| 23 | - [bug] DowngradingConsistencyRetryPolicy ignores write timeouts (JAVA-737) |
| 24 | - [bug] Forbid bind marker in QueryBuilder add/append/prepend (JAVA-736) |
| 25 | - [bug] Prevent QueryBuilder.quote() from applying duplicate double quotes (JAVA-712) |
| 26 | - [bug] Prevent QueryBuilder from trying to serialize raw string (JAVA-688) |
| 27 | - [bug] Support bind marker in QueryBuilder DELETE's list index (JAVA-679) |
| 28 | - [improvement] Improve QueryBuilder API for SELECT DISTINCT (JAVA-475) |
| 29 | - [improvement] Create values() function for Insert builder using List (JAVA-225) |
| 30 | - [improvement] Warn when ReplicationStrategy encounters invalid |
| 31 | replication factors (JAVA-702) |
| 32 | - [improvement] Add PoolingOptions method to set both core and max |
| 33 | connections (JAVA-662). |
| 34 | - [improvement] Do not include epoll JAR in binary distribution (JAVA-766) |
| 35 | - [improvement] Optimize internal copies of Request objects (JAVA-726) |
| 36 | - [bug] Preserve tracing across retries (JAVA-815) |
| 37 | - [improvement] New RetryDecision.tryNextHost() (JAVA-709) |
| 38 | - [bug] Handle function calls and raw strings as non-idempotent in QueryBuilder (JAVA-733) |
| 39 | - [improvement] Provide API to retrieve values of a Parameterized SimpleStatement (JAVA-765) |
| 40 | - [improvement] implement UPDATE ... IF EXISTS in QueryBuilder (JAVA-827) |
| 41 | - [improvement] Randomize contact points list to prevent hotspots (JAVA-618) |
| 42 | - [improvement] Surface the coordinator used on query failure (JAVA-720) |
| 43 | - [bug] Handle contact points removed during init (JAVA-792) |
| 44 | - [improvement] Allow PlainTextAuthProvider to change its credentials at runtime (JAVA-719) |
| 45 | - [new feature] Make it possible to register for SchemaChange Events (JAVA-151) |
| 46 | - [improvement] Downgrade "Asked to rebuild table" log from ERROR to INFO level (JAVA-861) |
| 47 | - [improvement] Provide an option to prepare statements only on one node (JAVA-797) |
| 48 | - [improvement] Provide an option to not re-prepare all statements in onUp (JAVA-658) |
| 49 | - [improvement] Customizable creation of netty timer (JAVA-853) |
| 50 | - [bug] Avoid quadratic ring processing with invalid replication factors (JAVA-859) |
| 51 | - [improvement] Debounce control connection queries (JAVA-657) |
| 52 | - [bug] LoadBalancingPolicy.distance() called before init() (JAVA-784) |
| 53 | - [new feature] Make driver-side metadata optional (JAVA-828) |
| 54 | - [improvement] Allow hosts to remain partially up (JAVA-544) |
| 55 | - [improvement] Remove internal blocking calls and expose async session |
| 56 | creation (JAVA-821, JAVA-822) |
| 57 | - [improvement] Use parallel calls when re-preparing statement on other |
| 58 | hosts (JAVA-725) |
| 59 | - [bug] Don't use connection timeout for unrelated internal queries (JAVA-629) |
| 60 | - [bug] Fix NPE in speculative executions when metrics disabled |
| 61 | (JAVA-892) |
| 62 | |
| 63 | Merged from 2.0.10_fixes branch: |
| 64 | |
| 65 | - [improvement] Use Netty's pooled ByteBufAllocator by default (JAVA-756) |
| 66 | - [improvement] Expose "unsafe" paging state API (JAVA-759) |
| 67 | - [bug] Fix getObject by name (JAVA-767) |
| 68 | - [bug] Prevent race during pool initialization (JAVA-768) |
| 69 | |
| 70 | |
| 71 | ### 2.0.10.1 |
| 72 | |
| 73 | - [improvement] Use Netty's pooled ByteBufAllocator by default (JAVA-756) |
| 74 | - [improvement] Expose "unsafe" paging state API (JAVA-759) |
| 75 | - [bug] Fix getObject by name (JAVA-767) |
| 76 | - [bug] Prevent race during pool initialization (JAVA-768) |
| 77 | |
| 78 | |
| 79 | ### 2.0.10 |
| 80 | |
| 81 | - [new feature] Add AddressTranslater for EC2 multi-region deployment (JAVA-518) |
| 82 | - [improvement] Add connection heartbeat (JAVA-533) |
| 83 | - [improvement] Reduce level of logs on missing rpc_address (JAVA-568) |
| 84 | - [improvement] Expose node token and range information (JAVA-312, JAVA-681) |
| 85 | - [bug] Fix cluster name mismatch check at startup (JAVA-595) |
| 86 | - [bug] Fix guava dependency when using OSGI (JAVA-620) |
| 87 | - [bug] Fix handling of DROP events when ks name is case-sensitive (JAVA-678) |
| 88 | - [improvement] Use List<?> instead of List<Object> in QueryBuilder API |
| 89 | (JAVA-631) |
| 90 | - [improvement] Exclude Netty POM from META-INF in shaded JAR (JAVA-654) |
| 91 | - [bug] Quote single quotes contained in table comments in asCQLQuery method |
| 92 | (JAVA-655) |
| 93 | - [bug] Empty TokenRange returned in a one token cluster (JAVA-684) |
| 94 | - [improvement] Expose TokenRange#contains (JAVA-687) |
| 95 | - [new feature] Expose values of BoundStatement (JAVA-547) |
| 96 | - [new feature] Add getObject to BoundStatement and Row (JAVA-584) |
| 97 | - [improvement] Improve connection pool resizing algorithm (JAVA-419) |
| 98 | - [bug] Fix race condition between pool expansion and shutdown (JAVA-599) |
| 99 | - [improvement] Upgrade Netty to 4.0.27 (JAVA-622) |
| 100 | - [improvement] Coalesce frames before flushing them to the connection |
| 101 | (JAVA-562) |
| 102 | - [improvement] Rename threads to indicate that they are for the driver |
| 103 | (JAVA-583) |
| 104 | - [new feature] Expose paging state (JAVA-550) |
| 105 | - [new feature] Slow Query Logger (JAVA-646) |
| 106 | - [improvement] Exclude some errors from measurements in LatencyAwarePolicy |
| 107 | (JAVA-698) |
| 108 | - [bug] Fix issue when executing a PreparedStatement from another cluster |
| 109 | (JAVA-641) |
| 110 | - [improvement] Log keyspace xxx does not exist at WARN level (JAVA-534) |
| 111 | - [improvement] Allow Cluster subclasses to delegate to another instance |
| 112 | (JAVA-619) |
| 113 | - [new feature] Expose an API to check for schema agreement after a |
| 114 | schema-altering statement (JAVA-669) |
| 115 | - [improvement] Make connection and pool creation fully async (JAVA-692) |
| 116 | - [improvement] Optimize connection use after reconnection (JAVA-505) |
| 117 | - [improvement] Remove "suspected" mechanism (JAVA-617) |
| 118 | - [improvement] Don't mark connection defunct on client timeout (reverts |
| 119 | JAVA-425) |
| 120 | - [new feature] Speculative query executions (JAVA-561) |
| 121 | - [bug] Release connection before completing the ResultSetFuture (JAVA-666) |
| 122 | - [new feature BETA] Percentile-based variant of query logger and speculative |
| 123 | executions (JAVA-723) |
| 124 | - [bug] Fix buffer leaks when compression is enabled (JAVA-734). |
| 125 | |
| 126 | Merged from 2.0.9_fixes branch: |
| 127 | |
| 128 | - [bug] Prevent race between cancellation and query completion (JAVA-614) |
| 129 | - [bug] Prevent cancel and timeout from cancelling unrelated ResponseHandler if |
| 130 | streamId was already released and reused (JAVA-632). |
| 131 | - [bug] Fix issue when newly opened pool fails before we could mark the node UP |
| 132 | (JAVA-642) |
| 133 | - [bug] Fix unwanted LBP notifications when a contact host is down (JAVA-613) |
| 134 | - [bug] Fix edge cases where a connection was released twice (JAVA-651). |
| 135 | - [bug] Fix edge cases in query cancellation (JAVA-653). |
| 136 | |
| 137 | |
| 138 | ### 2.0.9.2 |
| 139 | |
| 140 | - [bug] Fix edge cases where a connection was released twice (JAVA-651). |
| 141 | - [bug] Fix edge cases in query cancellation (JAVA-653). |
| 142 | |
| 143 | |
| 144 | ### 2.0.9.1 |
| 145 | |
| 146 | - [bug] Prevent race between cancellation and query completion (JAVA-614) |
| 147 | - [bug] Prevent cancel and timeout from cancelling unrelated ResponseHandler if |
| 148 | streamId was already released and reused (JAVA-632). |
| 149 | - [bug] Fix issue when newly opened pool fails before we could mark the node UP |
| 150 | (JAVA-642) |
| 151 | - [bug] Fix unwanted LBP notifications when a contact host is down (JAVA-613) |
| 152 | |
| 153 | |
| 154 | ### 2.0.9 |
| 155 | |
| 156 | - [improvement] Shade Netty dependency (JAVA-538) |
| 157 | - [improvement] Target schema refreshes more precisely (JAVA-543) |
| 158 | - [bug] Don't check rpc_address for control host (JAVA-546) |
| 159 | - [improvement] Improve message of NoHostAvailableException (JAVA-409) |
| 160 | - [bug] Rework connection reaper to avoid deadlock (JAVA-556) |
| 161 | - [bug] Avoid deadlock when multiple connections to the same host get write |
| 162 | errors (JAVA-557) |
| 163 | - [improvement] Make shuffle=true the default for TokenAwarePolicy (JAVA-504) |
| 164 | - [bug] Fix bug when SUSPECT reconnection succeeds, but one of the pooled |
| 165 | connections fails while bringing the node back up (JAVA-577) |
| 166 | - [bug] Prevent faulty control connection from ignoring reconnecting hosts |
| 167 | (JAVA-587) |
| 168 | - temporarily revert "Add idle timeout to the connection pool" (JAVA-419) |
| 169 | - [bug] Ensure updateCreatedPools does not add pools for suspected hosts |
| 170 | (JAVA-593) |
| 171 | - [bug] Ensure state change notifications for a given host are handled serially |
| 172 | (JAVA-594) |
| 173 | - [bug] Ensure control connection reconnects when control host is removed |
| 174 | (JAVA-597) |
| 175 | |
| 176 | |
| 177 | ### 2.0.8 |
| 178 | |
| 179 | - [bug] Fix token awareness for case-sensitive keyspaces and tables (JAVA-526) |
| 180 | - [bug] Check maximum number of values passed to SimpleStatement (JAVA-515) |
| 181 | - [improvement] Expose the driver version through the API (JAVA-532) |
| 182 | - [improvement] Optimize session initialization when some hosts are not |
| 183 | responsive (JAVA-522) |
| 184 | |
| 185 | |
| 186 | ### 2.0.7 |
| 187 | |
| 188 | - [bug] Handle null pool in PooledConnection.release (JAVA-449) |
| 189 | - [improvement] Defunct connection on request timeout (JAVA-425) |
| 190 | - [improvement] Try next host when we get a SERVER_ERROR (JAVA-426) |
| 191 | - [bug] Handle race between query timeout and completion (JAVA-449, JAVA-460, JAVA-471) |
| 192 | - [bug] Fix DCAwareRoundRobinPolicy datacenter auto-discovery (JAVA-496) |
| 193 | - [bug] Ensure control connection does not trigger concurrent reconnects (JAVA-497) |
| 194 | - [improvement] Keep trying to reconnect on authentication errors (JAVA-472) |
| 195 | - [improvement] Expose close method on load balancing policy (JAVA-463) |
| 196 | - [improvement] Allow load balancing policy to trigger refresh for a single host (JAVA-459) |
| 197 | - [bug] Expose an API to cancel reconnection attempts (JAVA-493) |
| 198 | - [bug] Fix NPE when a connection fails during pool construction (JAVA-503) |
| 199 | - [improvement] Log datacenter name in DCAware policy's init when it is explicitly provided |
| 200 | (JAVA-423) |
| 201 | - [improvement] Shuffle the replicas in TokenAwarePolicy.newQueryPlan (JAVA-504) |
| 202 | - [improvement] Make schema agreement wait tuneable (JAVA-507) |
| 203 | - [improvement] Document how to inject the driver metrics into another registry (JAVA-494) |
| 204 | - [improvement] Add idle timeout to the connection pool (JAVA-419) |
| 205 | - [bug] LatencyAwarePolicy does not shutdown executor on invocation of close (JAVA-516) |
| 206 | - [improvement] Throw an exception when DCAwareRoundRobinPolicy is built with |
| 207 | an explicit but null or empty local datacenter (JAVA-451). |
| 208 | - [bug] Fix check for local contact points in DCAware policy's init (JAVA-511) |
| 209 | - [improvement] Make timeout on saturated pool customizable (JAVA-457) |
| 210 | - [improvement] Downgrade Guava to 14.0.1 (JAVA-521) |
| 211 | |
| 212 | |
| 213 | ### 2.0.6 |
| 214 | |
| 215 | - [bug] Check cluster name when connecting to a new node (JAVA-397) |
| 216 | - [bug] Add missing CAS delete support in QueryBuilder (JAVA-326) |
| 217 | - [bug] Add collection and data length checks during serialization (JAVA-363) |
| 218 | - [improvement] Surface number of retries in metrics (JAVA-329) |
| 219 | - [bug] Do not use a host when no rpc_address found for it (JAVA-428) |
| 220 | - [improvement] Add ResultSet.wasApplied() for conditional queries (JAVA-358) |
| 221 | - [bug] Fix negative HostConnectionPool open count (JAVA-349) |
| 222 | - [improvement] Log more connection details at trace and debug levels (JAVA-436) |
| 223 | - [bug] Fix cluster shutdown (JAVA-445) |
| 224 | - [improvement] Expose child policy in chainable load balancing policies (JAVA-439) |
| 225 | |
| 226 | |
| 227 | ### 2.0.5 |
| 228 | |
| 229 | - [bug] Release connections on ResultSetFuture#cancel (JAVA-407) |
| 230 | - [bug] Fix handling of SimpleStatement with values in query builder |
| 231 | batches (JAVA-393) |
| 232 | - [bug] Ensure pool is properly closed in onDown (JAVA-417) |
| 233 | - [bug] Fix tokenMap initialization at startup (JAVA-415) |
| 234 | - [bug] Avoid deadlock on close (JAVA-418) |
| 235 | |
| 236 | |
| 237 | ### 2.0.4 |
| 238 | |
| 239 | - [improvement] Better handling of dead connections (JAVA-204) |
| 240 | - [bug] Fix potential NPE in ControlConnection (JAVA-373) |
| 241 | - [bug] Throws NPE when passed null for a contact point (JAVA-291) |
| 242 | - [bug] Avoid LoadBalancingPolicy onDown+onUp at startup (JAVA-315) |
| 243 | - [bug] Avoid classloader leak in Tomcat (JAVA-343) |
| 244 | - [bug] Avoid deadlock in onAdd/onUp (JAVA-387) |
| 245 | - [bug] Make metadata parsing more lenient (JAVA-377, JAVA-391) |
| 246 | - [bug] Ensure defunct connections are completely closed (JAVA-394) |
| 247 | - [bug] Fix memory and resource leak on closed Sessions (JAVA-342, JAVA-390) |
| 248 | |
| 249 | |
| 250 | ### 2.0.3 |
| 251 | |
| 252 | - [new] The new AbsractSession makes mocking of Session easier. |
| 253 | - [new] Allow to trigger a refresh of connected hosts (JAVA-309) |
| 254 | - [new] New Session#getState method allows to grab information on |
| 255 | which nodes a session is connected to (JAVA-265) |
| 256 | - [new] Add QueryBuilder syntax for tuples in where clauses (syntax |
| 257 | introduced in Cassandra 2.0.6) (JAVA-327) |
| 258 | - [improvement] Properly validate arguments of PoolingOptions methods |
| 259 | (JAVA-359) |
| 260 | - [bug] Fix bogus rejection of BigInteger in 'execute with values' |
| 261 | (JAVA-368) |
| 262 | - [bug] Signal connection failure sooner to avoid missing them |
| 263 | (JAVA-367) |
| 264 | - [bug] Throw UnsupportedOperationException for protocol batch |
| 265 | setSerialCL (JAVA-337) |
| 266 | |
| 267 | Merged from 1.0 branch: |
| 268 | |
| 269 | - [bug] Fix periodic reconnection to down hosts (JAVA-325) |
| 270 | |
| 271 | |
| 272 | ### 2.0.2 |
| 273 | |
| 274 | - [api] The type of the map key returned by NoHostAvailable#getErrors has changed from |
| 275 | InetAddress to InetSocketAddress. Same for Initializer#getContactPoints return and |
| 276 | for AuthProvider#newAuthenticator. |
| 277 | - [api] The default load balacing policy is now DCAwareRoundRobinPolicy, and the local |
| 278 | datacenter is automatically picked based on the first connected node. Furthermore, |
| 279 | the TokenAwarePolicy is also used by default (JAVA-296) |
| 280 | - [new] New optional AddressTranslater (JAVA-145) |
| 281 | - [bug] Don't remove quotes on keyspace in the query builder (JAVA-321) |
| 282 | - [bug] Fix potential NPE while cluster undergo schema changes (JAVA-320) |
| 283 | - [bug] Fix thread-safety of page fetching (JAVA-319) |
| 284 | - [bug] Fix potential NPE using fetchMoreResults (JAVA-318) |
| 285 | |
| 286 | Merged from 1.0 branch: |
| 287 | |
| 288 | - [new] Expose the name of the partitioner in use in the cluster metadata (JAVA-179) |
| 289 | - [new] Add new WhiteListPolicy to limit the nodes connected to a particular list |
| 290 | - [improvement] Do not hop DC for LOCAL_* CL in DCAwareRoundRobinPolicy (JAVA-289) |
| 291 | - [bug] Revert back to longs for dates in the query builder (JAVA-313) |
| 292 | - [bug] Don't reconnect to nodes ignored by the load balancing policy (JAVA-314) |
| 293 | |
| 294 | |
| 295 | ### 2.0.1 |
| 296 | |
| 297 | - [improvement] Handle the static columns introduced in Cassandra 2.0.6 (JAVA-278) |
| 298 | - [improvement] Add Cluster#newSession method to create Session without connecting |
| 299 | right away (JAVA-208) |
| 300 | - [bug] Add missing iso8601 patterns for parsing dates (JAVA-279) |
| 301 | - [bug] Properly parse BytesType as the blob type |
| 302 | - [bug] Potential NPE when parsing schema of pre-CQL tables of C* 1.2 nodes (JAVA-280) |
| 303 | |
| 304 | Merged from 1.0 branch: |
| 305 | |
| 306 | - [bug] LatencyAwarePolicy.Builder#withScale doesn't set the scale (JAVA-275) |
| 307 | - [new] Add methods to check if a Cluster/Session instance has been closed already (JAVA-114) |
| 308 | |
| 309 | |
| 310 | ### 2.0.0 |
| 311 | |
| 312 | - [api] Case sensitive identifier by default in Metadata (JAVA-269) |
| 313 | - [bug] Fix potential NPE in Cluster#connect (JAVA-274) |
| 314 | |
| 315 | Merged from 1.0 branch: |
| 316 | |
| 317 | - [bug] Always return the PreparedStatement object that is cache internally (JAVA-263) |
| 318 | - [bug] Fix race when multiple connect are done in parallel (JAVA-261) |
| 319 | - [bug] Don't connect at all to nodes that are ignored by the load balancing |
| 320 | policy (JAVA-270) |
| 321 | |
| 322 | |
| 323 | ### 2.0.0-rc3 |
| 324 | |
| 325 | - [improvement] The protocol version 1 is now supported (features only supported by the |
| 326 | version 2 of the protocol throw UnsupportedFeatureException). |
| 327 | - [improvement] Make most main objects interface to facilitate testing/mocking (JAVA-195) |
| 328 | - [improvement] Adds new getStatements and clear methods to BatchStatement. |
| 329 | - [api] Renamed shutdown to closeAsync and ShutdownFuture to CloseFuture. Clustering |
| 330 | and Session also now implement Closeable (JAVA-247). |
| 331 | - [bug] Fix potential thread leaks when shutting down Metrics (JAVA-232) |
| 332 | - [bug] Fix potential NPE in HostConnectionPool (JAVA-231) |
| 333 | - [bug] Avoid NPE when node is in an unconfigured DC (JAVA-244) |
| 334 | - [bug] Don't block for scheduled reconnections on Cluster#close (JAVA-258) |
| 335 | |
| 336 | Merged from 1.0 branch: |
| 337 | |
| 338 | - [new] Added Session#prepareAsync calls (JAVA-224) |
| 339 | - [new] Added Cluster#getLoggedKeyspace (JAVA-249) |
| 340 | - [improvement] Avoid preparing a statement multiple time per host with multiple sessions |
| 341 | - [bug] Make sure connections are returned to the right pools (JAVA-255) |
| 342 | - [bug] Use date string in query build to work-around CASSANDRA-6718 (JAVA-264) |
| 343 | |
| 344 | |
| 345 | ### 2.0.0-rc2 |
| 346 | |
| 347 | - [new] Add LOCAL_ONE consistency level support (requires using C* 2.0.2+) (JAVA-207) |
| 348 | - [bug] Fix parsing of counter types (JAVA-219) |
| 349 | - [bug] Fix missing whitespace for IN clause in the query builder (JAVA-218) |
| 350 | - [bug] Fix replicas computation for token aware balancing (JAVA-221) |
| 351 | |
| 352 | Merged from 1.0 branch: |
| 353 | |
| 354 | - [bug] Fix regression from JAVA-201 (JAVA-213) |
| 355 | - [improvement] New getter to obtain a snapshot of the scores maintained by |
| 356 | LatencyAwarePolicy. |
| 357 | |
| 358 | |
| 359 | ### 2.0.0-rc1 |
| 360 | |
| 361 | - [new] Mark compression dependencies optional in maven (JAVA-199). |
| 362 | - [api] Renamed TableMetadata#getClusteringKey to TableMetadata#getClusteringColumns. |
| 363 | |
| 364 | Merged from 1.0 branch: |
| 365 | |
| 366 | - [new] OSGi bundle (JAVA-142) |
| 367 | - [improvement] Make collections returned by Row immutable (JAVA-205) |
| 368 | - [improvement] Limit internal thread pool size (JAVA-203) |
| 369 | - [bug] Don't retain unused PreparedStatement in memory (JAVA-201) |
| 370 | - [bug] Add missing clustering order info in TableMetadata |
| 371 | - [bug] Allow bind markers for collections in the query builder (JAVA-196) |
| 372 | |
| 373 | |
| 374 | ### 2.0.0-beta2 |
| 375 | |
| 376 | - [api] BoundStatement#setX(String, X) methods now set all values (if there is |
| 377 | more than one) having the provided name, not just the first occurence. |
| 378 | - [api] The Authenticator interface now has a onAuthenticationSuccess method that |
| 379 | allows to handle the potential last token sent by the server. |
| 380 | - [new] The query builder don't serialize large values to strings anymore by |
| 381 | default by making use the new ability to send values alongside the query string. |
| 382 | - [new] The query builder has been updated for new CQL features (JAVA-140). |
| 383 | - [bug] Fix exception when a conditional write timeout C* side. |
| 384 | - [bug] Ensure connection is created when Cluster metadata are asked for |
| 385 | (JAVA-182). |
| 386 | - [bug] Fix potential NPE during authentication (JAVA-187) |
| 387 | |
| 388 | |
| 389 | ### 2.0.0-beta1 |
| 390 | |
| 391 | - [api] The 2.0 version is an API-breaking upgrade of the driver. While most |
| 392 | of the breaking changes are minor, there are too numerous to be listed here |
| 393 | and you are encouraged to look at the Upgrade_guide_to_2.0 file that describe |
| 394 | those changes in details. |
| 395 | - [new] LZ4 compression is supported for the protocol. |
| 396 | - [new] The driver does not depend on cassandra-all anymore (JAVA-39) |
| 397 | - [new] New BatchStatement class allows to execute batch other statements. |
| 398 | - [new] Large ResultSet are now paged (incrementally fetched) by default. |
| 399 | - [new] SimpleStatement support values for bind-variables, to allow |
| 400 | prepare+execute behavior with one roundtrip. |
| 401 | - [new] Query parameters defaults (Consistency level, page size, ...) can be |
| 402 | configured globally. |
| 403 | - [new] New Cassandra 2.0 SERIAL and LOCAL_SERIAL consistency levels are |
| 404 | supported. |
| 405 | - [new] Cluster#shutdown now waits for ongoing queries to complete by default |
| 406 | (JAVA-116). |
| 407 | - [new] Generic authentication through SASL is now exposed. |
| 408 | - [bug] TokenAwarePolicy now takes all replica into account, instead of only the |
| 409 | first one (JAVA-88). |
| 410 | |
| 411 | |
| 412 | ### 1.0.5 |
| 413 | |
| 414 | - [new] OSGi bundle (JAVA-142) |
| 415 | - [new] Add support for ConsistencyLevel.LOCAL_ONE; note that this |
| 416 | require Cassandra 1.2.12+ (JAVA-207) |
| 417 | - [improvement] Make collections returned by Row immutable (JAVA-205) |
| 418 | - [improvement] Limit internal thread pool size (JAVA-203) |
| 419 | - [improvement] New getter to obtain a snapshot of the scores maintained by |
| 420 | LatencyAwarePolicy. |
| 421 | - [improvement] Avoid synchronization when getting codec for collection |
| 422 | types (JAVA-222) |
| 423 | - [bug] Don't retain unused PreparedStatement in memory (JAVA-201, JAVA-213) |
| 424 | - [bug] Add missing clustering order info in TableMetadata |
| 425 | - [bug] Allow bind markers for collections in the query builder (JAVA-196) |
| 426 | |
| 427 | |
| 428 | ### 1.0.4 |
| 429 | |
| 430 | - [api] The Cluster.Builder#poolingOptions and Cluster.Builder#socketOptions |
| 431 | are now deprecated. They are replaced by the new withPoolingOptions and |
| 432 | withSocketOptions methods (JAVA-163). |
| 433 | - [new] A new LatencyAwarePolicy wrapping policy has been added, allowing to |
| 434 | add latency awareness to a wrapped load balancing policy (JAVA-129). |
| 435 | - [new] Allow defering cluster initialization (Cluster.Builder#deferInitialization) |
| 436 | (JAVA-161) |
| 437 | - [new] Add truncate statement in query builder (JAVA-117). |
| 438 | - [new] Support empty IN in the query builder (JAVA-106). |
| 439 | - [bug] Fix spurious "No current pool set; this should not happen" error |
| 440 | message (JAVA-166) |
| 441 | - [bug] Fix potential overflow in RoundRobinPolicy and correctly errors if |
| 442 | a balancing policy throws (JAVA-184) |
| 443 | - [bug] Don't release Stream ID for timeouted queries (unless we do get back |
| 444 | the response) |
| 445 | - [bug] Correctly escape identifiers and use fully qualified table names when |
| 446 | exporting schema as string. |
| 447 | |
| 448 | |
| 449 | ### 1.0.3 |
| 450 | |
| 451 | - [api] The query builder now correctly throw an exception when given a value |
| 452 | of a type it doesn't know about. |
| 453 | - [new] SocketOptions#setReadTimeout allows to set a timeout on how long we |
| 454 | wait for the answer of one node. See the javadoc for more details. |
| 455 | - [new] New Session#prepare method that takes a Statement. |
| 456 | - [bug] Always take per-query CL, tracing, etc. into account for QueryBuilder |
| 457 | statements (JAVA-143). |
| 458 | - [bug] Temporary fixup for TimestampType when talking to C* 2.0 nodes. |
| 459 | |
| 460 | |
| 461 | ### 1.0.2 |
| 462 | |
| 463 | - [api] Host#getMonitor and all Host.HealthMonitor methods have been |
| 464 | deprecated. The new Host#isUp method is now prefered to the method |
| 465 | in the monitor and you should now register Host.StateListener against |
| 466 | the Cluster object directly (registering against a host HealthMonitor |
| 467 | was much more limited anyway). |
| 468 | - [new] New serialize/deserialize methods in DataType to serialize/deserialize |
| 469 | values to/from bytes (JAVA-92). |
| 470 | - [new] New getIndexOf() method in ColumnDefinitions to find the index of |
| 471 | a given column name (JAVA-128). |
| 472 | - [bug] Fix a bug when thread could get blocked while setting the current |
| 473 | keyspace (JAVA-131). |
| 474 | - [bug] Quote inet addresses in the query builder since CQL3 requires it |
| 475 | (JAVA-136) |
| 476 | |
| 477 | |
| 478 | ### 1.0.1 |
| 479 | |
| 480 | - [api] Function call handling in the query builder has been modified in a |
| 481 | backward incompatible way. Function calls are not parsed from string values |
| 482 | anymore as this wasn't safe. Instead the new 'fcall' method should be used |
| 483 | (JAVA-100). |
| 484 | - [api] Some typos in method names in PoolingOptions have been fixed in a |
| 485 | backward incompatible way before the API get widespread. |
| 486 | - [bug] Don't destroy composite partition key with BoundStatement and |
| 487 | TokenAwarePolicy (JAVA-123). |
| 488 | - [new] null values support in the query builder. |
| 489 | - [new] SSL support (requires C* >= 1.2.1) (JAVA-5). |
| 490 | - [new] Allow generating unlogged batch in the query builder (JAVA-113). |
| 491 | - [improvement] Better error message when no host are available. |
| 492 | - [improvement] Improves performance of the stress example application been. |
| 493 | |
| 494 | |
| 495 | ### 1.0.0 |
| 496 | |
| 497 | - [api] The AuthInfoProvider has be (temporarily) removed. Instead, the |
| 498 | Cluster builder has a new withCredentials() method to provide a username |
| 499 | and password for use with Cassandra's PasswordAuthenticator. Custom |
| 500 | authenticator will be re-introduced in a future version but are not |
| 501 | supported at the moment. |
| 502 | - [api] The isMetricsEnabled() method in Configuration has been replaced by |
| 503 | getMetricsOptions(). An option to disabled JMX reporting (on by default) |
| 504 | has been added. |
| 505 | - [bug] Don't make default load balancing policy a static singleton since it |
| 506 | is stateful (JAVA-91). |
| 507 | |
| 508 | |
| 509 | ### 1.0.0-RC1 |
| 510 | |
| 511 | - [new] Null values are now supported in BoundStatement (but you will need at |
| 512 | least Cassandra 1.2.3 for it to work). The API of BoundStatement has been |
| 513 | slightly changed so that not binding a variable is not an error anymore, |
| 514 | the variable is simply considered null by default. The isReady() method has |
| 515 | been removed (JAVA-79). |
| 516 | - [improvement] The Cluster/Session shutdown methods now properly block until |
| 517 | the shutdown is complete. A version with at timeout has been added (JAVA-75). |
| 518 | - [bug] Fix use of CQL3 functions in the query builder (JAVA-44). |
| 519 | - [bug] Fix case where multiple schema changes too quickly wouldn't work |
| 520 | (only triggered when 0.0.0.0 was use for the rpc_address on the Cassandra |
| 521 | nodes) (JAVA-77). |
| 522 | - [bug] Fix IllegalStateException thrown due to a reconnection made on an I/O |
| 523 | thread (JAVA-72). |
| 524 | - [bug] Correctly reports errors during authentication phase (JAVA-82). |
| 525 | |
| 526 | |
| 527 | ### 1.0.0-beta2 |
| 528 | |
| 529 | - [new] Support blob constants, BigInteger, BigDecimal and counter batches in |
| 530 | the query builder (JAVA-51, JAVA-60, JAVA-58) |
| 531 | - [new] Basic support for custom CQL3 types (JAVA-61) |
| 532 | - [new] Add "execution infos" for a result set (this also move the query |
| 533 | trace in the new ExecutionInfos object, so users of beta1 will have to |
| 534 | update) (JAVA-65) |
| 535 | - [bug] Fix failover bug in DCAwareRoundRobinPolicy (JAVA-62) |
| 536 | - [bug] Fix use of bind markers for routing keys in the query builder |
| 537 | (JAVA-66) |
| 538 | |
| 539 | |
| 540 | ### 1.0.0-beta1 |
| 541 | |
| 542 | - initial release |