Received empty response from redis in middle of processing psync on client side. #12433
Replies: 1 comment
-
Got below response from chatgpt. When a Redis node performs a full resync with a secondary node (also known as a replica or slave node), it synchronizes the entire dataset from the primary node. During this process, the primary node sends a sequence of commands and data to the secondary node to rebuild the dataset. One of the commands used in this process is the bulk transfer command. The bulk transfer command is used to send a large amount of data efficiently from the primary to the secondary node. To separate different pieces of data, Redis uses the newline character \n as a delimiter. So, when you see \n being sent during the full resync, it indicates that the primary node is transmitting data in separate chunks or lines. The presence of \n during full resync is perfectly normal and expected behavior. It helps the secondary node parse the data and reconstruct the dataset accurately. As the primary node sends the data in chunks, the secondary node processes these chunks one by one until it has received all the data necessary to rebuild the dataset. In summary, seeing \n during full resync in Redis is part of the replication process and ensures proper data synchronization between the primary and secondary nodes. |
Beta Was this translation helpful? Give feedback.
-
we observed that, receiving empty response from redis while processing PSYNC response.
Pls find the attached pcap data flow between client and server.
Could you pls let us know the scenario and when can it happen?
Beta Was this translation helpful? Give feedback.
All reactions