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

check null point before setting auto read #7999

Merged
merged 1 commit into from
Oct 1, 2020
Merged

Conversation

yuanboliu
Copy link
Member

@yuanboliu yuanboliu commented Sep 7, 2020

#7919 was forced to be closed.
I've opened a new pr to address rebase issue.

Pulsar enable throttler to controll the speed of consuming data. But sometimes ctx will be closed while throttler is running in a independent thread. We should check ctx null point before setting auto read.
NPE will be thrown if throttler is enabled and ctx is closed. It would be more graceful if we check null before enabling auto read

@sijie @codelipenghui

@jiazhai jiazhai added this to the 2.7.0 milestone Sep 8, 2020
@codelipenghui
Copy link
Contributor

/pulsarbot run-failure-checks

1 similar comment
@zymap
Copy link
Member

zymap commented Sep 15, 2020

/pulsarbot run-failure-checks

@sijie sijie merged commit eb1165b into apache:master Oct 1, 2020
lbenc135 pushed a commit to lbenc135/pulsar that referenced this pull request Oct 3, 2020
apache#7919  was forced to be closed. 
I've opened a new pr to address rebase issue.

Pulsar enable throttler to controll the speed of consuming data. But sometimes ctx will be closed while throttler is running in a independent thread. We should check ctx null point before setting auto read.
NPE will be thrown if throttler is enabled and ctx is closed. It would be more graceful if we check null before enabling auto read
wolfstudy pushed a commit that referenced this pull request Oct 30, 2020
#7919  was forced to be closed. 
I've opened a new pr to address rebase issue.

Pulsar enable throttler to controll the speed of consuming data. But sometimes ctx will be closed while throttler is running in a independent thread. We should check ctx null point before setting auto read.
NPE will be thrown if throttler is enabled and ctx is closed. It would be more graceful if we check null before enabling auto read

(cherry picked from commit eb1165b)
huangdx0726 pushed a commit to huangdx0726/pulsar that referenced this pull request Nov 13, 2020
apache#7919  was forced to be closed. 
I've opened a new pr to address rebase issue.

Pulsar enable throttler to controll the speed of consuming data. But sometimes ctx will be closed while throttler is running in a independent thread. We should check ctx null point before setting auto read.
NPE will be thrown if throttler is enabled and ctx is closed. It would be more graceful if we check null before enabling auto read
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.

None yet

5 participants