Skip to content

[CASSANDRA-20190][5.0] MemoryUtil.setInt/getInt and similar use the wrong endianness #4093

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: cassandra-5.0
Choose a base branch
from

Conversation

netudima
Copy link
Contributor

Add NativeEndianMemoryUtil, move all methods which uses (or should) native endian
Switch offheap memtable primitive fields serialization/deserialization to NativeEndianMemoryUtil

Patch by Dmitry Konstantinov; reviewed by Branimir Lambov, Michael Semb Wever for CASSANDRA-20190

…e-related off-heap objects and Memory to use them.

Memory is Little Endian now.
Add BE offsets detection on Summary loading.
Add test SSTables in an old format with BE offsets in Summary component to LegacySSTableTest.

Patch by Dmitry Konstantinov; reviewed by Branimir Lambov, Michael Semb Wever for CASSANDRA-20190
… after changes in LegacySSTableTest

Patch by Dmitry Konstantinov; reviewed by Branimir Lambov, Michael Semb Wever for CASSANDRA-20190
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants