-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slave 同步异常 #2949
Comments
Title: Slave synchronization exception |
从日志上来看,master下没有sst文件。如果能复现的话,麻烦贴下master和slave端的日志,db目录下sst文件个数,dump目录下sst文件个数。 |
Judging from the log, there is no sst file under the master. If it can be reproduced, please post the master and slave logs, the number of sst files in the db directory, and the number of sst files in the dump directory. |
日志
|
db & dump
|
db0/0, db0/1, db0/2以及db1/0, db1/1, db1/2下的数据是4.0版本的,类似db0/lists这些是3.x版本的,4.0和3.x版本数据不兼容。 |
The data under db0/0, db0/1, db0/2 and db1/0, db1/1, db1/2 are version 4.0, similar to db0/lists are version 3.x, 4.0 and 3.x version data Not compatible. |
那3.x到4.0的升级方案是怎样的呢 |
So what is the upgrade plan from 3.x to 4.0? |
暂时没有生产环境验证过的迁移方式,3.x版本建议先继续使用3.x,pika还在维护。 |
There is currently no migration method that has been verified in the production environment. It is recommended to continue using version 3.x for version 3.x. Pika is still under maintenance. |
Is this a regression?
Yes
Description
pika4.0.1版本,新建slave,出现全量不同步直接跳过,做增量同步。
在3.5.5版本没有此问题。
I20241113 15:01:30.381704 1 pika_server.cc:214] Pika Server going to start
I20241113 15:01:30.381721 1 rsync_server.cc:48] start RsyncServer ...
I20241113 15:01:30.381942 1 rsync_server.cc:60] RsyncServer started ...
I20241113 15:03:24.422560 1044 pika_server.cc:1797] clear cache start...
I20241113 15:03:24.422659 1044 pika_server.cc:1801] clear cache finish
I20241113 15:03:24.460886 1039 pika_repl_client.cc:199] Try Send Meta Sync Request to Master (10.42.128.221:9221)
I20241113 15:03:24.463303 1009 pika_server.cc:452] Mark try connect finish
I20241113 15:03:24.463346 1009 pika_repl_client_conn.cc:155] Finish to handle meta sync response
I20241113 15:03:24.603641 1009 pika_repl_client_conn.cc:234] DB: db0 Need To Try DBSync
I20241113 15:03:24.603732 1009 pika_repl_client_conn.cc:231] DB: db1 TrySync Ok
I20241113 15:03:24.661801 1009 pika_repl_client_conn.cc:186] DB: db0 Need Wait To Sync
I20241113 15:03:24.662063 1009 base_conf.cc:345] ret OK
W20241113 15:03:24.761471 1039 pika_rm.cc:510] Slave DB: db0 Activating Rsync ... (retry count:0)
W20241113 15:03:24.762320 1045 rsync_client.h:228] rsync response error
W20241113 15:03:24.762360 1039 rsync_client.cc:382] IO error: kRsyncMeta request failed! db is not exist or doing bgsave, retries:0
I20241113 15:03:25.803998 1039 rsync_client.cc:387] receive rsync meta infos, snapshot_uuid: bbba7f8908b9d46e35e4813bc869971dfiles count: 13
W20241113 15:03:25.804076 1039 rsync_client.cc:403] DUMP_META_DATA not exist
I20241113 15:03:25.804704 1039 rsync_client.cc:336] copy meta data done, db name: db0 snapshot_uuid: bbba7f8908b9d46e35e4813bc869971d file count: 13 expired file count: 0 local file count: 0 remote file count: 13 remote snapshot_uuid: bbba7f8908b9d46e35e4813bc869971d local snapshot_uuid: file_set_: 13
W20241113 15:03:25.804741 1039 rsync_client.cc:346] file_set: 0/000052.log
W20241113 15:03:25.804761 1039 rsync_client.cc:346] file_set: 0/CURRENT
W20241113 15:03:25.804780 1039 rsync_client.cc:346] file_set: 0/MANIFEST-000053
W20241113 15:03:25.804798 1039 rsync_client.cc:346] file_set: 0/OPTIONS-000055
W20241113 15:03:25.804816 1039 rsync_client.cc:346] file_set: 1/000052.log
W20241113 15:03:25.804836 1039 rsync_client.cc:346] file_set: 1/CURRENT
W20241113 15:03:25.804853 1039 rsync_client.cc:346] file_set: 1/MANIFEST-000053
W20241113 15:03:25.804872 1039 rsync_client.cc:346] file_set: 1/OPTIONS-000055
W20241113 15:03:25.804890 1039 rsync_client.cc:346] file_set: 2/000052.log
W20241113 15:03:25.804908 1039 rsync_client.cc:346] file_set: 2/CURRENT
W20241113 15:03:25.804926 1039 rsync_client.cc:346] file_set: 2/MANIFEST-000053
W20241113 15:03:25.804945 1039 rsync_client.cc:346] file_set: 2/OPTIONS-000055
W20241113 15:03:25.804963 1039 rsync_client.cc:346] file_set: info
I20241113 15:03:25.804983 1039 rsync_client.cc:76] RsyncClient recover success
I20241113 15:03:25.805119 1046 rsync_client.cc:90] RsyncClient begin to copy remote files
I20241113 15:03:25.805392 1047 rsync_client.cc:40] copy remote file, filename: 0/000052.log
I20241113 15:03:25.805444 1048 rsync_client.cc:40] copy remote file, filename: 0/CURRENT
I20241113 15:03:25.805521 1049 rsync_client.cc:40] copy remote file, filename: 0/MANIFEST-000053
I20241113 15:03:25.805583 1050 rsync_client.cc:40] copy remote file, filename: 0/OPTIONS-000055
I20241113 15:03:25.862306 1048 rsync_client.cc:40] copy remote file, filename: 1/CURRENT
I20241113 15:03:25.862324 1047 rsync_client.cc:40] copy remote file, filename: 1/000052.log
I20241113 15:03:25.872570 1049 rsync_client.cc:40] copy remote file, filename: 1/MANIFEST-000053
I20241113 15:03:25.874122 1050 rsync_client.cc:40] copy remote file, filename: 1/OPTIONS-000055
I20241113 15:03:25.875551 1048 rsync_client.cc:40] copy remote file, filename: 2/CURRENT
I20241113 15:03:25.876278 1047 rsync_client.cc:40] copy remote file, filename: 2/000052.log
I20241113 15:03:25.878705 1049 rsync_client.cc:40] copy remote file, filename: 2/MANIFEST-000053
I20241113 15:03:25.879336 1050 rsync_client.cc:40] copy remote file, filename: 2/OPTIONS-000055
I20241113 15:03:25.881747 1047 rsync_client.cc:40] copy remote file, filename: info
I20241113 15:03:25.883343 1048 rsync_client.cc:53] work_thread index: 1 copy remote files done
I20241113 15:03:25.884796 1049 rsync_client.cc:53] work_thread index: 2 copy remote files done
I20241113 15:03:25.884938 1050 rsync_client.cc:53] work_thread index: 3 copy remote files done
I20241113 15:03:25.886230 1047 rsync_client.cc:53] work_thread index: 0 copy remote files done
I20241113 15:03:25.886305 1046 rsync_client.cc:153] RsyncClient copy remote files done
I20241113 15:03:25.905236 1039 pika_db.cc:500] DB: db0 Information from dbsync info, master_ip: 10.42.128.221, master_port: 9221, filenum: 29, offset: 95216551, term: 0, index: 0
I20241113 15:03:25.905330 1039 pika_db.cc:555] DB: db0, Prepare change db from: ./data/db/db0_bak
I20241113 15:03:25.956422 1039 pika_db.cc:576] DB: db0, Change db success
I20241113 15:03:26.070235 1039 base_conf.cc:345] ret OK
I20241113 15:03:26.211719 1009 pika_repl_client_conn.cc:231] DB: db0 TrySync Ok
Please provide a link to a minimal reproduction of the bug
No response
Screenshots or videos
No response
Please provide the version you discovered this bug in (check about page for version information)
Anything else?
此问题在之前的issue中被提到,但实际未修复
之前issue如下:
#2742
The text was updated successfully, but these errors were encountered: