Yifan Cai created CASSANALYTICS-187:
---------------------------------------

             Summary: 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


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]

Reply via email to