[
https://issues.apache.org/jira/browse/CASSANALYTICS-187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Yifan Cai updated CASSANALYTICS-187:
------------------------------------
Fix Version/s: 0.5
Source Control Link:
https://github.com/apache/cassandra-analytics/commit/98ca34c95a2b29cbcd4e09f50f30f0e836364e03
Resolution: Fixed
Status: Resolved (was: Ready to Commit)
> Fix FastByteOperations Silently Falling Back to Pure-Java Comparator
> --------------------------------------------------------------------
>
> Key: CASSANALYTICS-187
> URL: https://issues.apache.org/jira/browse/CASSANALYTICS-187
> Project: Apache Cassandra Analytics
> Issue Type: Bug
> Components: Writer
> Reporter: Yifan Cai
> Assignee: Yifan Cai
> Priority: Normal
> Fix For: 0.5
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> FastByteOperations.java, copied from the Cassandra codebase, looked up the
> Unsafe singleton using the field name "UNSAFE" instead of the actual
> "theUnsafe" field, so the reflective lookup always threw NoSuchFieldException
> and the class silently fell back to PureJavaOperations instead of the
> Unsafe-based fast path. This change corrects the field name to "theUnsafe"
> and realigns the rest of the class with the upstream Cassandra implementation
> it was copied from, restoring the intended fast-path byte comparison.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]