# Zstd sync up issue on new replica for mongoDB

**URL:** <https://forums.percona.com/t/zstd-sync-up-issue-on-new-replica-for-mongodb/21943>\
**Category:** Percona Server for MongoDB\
**Tags:** percona\
**Created:** [May 9, 2023, 5:21am UTC](https://forums.percona.com/t/zstd-sync-up-issue-on-new-replica-for-mongodb/21943 "2023-05-09T05:21:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sai\_Teja\_Varma](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/sai_teja_varma/32/8941_2.png) [@Sai\_Teja\_Varma](https://forums.percona.com/u/Sai_Teja_Varma)\
**Post date:** [May 9, 2023, 5:21am UTC](https://forums.percona.com/t/zstd-sync-up-issue-on-new-replica-for-mongodb/21943/1 "2023-05-09T05:21:22Z")

</div>

Hi Team,

I am trying to sync up a huge (9 TB) replica set into Zstd and increased the oplog to source node to 6TB as well

It has been syncing since three weeks and the estimated time to sync has also been done (five days ago).

Now, the below error is looping with error. Can you please help me with it

````auto
{"t":{"$date":"2023-05-09T05:12:55.206+00:00"},"s":"E", "c":"REPL", "id":21258, "ctx":"ReplWriterWorker-336","msg":"Failed to apply update","attr":{"op":{"op":"u","ns":"DB.collections","ui":{"$uuid":"b87fb597-8b6b-45f7-bf95-1d513bd7087f"},"o":{"$v":1,"$set":{"Id":"4dgjkius7ktgni5ji47v4u9n0g"}},"o2":{"_id":{"$oid":"618d95c6cff47e0006011a7c"}},"ts":{"$timestamp":{"t":1682709274,"i":1903}},"t":131,"v":2,"wall":{"$date":"2023-04-28T19:14:34.864Z"}}}}
{"t":{"$date":"2023-05-09T05:12:55.206+00:00"},"s":"E", "c":"REPL", "id":21258, "ctx":"ReplWriterWorker-336","msg":"Failed to apply update","attr":{"op":{"op":"u","ns":"DB.collections","ui":{"$uuid":"b87fb597-8b6b-45f7-bf95-1d513bd7087f"},"o":{"$v":1,"$set":{"Id":"4dgjkius7ktgni5ji47v4u9n0g"}},"o2":{"_id":{"$oid":"618e8e8346e0fb000aa58821"}},"ts":{"$timestamp":{"t":1682709274,"i":1958}},"t":131,"v":2,"wall":{"$date":"2023-04-28T19:14:34.883Z"}}}}
{"t":{"$date":"2023-05-09T05:12:55.206+00:00"},"s":"E", "c":"REPL", "id":21258, "ctx":"ReplWriterWorker-336","msg":"Failed to apply update","attr":{"op":{"op":"u","ns":"DB.collections","ui":{"$uuid":"b87fb597-8b6b-45f7-bf95-1d513bd7087f"},"o":{"$v":1,"$set":{"Id":"4dgjkius7ktgni5ji47v4u9n0g"}},"o2":{"_id":{"$oid":"63ebcbbf12e94b2e4688f569"}},"ts":{"$timestamp":{"t":1682709274,"i":2153}},"t":131,"v":2,"wall":{"$date":"2023-04-28T19:14:34.955Z"}}}}```
````

---

<div class="post-metadata">

**Author:** ![Ivan\_Groenewold](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ivan_groenewold/32/6299_2.png) [@Ivan\_Groenewold](https://forums.percona.com/u/Ivan_Groenewold)\
**Post date:** [May 9, 2023, 3:29pm UTC](https://forums.percona.com/t/zstd-sync-up-issue-on-new-replica-for-mongodb/21943/2 "2023-05-09T15:29:15Z")

</div>

Hi, it is normal during initial sync to see some oplog apply failures. Do you see the data directory still growing? also which mongodb version are you using?

---

<div class="post-metadata">

**Author:** ![Sai\_Teja\_Varma](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/sai_teja_varma/32/8941_2.png) [@Sai\_Teja\_Varma](https://forums.percona.com/u/Sai_Teja_Varma)\
**Post date:** [May 9, 2023, 3:31pm UTC](https://forums.percona.com/t/zstd-sync-up-issue-on-new-replica-for-mongodb/21943/3 "2023-05-09T15:31:37Z")

</div>

Hi @Ivan_Groenewold Thank you for the reply and I can see the data is still growing (is it because of huge oplog ~5TB) and We are using mongodb V4.4

---

<div class="post-metadata">

**Author:** ![Ivan\_Groenewold](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ivan_groenewold/32/6299_2.png) [@Ivan\_Groenewold](https://forums.percona.com/u/Ivan_Groenewold)\
**Post date:** [May 9, 2023, 3:36pm UTC](https://forums.percona.com/t/zstd-sync-up-issue-on-new-replica-for-mongodb/21943/4 "2023-05-09T15:36:24Z")

</div>

You can check the last modification time of files at the operating system level to see if there’s any activity other than the oplog growing. If you have huge index it is possible it is taking very long to build it.

---

<div class="post-metadata">

**Author:** ![Sai\_Teja\_Varma](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/sai_teja_varma/32/8941_2.png) [@Sai\_Teja\_Varma](https://forums.percona.com/u/Sai_Teja_Varma)\
**Post date:** [May 10, 2023, 10:44am UTC](https://forums.percona.com/t/zstd-sync-up-issue-on-new-replica-for-mongodb/21943/5 "2023-05-10T10:44:38Z")

</div>

Thank you @Ivan_Groenewold I can see the folders in data directory are getting updated.

` "msg":"Failed to apply update"`

This message was bothering me and it has been recurring since four days

---

<div class="post-metadata">

**Author:** ![Sai\_Teja\_Varma](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/sai_teja_varma/32/8941_2.png) [@Sai\_Teja\_Varma](https://forums.percona.com/u/Sai_Teja_Varma)\
**Post date:** [May 15, 2023, 6:47am UTC](https://forums.percona.com/t/zstd-sync-up-issue-on-new-replica-for-mongodb/21943/6 "2023-05-15T06:47:01Z")

</div>

The sync got into secondary mode after a week

Thanks for the solution @Ivan_Groenewold

---

<div class="post-metadata">

**Author:** ![Ivan\_Groenewold](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ivan_groenewold/32/6299_2.png) [@Ivan\_Groenewold](https://forums.percona.com/u/Ivan_Groenewold)\
**Post date:** [May 15, 2023, 10:55am UTC](https://forums.percona.com/t/zstd-sync-up-issue-on-new-replica-for-mongodb/21943/7 "2023-05-15T10:55:14Z")

</div>

glad to hear it worked
