- Immediately after completing building the secondary indices, It tries to connect to primary and finds that socket is expired and timed out.
- At having received a timeout error it (Server2) simply drops all databases and starts the initial sync again.
- The snippet from logs is below:
2016-05-25T11:50:36.053+0000 i- rsSync指数构建: 2211700/2215091 99% 2016-05-25T11:50:39.221+I- rsSync索引构建: 2212000/2215091 99% 2016-05-25T11:50:43.300+0000 I- rsSync索引构建: 2212300/2215091 99% 2016-05-25T11:50:46.103+0000 I- rsSync索引构建: 2212500/2215091 99% 2016-05-25T11:50:49.068+0000 I- rsSync指数构建: 2212800/2215091 99% 2016-05-25T11:50:52.218+0000 I- rsSync索引构建: 2213600/2215091 99% 2016-05-25T11:50:55.439+0000 I- rsSync索引构建: 2214500/2215091 99% 2016-05-25T11:50:58.738+0000 I- rsSync索引构建: 2214700/2215091 99% 2016-05-25T11:51:13.223+0000 I- rsSync指数:(2 )/3) BTree自下而上进度: 536600/2215091 24% 2016-05-25T11:51:23.285+0000 I- rsSync指数:(2/3) BTree自下而上进度: 1984500/2215091 89% 2016-05-25T11:51:24.317+0000指数rsSync做底层,准备提交2016-05-25T11:51:24.508+0000 I索引rsSync构建索引完成。扫描了2215091条记录。10491秒2016-05-25T11:51:25.082+0000网络rsSync套接字表示发送() errno:110连接超时xx.xx:27017 2016-05-25T11:51:25.106+0000 E REPL rsSync 9001套接字异常SEND_ERROR服务器xx.xx:27017 2016-05-25T11:51:25.106+0000 E REPL rsSync初始同步尝试失败,9次尝试剩余的2016-05-25T11:51:30.106+0000 I REPL rsSync初始同步等待2016-05-25T11:51:30.433+0000 i REPL ReplicationExecutor同步来自:xx.xx:27017 2016-05-25T11:51:30.563+0000 I REPL rsSync初始同步删除所有数据库2016-05-25T11:51:30.564+0000 I存储rsSync dropAllDatabasesExceptLocal 42 2016-05-25T11:51:31.925+0000 I JOURNAL rsSync journalCleanup.rsSync removeJournalFiles 2016-05-25T11:51:32.331+0000 I日刊rsSync journalCleanuprsSync removeJournalFiles 2016-05-25T11:51:32.489+0000 I日刊rsSync journalCleanup2016-05-25T11:51:32.489+0000 I JOURNAL rsSync removeJournalFiles
发布于 2016-07-09 22:43:27
https://stackoverflow.com/questions/37437064
复制相似问题