Some times this is resolved by using repl_done command along with repl_flush.
This time we faced issue and went unsuccessful. Then we followed below steps.
1. Stopped Log Reader Agent
2. EXEC sp_repldone @xactid = NULL, @xact_segno = NULL, @numtrans = 0, @time = 0, @reset = 1
3. sp_repleflush
4. Started Log reader agent
5. Replication came in Sync.
EXEC sp_repldone @xactid = NULL, @xact_segno = NULL, @numtrans = 0, @time = 0, @reset = 1
go
sp_repleflush
This time we faced issue and went unsuccessful. Then we followed below steps.
1. Stopped Log Reader Agent
2. EXEC sp_repldone @xactid = NULL, @xact_segno = NULL, @numtrans = 0, @time = 0, @reset = 1
3. sp_repleflush
4. Started Log reader agent
5. Replication came in Sync.