Skip to content

ES 2.2.1 strange document count in _cat/indices #17319

@ghost

Description

Elasticsearch version: 2.2.1
JVM version: Oracle Java 8 (1.8.0_74)
OS version: Ubuntu Server 14.04.4 LTS
Description of the problem including expected versus actual behavior: /_cat/indices returns twice number of docs (docs.count column) than exists in the index.

curl -XGET 'http://127.0.0.1:9200/_cat/indices?v'
health status index                   pri rep docs.count docs.deleted store.size pri.store.size
green  open   index-1doc              2   1          2            0     39.9kb         19.9kb
green  open   index-1doc-1s0r         1   0          2            0     19.8kb         19.8kb
green  open   index-10000doc-7s3r     7   3      20000            0     76.3mb           19mb

Steps to reproduce:

  1. Feed a new index with N documents using bulk insert
  2. Query /_cat/indices and check docs.count column

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions