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

[ROCKETMQ-14]invoke callback shoule be invoked in an executor rather than in current thread. #2

Closed
wants to merge 1 commit into from

Conversation

Jaskey
Copy link
Contributor

@Jaskey Jaskey commented Dec 22, 2016

For success callback, processResponseCommand will execute invoke callback in a saparate executor rather than the time thread.

But for timeout problem , the timeout callback will be invoked directly in timer thread/netty selector thread.

If the user put some time-cost task when timeout, the other timeout callback will be blocked to schedule.

JIRA issue: https://issues.apache.org/jira/browse/ROCKETMQ-14

@vongosling
Copy link
Member

@Jaskey Thanks for your PR, Could you paste some unit test for these question :-) . please see our contributing checklist, https://github.com/apache/incubator-rocketmq/blob/master/CONTRIBUTING.md

@Jaskey Jaskey changed the title scanResponseTable callback shoule be invoked in an executor rather than in timer thread. invoke callback shoule be invoked in an executor rather than in current thread. Dec 22, 2016
@Jaskey
Copy link
Contributor Author

Jaskey commented Dec 22, 2016

@vongosling

please check the commited unit test .

@vongosling
Copy link
Member

@Jaskey Thanks your PR

Could you abide our PR process(modify your PR subject and mention your jira address in the description), please follow this PR. #5

@Jaskey Jaskey changed the title invoke callback shoule be invoked in an executor rather than in current thread. [ROCKETMQ-14]invoke callback shoule be invoked in an executor rather than in current thread. Dec 26, 2016
@vongosling
Copy link
Member

Source code seems ok, please @zhouxinyu @lollipopjin review it

@asfgit asfgit closed this in 1356e35 Dec 27, 2016
@zhouxinyu
Copy link
Member

Hi,

This PR has been merged, but next time please use JIRA issue name(ROCKETMQ-14) as branch name instead of master. Please refer to here for more details.

Thanks.

@sdmjhca sdmjhca mentioned this pull request Nov 19, 2021
duhenglucky pushed a commit that referenced this pull request Jul 11, 2022
pingww pushed a commit that referenced this pull request Aug 26, 2022
lyx2000 added a commit to lyx2000/rocketmq that referenced this pull request Jun 30, 2023
# This is the 1st commit message:

add acl event

Signed-off-by: lyx <1419360299@qq.com>

# This is the commit message apache#2:

add update acl config event

Signed-off-by: lyx <1419360299@qq.com>

# This is the commit message apache#3:

refactor(event): fix rename

Signed-off-by: lyx <1419360299@qq.com>

# This is the commit message apache#4:

refactor(acl): track acl update event

Signed-off-by: lyx <1419360299@qq.com>

# Conflicts:
#	acl/src/main/java/org/apache/rocketmq/acl/plain/PlainPermissionManager.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants