Elffuss BraidHub

kikocis/java-driver public

Document that JNR doesn't work with OSGI.
Changeseta99f5df45b45c96c7dcfe41317273c0835f499aadac4c5b24a9a600a43c82d6a
Authorolim7t <omichallat+github@gmail.com> · 2016-03-18 14:30 +01:00
Committerolim7t <omichallat+github@gmail.com> · 2016-03-22 18:24 +01:00
Parents67cd1a324ee7

Browse the files at this changeset

3 files changed

modified driver-core/src/main/java/com/datastax/driver/core/AbstractMonotonicTimestampGenerator.java +5 −1
@@ -35,7 +35,11 @@
3535 * Beware that to guarantee monotonicity, if more than one call to {@link #next()}
3636 * is made within the same microsecond, or in the event of a system clock skew, this generator might
3737 * return timestamps that drift out in the future.
38- * Whe this happens, {@link #onDrift(long, long)} is invoked.
38+ * When this happens, {@link #onDrift(long, long)} is invoked.
39+ * <p/>
40+ * Note: currently, native calls won't work from an OSGI container. This is because JNR artifacts don't include proper
41+ * OSGI descriptors. This will be fixed in an upcoming version (see
42+ * <a href="https://datastax-oss.atlassian.net/browse/JAVA-1127">JAVA-1127</a>).
3943 */
4044 public abstract class AbstractMonotonicTimestampGenerator implements TimestampGenerator {
4145
modified driver-core/src/main/java/com/datastax/driver/core/utils/UUIDs.java +3 −1
@@ -52,8 +52,10 @@
5252 * </ol>
5353 * </li>
5454 * </ol>
55+ * Note: currently, native calls won't work from an OSGI container. This is because JNR artifacts don't include proper
56+ * OSGI descriptors. This will be fixed in an upcoming version (see
57+ * <a href="https://datastax-oss.atlassian.net/browse/JAVA-1127">JAVA-1127</a>).
5558 *
56- * @jira_ticket JAVA-444
5759 * @see <a href="http://www.ietf.org/rfc/rfc4122.txt">A Universally Unique IDentifier (UUID) URN Namespace (RFC 4122)</a>
5860 */
5961 public final class UUIDs {
modified manual/query_timestamps/README.md +4 −0
@@ -98,6 +98,10 @@
9898 INFO com.datastax.driver.core.ClockFactory - Using native clock to generate timestamps
9999 ```
100100
101+Note: currently, native calls won't work from an OSGI container. This is because JNR artifacts don't include proper OSGI
102+descriptors. This will be fixed in an upcoming version (see
103+[JAVA-1127](https://datastax-oss.atlassian.net/browse/JAVA-1127)).
104+
101105 [gettimeofday]: http://man7.org/linux/man-pages/man2/settimeofday.2.html
102106 [JNR]: https://github.com/jnr/jnr-ffi
103107