Trying to read a serialized empty StateEngine leads to java.io.EOFException
Crystark opened this issue · 0 comments
Crystark commented
I'm getting the following exception when I try to read the file of a serialized empty StateEngine:
java.io.EOFException
at java.io.DataInputStream.readFully(DataInputStream.java:197)
at java.io.DataInputStream.readUTF(DataInputStream.java:609)
at java.io.DataInputStream.readUTF(DataInputStream.java:564)
at com.netflix.zeno.fastblob.record.schema.FastBlobSchema.readFrom(FastBlobSchema.java:283)
at com.netflix.zeno.fastblob.io.FastBlobReader.readSnapshotTypes(FastBlobReader.java:90)
at com.netflix.zeno.fastblob.io.FastBlobReader.readSnapshot(FastBlobReader.java:72)
We're currently working on splitting our data to multiple files to reduce the data loaded by servers who do not need everything.
The thing is we end up being able to have empty StateEngines. The files themselves aren't empty as they contain a header with what I suppose is the schema and we can't just stop producing files as we need a way to say "hey, everything has been deleted"
Am I missing something here or is this a bug ?
Thanks