You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Yifan Cai (Jira)" <ji...@apache.org> on 2026/08/03 18:48:00 UTC
[jira] [Created] (CASSANALYTICS-187) Fix FastByteOperations Silently Falling Back to Pure-Java Comparator
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: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org