Skip to content

_recovery api shows negative metrics after translog replay #15974

Closed
@ppf2

Description

Tested on 2.1.1:

      "translog" : {
        "recovered" : 13,
        "total" : -1,
        "percent" : "-1.0%",
        "total_on_start" : -1,
        "total_time_in_millis" : 340
      },

I have 13 entries in the translog for a shard, once it is done replaying on startup, if I hit the _recovery api and look at the translog section for the shard, it shows 13 recovered. But the percent and total metrics are negative which is misleading.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions