You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Michael Shuler (JIRA)" <ji...@apache.org> on 2014/06/30 22:36:27 UTC
[jira] [Reopened] (CASSANDRA-7147) Add a new snitch for Apache
Cloudstack platforms
[ https://issues.apache.org/jira/browse/CASSANDRA-7147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Shuler reopened CASSANDRA-7147:
---------------------------------------
This patch makes 1.2.17 fail to build on java 1.6 (sorry we didn't catch this sooner)
{noformat}
build-project:
[echo] apache-cassandra: /home/mshuler/git/cassandra/build.xml
[javac] Compiling 41 source files to /home/mshuler/git/cassandra/build/classes/thrift
[javac] Note: /home/mshuler/git/cassandra/interface/thrift/gen-java/org/apache/cassandra/thrift/Cassandra.java uses or overrides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] Compiling 772 source files to /home/mshuler/git/cassandra/build/classes/main
[javac] /home/mshuler/git/cassandra/src/java/org/apache/cassandra/io/util/Memory.java:20: warning: sun.misc.Unsafe is Sun proprietary API and may be removed in a future release
[javac] import sun.misc.Unsafe;
[javac] ^
[javac] /home/mshuler/git/cassandra/src/java/org/apache/cassandra/io/util/Memory.java:29: warning: sun.misc.Unsafe is Sun proprietary API and may be removed in a future release
[javac] private static final Unsafe unsafe;
[javac] ^
[javac] /home/mshuler/git/cassandra/src/java/org/apache/cassandra/locator/CloudstackSnitch.java:30: cannot find symbol
[javac] symbol : class StandardCharsets
[javac] location: package java.nio.charset
[javac] import java.nio.charset.StandardCharsets;
[javac] ^
[javac] /home/mshuler/git/cassandra/src/java/org/apache/cassandra/utils/FastByteComparisons.java:25: warning: sun.misc.Unsafe is Sun proprietary API and may be removed in a future release
[javac] import sun.misc.Unsafe;
[javac] ^
[javac] /home/mshuler/git/cassandra/src/java/org/apache/cassandra/utils/FastByteComparisons.java:114: warning: sun.misc.Unsafe is Sun proprietary API and may be removed in a future release
[javac] static final Unsafe theUnsafe;
[javac] ^
[javac] /home/mshuler/git/cassandra/src/java/org/apache/cassandra/io/util/Memory.java:35: warning: sun.misc.Unsafe is Sun proprietary API and may be removed in a future release
[javac] Field field = sun.misc.Unsafe.class.getDeclaredField("theUnsafe");
[javac] ^
[javac] /home/mshuler/git/cassandra/src/java/org/apache/cassandra/io/util/Memory.java:37: warning: sun.misc.Unsafe is Sun proprietary API and may be removed in a future release
[javac] unsafe = (sun.misc.Unsafe) field.get(null);
[javac] ^
[javac] /home/mshuler/git/cassandra/src/java/org/apache/cassandra/locator/CloudstackSnitch.java:140: cannot find symbol
[javac] symbol : variable StandardCharsets
[javac] location: class org.apache.cassandra.locator.CloudstackSnitch
[javac] return new String(b, StandardCharsets.UTF_8);
[javac] ^
[javac] /home/mshuler/git/cassandra/src/java/org/apache/cassandra/utils/FastByteComparisons.java:120: warning: sun.misc.Unsafe is Sun proprietary API and may be removed in a future release
[javac] theUnsafe = (Unsafe) AccessController.doPrivileged(
[javac] ^
[javac] /home/mshuler/git/cassandra/src/java/org/apache/cassandra/utils/FastByteComparisons.java:125: warning: sun.misc.Unsafe is Sun proprietary API and may be removed in a future release
[javac] Field f = Unsafe.class.getDeclaredField("theUnsafe");
[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 2 errors
[javac] 8 warnings
BUILD FAILED
/home/mshuler/git/cassandra/build.xml:696: Compile failed; see the compiler error output for details.
Total time: 33 seconds
((cassandra-1.2.17))mshuler@mshuler1:~/git/cassandra$ java -version
java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)
{noformat}
> Add a new snitch for Apache Cloudstack platforms
> ------------------------------------------------
>
> Key: CASSANDRA-7147
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7147
> Project: Cassandra
> Issue Type: Improvement
> Components: Core
> Environment: Virtual machine on Apache Cloudstack environments
> Reporter: Pierre-Yves Ritschard
> Assignee: Pierre-Yves Ritschard
> Priority: Minor
> Fix For: 1.2.17, 2.0.8, 2.1 rc1
>
> Attachments: 0001-initial-work-on-a-cloudstack-snitch.patch
>
>
> The attached patch adds a new Snitch that queries meta data for a host on Apache Cloudstack environments. Since the metadata service is colocated with the DHCP service in Cloudstack, common lease file locations are looked up to retrieve.
> Since zone naming is freeform in Apache Cloudstack, the widely used <country>-<location>-<az> notation is assumed.
> The patch includes a simple unit test and has been tested on exoscale.ch, a public cloud based on Apache Cloudstack
--
This message was sent by Atlassian JIRA
(v6.2#6252)