fix: advance replications queue after successful remote writes (#22967)
fix: advance replications queue after successful remote writes (#22967)

* fix: advance replications queue after successful remote writes to prevent data duplication on errors

* fix: loop on sendwrite

* chore: remove flaky test

* chore: add TODO about future optimization
li-ang/influxdb,influxdata/influxdb,li-ang/influxdb,influxdata/influxdb