Skip to content
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

bug: let redis 8 as slave of pikiwidb #1911

Closed
AlexStocks opened this issue Aug 18, 2023 · 1 comment
Closed

bug: let redis 8 as slave of pikiwidb #1911

AlexStocks opened this issue Aug 18, 2023 · 1 comment

Comments

@AlexStocks
Copy link
Collaborator

At present, pikiwi(https://github.com/OpenAtomFoundation/pika/tree/develop) can communicate with redis 6. however, it can not communicate with redis 8.

image

After switch redis8 as slave of pikiwi, it prints logs as follows.

23476:C 18 Aug 2023 08:10:04.485 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
23476:C 18 Aug 2023 08:10:04.485 * Redis version=255.255.255, bits=64, commit=44cc0fcb, modified=0, pid=23476, just started
23476:C 18 Aug 2023 08:10:04.485 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server20230818 /path/to/redis.conf
23476:M 18 Aug 2023 08:10:04.485 * Increased maximum number of open files to 10032 (it was originally set to 256).
23476:M 18 Aug 2023 08:10:04.485 * monotonic clock: POSIX clock_gettime
                _._
           _.-``__ ''-._
      _.-``    `.  `_.  ''-._           Redis 255.255.255 (44cc0fcb/0) 64 bit
  .-`` .-```.  ```\/    _.,_ ''-._
 (    '      ,       .-`  | `,    )     Running in standalone mode
 |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
 |    `-._   `._    /     _.-'    |     PID: 23476
  `-._    `-._  `-./  _.-'    _.-'
 |`-._`-._    `-.__.-'    _.-'_.-'|
 |    `-._`-._        _.-'_.-'    |           https://redis.io
  `-._    `-._`-.__.-'_.-'    _.-'
 |`-._`-._    `-.__.-'    _.-'_.-'|
 |    `-._`-._        _.-'_.-'    |
  `-._    `-._`-.__.-'_.-'    _.-'
      `-._    `-.__.-'    _.-'
          `-._        _.-'
              `-.__.-'

23476:M 18 Aug 2023 08:10:04.486 # WARNING: The TCP backlog setting of 511 cannot be enforced because kern.ipc.somaxconn is set to the lower value of 128.
23476:M 18 Aug 2023 08:10:04.486 * Server initialized
23476:M 18 Aug 2023 08:10:04.487 * Loading RDB produced by version 255.255.255
23476:M 18 Aug 2023 08:10:04.487 * RDB age 36664 seconds
23476:M 18 Aug 2023 08:10:04.487 * RDB memory usage when created 1.12 Mb
23476:M 18 Aug 2023 08:10:04.487 * Done loading RDB, keys loaded: 1, keys expired: 0.
23476:M 18 Aug 2023 08:10:04.487 * DB loaded from disk: 0.001 seconds
23476:M 18 Aug 2023 08:10:04.487 * Ready to accept connections tcp
23476:S 18 Aug 2023 08:10:32.456 * Before turning into a replica, using my own master parameters to synthesize a cached master: I may be able to synchronize with the new master with just a partial transfer.
23476:S 18 Aug 2023 08:10:32.456 * Connecting to MASTER 127.1:9221
23476:S 18 Aug 2023 08:10:32.457 * MASTER <-> REPLICA sync started
23476:S 18 Aug 2023 08:10:32.457 * REPLICAOF 127.1:9221 enabled (user request from 'id=3 addr=127.0.0.1:58014 laddr=127.0.0.1:6379 fd=8 name= age=15 idle=0 flags=N db=0 sub=0 psub=0 ssub=0 multi=-1 qbuf=38 qbuf-free=16852 argv-mem=16 multi-mem=0 rbs=1024 rbp=0 obl=0 oll=0 omem=0 tot-mem=18744 events=r cmd=slaveof user=default redir=-1 resp=2 lib-name= lib-ver=')
23476:S 18 Aug 2023 08:10:32.458 * Non blocking connect for SYNC fired the event.
23476:S 18 Aug 2023 08:10:32.458 * Master replied to PING, replication can continue...
23476:S 18 Aug 2023 08:10:37.459 # Failed to read response from the server: Undefined error: 0
23476:S 18 Aug 2023 08:10:37.459 # Master did not respond to command during SYNC handshake
23476:S 18 Aug 2023 08:10:37.661 * Connecting to MASTER 127.1:9221
23476:S 18 Aug 2023 08:10:37.661 * MASTER <-> REPLICA sync started
23476:S 18 Aug 2023 08:10:37.662 * Non blocking connect for SYNC fired the event.
23476:S 18 Aug 2023 08:10:37.662 * Master replied to PING, replication can continue...
23476:S 18 Aug 2023 08:10:42.663 # Failed to read response from the server: Undefined error: 0
23476:S 18 Aug 2023 08:10:42.664 # Master did not respond to command during SYNC handshake
23476:S 18 Aug 2023 08:10:43.573 * Connecting to MASTER 127.1:9221
23476:S 18 Aug 2023 08:10:43.577 * MASTER <-> REPLICA sync started
23476:S 18 Aug 2023 08:10:43.577 * Non blocking connect for SYNC fired the event.
23476:S 18 Aug 2023 08:10:43.578 * Master replied to PING, replication can continue...
23476:S 18 Aug 2023 08:10:48.579 # Failed to read response from the server: Undefined error: 0
23476:S 18 Aug 2023 08:10:48.579 # Master did not respond to command during SYNC handshake
23476:S 18 Aug 2023 08:10:49.488 * Connecting to MASTER 127.1:9221
23476:S 18 Aug 2023 08:10:49.493 * MASTER <-> REPLICA sync started
23476:S 18 Aug 2023 08:10:49.493 * Non blocking connect for SYNC fired the event.
23476:S 18 Aug 2023 08:10:49.497 * Master replied to PING, replication can continue...
23476:S 18 Aug 2023 08:10:54.498 # Failed to read response from the server: Undefined error: 0
23476:S 18 Aug 2023 08:10:54.498 # Master did not respond to command during SYNC handshake
23476:S 18 Aug 2023 08:10:55.407 * Connecting to MASTER 127.1:9221
23476:S 18 Aug 2023 08:10:55.409 * MASTER <-> REPLICA sync started
23476:S 18 Aug 2023 08:10:55.409 * Non blocking connect for SYNC fired the event.
23476:S 18 Aug 2023 08:10:55.409 * Master replied to PING, replication can continue...
23476:S 18 Aug 2023 08:11:00.410 # Failed to read response from the server: Undefined error: 0
23476:S 18 Aug 2023 08:11:00.410 # Master did not respond to command during SYNC handshake
23476:S 18 Aug 2023 08:11:01.319 * Connecting to MASTER 127.1:9221
23476:S 18 Aug 2023 08:11:01.319 * MASTER <-> REPLICA sync started
23476:S 18 Aug 2023 08:11:01.320 * Non blocking connect for SYNC fired the event.
23476:S 18 Aug 2023 08:11:01.320 * Master replied to PING, replication can continue...
23476:S 18 Aug 2023 08:11:06.321 # Failed to read response from the server: Undefined error: 0
23476:S 18 Aug 2023 08:11:06.321 # Master did not respond to command during SYNC handshake
23476:S 18 Aug 2023 08:11:07.234 * Connecting to MASTER 127.1:9221
23476:S 18 Aug 2023 08:11:07.235 * MASTER <-> REPLICA sync started
23476:S 18 Aug 2023 08:11:07.236 * Non blocking connect for SYNC fired the event.
23476:S 18 Aug 2023 08:11:07.236 * Master replied to PING, replication can continue...
23476:S 18 Aug 2023 08:11:12.240 # Failed to read response from the server: Undefined error: 0
23476:S 18 Aug 2023 08:11:12.240 # Master did not respond to command during SYNC handshake
23476:S 18 Aug 2023 08:11:13.147 * Connecting to MASTER 127.1:9221
23476:S 18 Aug 2023 08:11:13.148 * MASTER <-> REPLICA sync started
23476:S 18 Aug 2023 08:11:13.152 * Non blocking connect for SYNC fired the event.
23476:S 18 Aug 2023 08:11:13.153 * Master replied to PING, replication can continue...
23476:S 18 Aug 2023 08:11:18.154 # Failed to read response from the server: Undefined error: 0
23476:S 18 Aug 2023 08:11:18.154 # Master did not respond to command during SYNC handshake
23476:S 18 Aug 2023 08:11:19.065 * Connecting to MASTER 127.1:9221
23476:S 18 Aug 2023 08:11:19.066 * MASTER <-> REPLICA sync started
23476:S 18 Aug 2023 08:11:19.069 * Non blocking connect for SYNC fired the event.
23476:S 18 Aug 2023 08:11:19.070 * Master replied to PING, replication can continue...
23476:S 18 Aug 2023 08:11:24.071 # Failed to read response from the server: Undefined error: 0
23476:S 18 Aug 2023 08:11:24.071 # Master did not respond to command during SYNC handshake
23476:S 18 Aug 2023 08:11:24.982 * Connecting to MASTER 127.1:9221
23476:S 18 Aug 2023 08:11:24.984 * MASTER <-> REPLICA sync started
23476:S 18 Aug 2023 08:11:24.987 * Non blocking connect for SYNC fired the event.
23476:S 18 Aug 2023 08:11:24.987 * Master replied to PING, replication can continue...
23476:S 18 Aug 2023 08:11:29.989 # Failed to read response from the server: Undefined error: 0
23476:S 18 Aug 2023 08:11:29.989 # Master did not respond to command during SYNC handshake
23476:S 18 Aug 2023 08:11:30.896 * Connecting to MASTER 127.1:9221
23476:S 18 Aug 2023 08:11:30.896 * MASTER <-> REPLICA sync started
23476:S 18 Aug 2023 08:11:30.899 * Non blocking connect for SYNC fired the event.
23476:S 18 Aug 2023 08:11:30.900 * Master replied to PING, replication can continue...
23476:S 18 Aug 2023 08:11:35.901 # Failed to read response from the server: Undefined error: 0
23476:S 18 Aug 2023 08:11:35.901 # Master did not respond to command during SYNC handshake
23476:S 18 Aug 2023 08:11:36.808 * Connecting to MASTER 127.1:9221
23476:S 18 Aug 2023 08:11:36.809 * MASTER <-> REPLICA sync started
23476:S 18 Aug 2023 08:11:36.812 * Non blocking connect for SYNC fired the event.
23476:S 18 Aug 2023 08:11:36.813 * Master replied to PING, replication can continue...
23476:S 18 Aug 2023 08:11:41.818 # Failed to read response from the server: Undefined error: 0
23476:S 18 Aug 2023 08:11:41.818 # Master did not respond to command during SYNC handshake
23476:S 18 Aug 2023 08:11:42.730 * Connecting to MASTER 127.1:9221
23476:S 18 Aug 2023 08:11:42.730 * MASTER <-> REPLICA sync started
23476:S 18 Aug 2023 08:11:42.731 * Non blocking connect for SYNC fired the event.
23476:S 18 Aug 2023 08:11:42.731 * Master replied to PING, replication can continue...
23476:S 18 Aug 2023 08:11:47.738 # Failed to read response from the server: Undefined error: 0
23476:S 18 Aug 2023 08:11:47.738 # Master did not respond to command during SYNC handshake
23476:S 18 Aug 2023 08:11:48.648 * Connecting to MASTER 127.1:9221
23476:S 18 Aug 2023 08:11:48.650 * MASTER <-> REPLICA sync started
23476:S 18 Aug 2023 08:11:48.650 * Non blocking connect for SYNC fired the event.
23476:S 18 Aug 2023 08:11:48.650 * Master replied to PING, replication can continue...
23476:S 18 Aug 2023 08:11:53.656 # Failed to read response from the server: Undefined error: 0
23476:S 18 Aug 2023 08:11:53.656 # Master did not respond to command during SYNC handshake
23476:S 18 Aug 2023 08:11:54.567 * Connecting to MASTER 127.1:9221
23476:S 18 Aug 2023 08:11:54.571 * MASTER <-> REPLICA sync started
23476:S 18 Aug 2023 08:11:54.571 * Non blocking connect for SYNC fired the event.
23476:S 18 Aug 2023 08:11:54.572 * Master replied to PING, replication can continue...
23476:S 18 Aug 2023 08:11:59.576 # Failed to read response from the server: Undefined error: 0
23476:S 18 Aug 2023 08:11:59.576 # Master did not respond to command during SYNC handshake
23476:S 18 Aug 2023 08:12:00.484 * Connecting to MASTER 127.1:9221
23476:S 18 Aug 2023 08:12:00.484 * MASTER <-> REPLICA sync started
23476:S 18 Aug 2023 08:12:00.485 * Non blocking connect for SYNC fired the event.
23476:S 18 Aug 2023 08:12:00.485 * Master replied to PING, replication can continue...
23476:S 18 Aug 2023 08:12:05.488 # Failed to read response from the server: Undefined error: 0
23476:S 18 Aug 2023 08:12:05.488 # Master did not respond to command during SYNC handshake
23476:S 18 Aug 2023 08:12:06.397 * Connecting to MASTER 127.1:9221
23476:S 18 Aug 2023 08:12:06.399 * MASTER <-> REPLICA sync started
23476:S 18 Aug 2023 08:12:06.399 * Non blocking connect for SYNC fired the event.
23476:S 18 Aug 2023 08:12:06.400 * Master replied to PING, replication can continue...

And pikiwi prints log as follows.

New event object 0x600002b78218
New event object 0x600000c78018

______   _  _     _            _ ______ ______  
| ___ \ (_)| |   (_)          (_)|  _  \| ___ \ 
| |_/ /  _ | | __ _ __      __ _ | | | || |_/ /  PikiwiDB(4.0.0) 64 bits 
|  __/  | || |/ /| |\ \ /\ / /| || | | || ___ \ 
| |     | ||   < | | \ V  V / | || |/ / | |_/ /  Port: 9221
\_|     |_||_|\_\|_|  \_/\_/  |_||___/  \____/   https://github.com/OpenAtomFoundation/pika 


New event object 0x15ae04768
Delete event object 0x15ae04768
New event object 0x15ae04768
New event object 0x15ae04e58
New event object 0x14ae05608
New event object 0x14ae05d48
New event object 0x14ae06218
New event object 0x14ae066e8
New event object 0x14ae06bb8
New event object 0x14ae07088
New event object 0x14ae07558
New event object 0x14ae07a28
Delete event object 0x14ae07a28
Delete event object 0x15ae04768
Delete event object 0x15ae04e58
Delete event object 0x14ae05608
Delete event object 0x14ae05d48
Delete event object 0x14ae06218
Delete event object 0x14ae066e8
Delete event object 0x14ae06bb8
Delete event object 0x14ae07088
Delete event object 0x14ae07558
New event object 0x13c904098
New event object 0x13c9041b8
New event object 0x15ae05488
New event object 0x13ae04098
New event object 0x13c804098
New event object 0x13c8041b8
New event object 0x14ae05668
New event object 0x14ae05b38
New event object 0x14ae06008
New event object 0x14ae064d8
Delete event object 0x14ae064d8
Delete event object 0x13c904098
Delete event object 0x13c9041b8
Delete event object 0x15ae05488
Delete event object 0x13ae04098
Delete event object 0x13c804098
Delete event object 0x13c8041b8
Delete event object 0x14ae05668
Delete event object 0x14ae05b38
Delete event object 0x14ae06008
New event object 0x13ae04098
Delete event object 0x13ae04098
New event object 0x15ae05488
New event object 0x15ae04768
New event object 0x15ae05208
New event object 0x15ae05bc8
New event object 0x15ae061d8
New event object 0x15ae066a8
New event object 0x15ae06b78
New event object 0x15ae07048
New event object 0x15ae07518
New event object 0x15ae079e8
Delete event object 0x15ae07048
Delete event object 0x15ae06b78
Delete event object 0x15ae066a8
Delete event object 0x15ae061d8
Delete event object 0x15ae05bc8
Delete event object 0x15ae05208
New event object 0x15ae05208
Delete event object 0x15ae05208
New event object 0x14ae054d8
Delete event object 0x14ae054d8
New event object 0x15ae05208
Delete event object 0x15ae05208
New event object 0x13cc04098
Delete event object 0x13cc04098
New event object 0x14ae054d8
Delete event object 0x14ae054d8
New event object 0x15ae05208
Delete event object 0x15ae05208
New event object 0x14ae054d8
Delete event object 0x14ae054d8
New event object 0x14ae054d8
Delete event object 0x14ae054d8
New event object 0x15ae05208
Delete event object 0x15ae05208
New event object 0x14ae054d8
Delete event object 0x14ae054d8
New event object 0x13cd04098
Delete event object 0x13cd04098
New event object 0x13cd04098
Delete event object 0x13cd04098
New event object 0x14ae054d8
Delete event object 0x14ae054d8
New event object 0x14ae054d8
Delete event object 0x14ae054d8
New event object 0x15ae05208
Delete event object 0x15ae05208
New event object 0x13ae04098
Delete event object 0x13ae04098
New event object 0x14ae05b38
Delete event object 0x14ae05b38
New event object 0x15ae05208
Delete event object 0x15ae05208
New event object 0x14ae054d8
Delete event object 0x14ae054d8
New event object 0x15ae05208
Delete event object 0x15ae05208
New event object 0x13c8041c8
Delete event object 0x13c8041c8
New event object 0x14ae054d8
Delete event object 0x14ae054d8
New event object 0x14ae054d8
Delete event object 0x14ae054d8
New event object 0x14ae054d8
Delete event object 0x14ae054d8
@AlexStocks AlexStocks changed the title 把 redis 8 变成 pikiwidb 的 slave bug: let redis 8 as slave of pikiwidb Aug 18, 2023
@chaodyna
Copy link

can I try it😋

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants