Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
0.5.0
-----
* Expand list of architecture that supports unaligned access in FastByteOperations (CASSANALYTICS-188)
* Fix FastByteOperations Silently Falling Back to Pure-Java Comparator (CASSANALYTICS-187)
* AbstractSchemaBuilder.build() drops the cdc flag, silently disabling CDC on all tables (CASSANALYTICS-186)
* Fix total timeout calculation for getAllNodeSettings (CASSANALYTICS-179)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,15 @@ private static class BestHolder
static ByteOperations getBest()
{
String arch = System.getProperty("os.arch");
boolean unaligned = arch.equals("i386") || arch.equals("x86") || arch.equals("x86_64") || arch.equals("amd64");
// Note that s390x, aarch64, & ppc64le architectures are not officially supported and adding them here is only done out
// of convenience for those that want to run C* on these architectures at their own risk (see #11214, #13326, & #13615)
boolean unaligned = arch.equals("i386")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add the same disclaimer as in Cassandra source code.

    // Note that s390x, aarch64, & ppc64le architectures are not officially supported and adding them here is only done out
    // of convenience for those that want to run C* on these architectures at their own risk (see #11214, #13326, & #13615)

#11214 refers to CASSANDRA-11214

|| arch.equals("x86")
|| arch.equals("x86_64")
|| arch.equals("amd64")
|| arch.equals("s390x")
|| arch.equals("aarch64")
|| arch.equals("ppc64le");
if (!unaligned)
{
return new PureJavaOperations();
Expand Down
Loading