nats-io / nats-streaming-server

NATS Streaming System Server
https://nats.io
Apache License 2.0
2.51k stars 284 forks source link

Error looking up message (end of file padded with zeros) #1200

Closed hanxinimm closed 3 years ago

hanxinimm commented 3 years ago

subject: Labor-Work error: Error looking up message Labor-Work:1927 (end of file padded with zeros) how can fix it? what's happen

kozlovic commented 3 years ago

This happens if the end of a record is not what it should be and the record is filled with zeros (instead of file being simply too short). Please refer to https://docs.nats.io/nats-streaming-server/configuring/persistence/file_store#recovery-errors for instructions on how to recover from those errors.