kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 1f38b646a0dc7ec895a857133ccff32b2b3b69c489fc70e919c81df338542249 |
|---|---|
| Author | olim7t <omichallat+github@gmail.com> · 2015-04-30 12:24 +02:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2015-05-04 15:07 +02:00 |
| Parents | 77c8f6a013db |
1 file changed
modified driver-core/Upgrade_guide_to_2.0.rst +31 −20
| @@ -1,21 +1,17 @@ | ||
| 1 | -Upgrade Guide to 2.0.0 | |
| 2 | -====================== | |
| 3 | - | |
| 4 | -The purpose of this guide is to detail the changes made by the version 2.0 of | |
| 5 | -the Java Driver that are relevant to an upgrade from version 1.0. | |
| 6 | - | |
| 7 | -We used the opportunity of a major version bump to incorporate your feedback | |
| 8 | -and improve the API, to fix a number of inconsistencies and remove cruft. | |
| 9 | -Unfortunately this means there are some breaking changes, but the new API should | |
| 10 | -be both simpler and more complete. | |
| 1 | +Upgrade Guide to 2.0 | |
| 2 | +==================== | |
| 11 | 3 | |
| 12 | -The first part goes into the breaking changes made to the API (upgraders from 1.0 | |
| 13 | -should review this section carefully), while the second part lists noteworthy | |
| 14 | -but backward incompatible changes. | |
| 4 | +The purpose of this guide is to detail the changes made by version 2.0 of | |
| 5 | +the Java Driver. | |
| 15 | 6 | |
| 16 | 7 | |
| 17 | -Breaking API Changes | |
| 18 | --------------------- | |
| 8 | +1.0 to 2.0 | |
| 9 | +---------- | |
| 10 | + | |
| 11 | +We used the opportunity of a major version bump to incorporate your feedback | |
| 12 | +and improve the API, to fix a number of inconsistencies and remove cruft. | |
| 13 | +Unfortunately this means there are some breaking changes, but the new API should | |
| 14 | +be both simpler and more complete. | |
| 19 | 15 | |
| 20 | 16 | The following describes the changes for 2.0 that are breaking changes of the |
| 21 | 17 | 1.0 API. For ease of use, we distinguish two categories of API changes: the "main" |
| @@ -155,13 +151,28 @@ | ||
| 155 | 151 | will now need to use Host#isUp and Cluster#register if you were using that |
| 156 | 152 | class. |
| 157 | 153 | |
| 158 | -11. LatencyTracker#update method now has a different signature and takes two new | |
| 159 | - parameters: the statement that has been executed (never null), and the exception | |
| 160 | - thrown while executing the query (or null, if the query executed successfully). | |
| 161 | - Existing implementations of this interface, once upgraded to the new method | |
| 162 | - signature, should continue to work as before. | |
| 163 | 154 | |
| 155 | +2.0.10 | |
| 156 | +------ | |
| 157 | + | |
| 158 | +1. LatencyTracker#update now has a different signature and takes two new | |
| 159 | + parameters: the statement that has been executed (never null), and the exception | |
| 160 | + thrown while executing the query (or null, if the query executed successfully). | |
| 161 | + Existing implementations of this interface, once upgraded to the new method | |
| 162 | + signature, should continue to work as before. | |
| 163 | + | |
| 164 | +2. SocketOptions#getTcpNoDelay() is now TRUE by default (it was previously undefined). | |
| 165 | + This reflects the new behavior of Netty (which was upgraded from version 3.9.0 to | |
| 166 | + 4.0.27): TCP_NODELAY is now turned on by default, instead of depending on the OS | |
| 167 | + default like in previous versions. | |
| 168 | + | |
| 169 | +3. Netty is not shaded anymore in the default Maven artifact. However we publish a | |
| 170 | + shaded artifact under a different classifier. See `Using the shaded JAR<http://datastax.github.io/java-driver/features/shaded_jar/>`_ | |
| 171 | + for more information. | |
| 164 | 172 | |
| 173 | +4. The internal initialization sequence of the Cluster object has been slightly changed: | |
| 174 | + some fields that were previously initialized in the constructor are now set when | |
| 175 | + the init() method is called. This is unlikely to affect regular driver users. | |
| 165 | 176 | |
| 166 | 177 | |
| 167 | 178 | Features available only with Cassandra 2.0 |