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

[INLONG-7855][Sort] Fix Sort hang up reader in snapshot phase when reducing parallelism #7856

Merged
merged 2 commits into from
Apr 18, 2023

Conversation

EMsnap
Copy link
Contributor

@EMsnap EMsnap commented Apr 14, 2023

Prepare a Pull Request

Motivation

Fix Sort hang up reader in snapshot phase when reducing parallelism

1、When a subtask receives two chunk splits to read;
2、The first chunk reads perfectly, and then it will start a BinlogClient to read the binlogs from lw to hw in chunk1.
3、When the second chunk arrives the BinlogClient will be reused
4、So when reading chunk2 and start to read from lw to hw in chunk2, the binlog reader will be reused and the event listener in chunk1 will be reused also. So that the BINLOG_END event in chunk2 will never be received

Modifications

remove the eventListener in the formal chunk

Documentation

  • Does this pull request introduce a new feature? (no)

@dockerzhang
Copy link
Contributor

Please run spotless:apply to fix the check style error.

@EMsnap
Copy link
Contributor Author

EMsnap commented Apr 18, 2023

Please run spotless:apply to fix the check style error.

done

@dockerzhang dockerzhang merged commit d33b494 into apache:master Apr 18, 2023
8 checks passed
@EMsnap EMsnap deleted the 7885 branch May 30, 2023 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug][Sort] Hang up reader in snapshot phase when reducing paralleism
5 participants