We got the same error when using version 6.2.2 and here is the flush sync result:
{
"_shards": {
"total": 10,
"successful": 5,
"failed": 5
},
"test_binlog_event_2018-04-24": {
"total": 10,
"successful": 5,
"failed": 5,
"failures": [
{
"shard": 3,
"reason": "out of sync replica; num docs on replica [87]; num docs on primary [97]",
"routing": {
"state": "STARTED",
"primary": false,
"node": "SXrqPc2XQPCF68uTI9BnYg",
"relocating_node": null,
"shard": 3,
"index": "test_binlog_event_2018-04-24",
"allocation_id": {
"id": "a3bV_lHRRoikp5p4k9vmvw"
}
}
},
{
"shard": 1,
"reason": "out of sync replica; num docs on replica [98]; num docs on primary [119]",
"routing": {
"state": "STARTED",
"primary": false,
"node": "j88PNMEHQKKja18HsHlXqw",
"relocating_node": null,
"shard": 1,
"index": "test_binlog_event_2018-04-24",
"allocation_id": {
"id": "RaKMm3cfTiqqwtmPlkIQRg"
}
}
},
{
"shard": 0,
"reason": "out of sync replica; num docs on replica [105]; num docs on primary [115]",
"routing": {
"state": "STARTED",
"primary": false,
"node": "BHGBPYvyRxCdallV4VzZoQ",
"relocating_node": null,
"shard": 0,
"index": "test_binlog_event_2018-04-24",
"allocation_id": {
"id": "aS-UZCNyRw21gnRVWomruw"
}
}
},
{
"shard": 4,
"reason": "out of sync replica; num docs on replica [99]; num docs on primary [106]",
"routing": {
"state": "STARTED",
"primary": false,
"node": "B3KrLbcCTdmMlrXnw6XNEw",
"relocating_node": null,
"shard": 4,
"index": "test_binlog_event_2018-04-24",
"allocation_id": {
"id": "T41VwaIISmuLTMvpDFcPjA"
}
}
},
{
"shard": 2,
"reason": "out of sync replica; num docs on replica [114]; num docs on primary [122]",
"routing": {
"state": "STARTED",
"primary": false,
"node": "of9qRxVKToGlra8WJaN-0Q",
"relocating_node": null,
"shard": 2,
"index": "test_binlog_event_2018-04-24",
"allocation_id": {
"id": "PKFLj7fAR4SU4i1SEu7yYQ"
}
}
}
]
}
}
Any ideas on how to fix this?