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

fix: handle rsync response error in slave side #2319

Merged

Conversation

wangshao1
Copy link
Collaborator

@wangshao1 wangshao1 commented Jan 15, 2024

master节点收到slave节点拉取文件的请求之后,如果本地的dump目录被删除,会向slave节点回包,返回错误,但没有设置offset字段。
slave节点在收到回包之后,会比对offset字段,如果offset字段不匹配,会认为这是一个过期的回包丢弃掉,继续等待新的回包。这种情况下,master的错误会被被意外丢弃掉,导致请求超时。
修复方式,即在收到回包时单独处理错误的回包。

@github-actions github-actions bot added Invalid PR Title ☢️ Bug Something isn't working labels Jan 15, 2024
@chejinge chejinge changed the title bugfix: handle rsync response error in slave side fix: handle rsync response error in slave side Jan 16, 2024
@AlexStocks
Copy link
Contributor

无 issue 描述,pr conversation 也无描述是做啥的

@wangshao1
Copy link
Collaborator Author

This resolves #2272

@AlexStocks AlexStocks requested a review from baixin01 January 26, 2024 12:22
@AlexStocks AlexStocks merged commit 2e9f7ee into OpenAtomFoundation:unstable Jan 29, 2024
11 of 15 checks passed
bigdaronlee163 pushed a commit to bigdaronlee163/pika that referenced this pull request Jun 8, 2024
Co-authored-by: wangshaoyi <wangshaoyi@360.cn>
cheniujh pushed a commit to cheniujh/pika that referenced this pull request Sep 24, 2024
Co-authored-by: wangshaoyi <wangshaoyi@360.cn>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
☢️ Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants