_recovery api shows negative metrics after translog replay #15974
Closed
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.