Deploy fix of ByteBufferInput and use it 48/111048/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 25 Mar 2024 08:24:52 +0000 (09:24 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 26 Mar 2024 13:14:18 +0000 (14:14 +0100)
commitfc84bef37ab52094c4dbb080c9884aa1066bf72d
tree764160412f3f563cae5e58e4cee2b354eda3caa4
parenta438d9f11969eb8887ab9bc59720e9fa17f88fc5
Deploy fix of ByteBufferInput and use it

readAscii() just wants to fix up the last byte it passes to the String
constructor. Do that after reading.

Inherit everything alse that is not required from the regular
ByteBufferInput to minimize code duplication.

JIRA: CONTROLLER-2109
Change-Id: Ic12b8e06317a8376b34d514daaf1ba7d46d16178
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 4a0d430bb2a0b17a5cdd4af90c0b81080817f70a)
atomix-storage/src/main/java/io/atomix/utils/serializer/ByteBufferInput.java
atomix-storage/src/main/java/io/atomix/utils/serializer/KryoJournalSerdes.java