Skip to content

error: read_beyond_eof when query couchdb #2097

@biwugang

Description

@biwugang

Description

when query couchdb, the error occur:
{"error":"error","reason":"{badmatch,\n {'EXIT',\n {bad_return_value,\n {read_beyond_eof,\n "./data/shards/a0000000-bfffffff/local_whisks.1562291929.couch"}}}}"}

if the item which is not saved in such shard, the query is success.
it looks like the shard file is bad or corrupted

Steps to Reproduce

couchdb is used for our service,
couchdb will save some binary (the biggest size is about 50 MB)
current couchDB data size is 15GB,
it is hard to reproduce

Expected Behaviour

Your Environment

  • CouchDB Version used: 2.1.2
  • Browser name and version: I use curl command to do query
  • Operating System and version: centos

Additional context

it looks like the shard file is bad,
how to fix such issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions