It's safe to process ReplicaSyncRetryResponse when partition table is updated, even before migration flag is cleared.
When partition is still migrating, replica sync request should be scheduled to a later time to avoid redundant sync requests.