Skip to content

[ISSUE #2241] Reinforcement hook implementation to support abort processing #2243

Closed
imaffe wants to merge 7 commits intoapache:developfrom
imaffe:affe-0812-chepick
Closed

[ISSUE #2241] Reinforcement hook implementation to support abort processing #2243
imaffe wants to merge 7 commits intoapache:developfrom
imaffe:affe-0812-chepick

Conversation

@imaffe
Copy link
Contributor

@imaffe imaffe commented Aug 12, 2020

FEATURE REQUEST

Currently the broker hooks resides in mqtrace package, which doesn't describe hook's general usage. We need to refactor them to a different subpackage
We need to make hooks be able to interrupt the sending/consume process, by return early with error messages.

@imaffe imaffe force-pushed the affe-0812-chepick branch 2 times, most recently from 5c20794 to 8f62e74 Compare August 12, 2020 02:32
Copy link
Contributor

@RongtongJin RongtongJin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be better to add some UTs to verify correctness

Comment on lines 631 to 632
case ResponseCode.FLOW_CONTROL:
break;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This break can only jump out of the switch but not out of the for loop

@RongtongJin
Copy link
Contributor

Plz pass the CI

@RongtongJin RongtongJin changed the title [ISSUE #2241] reinforcement hook implementation to support abort processing [ISSUE #2241] Reinforcement hook implementation to support abort processing Aug 12, 2020
@imaffe imaffe force-pushed the affe-0812-chepick branch from 8f62e74 to 6ef4580 Compare August 12, 2020 03:31
@coveralls
Copy link

coveralls commented Aug 12, 2020

Coverage Status

Coverage increased (+0.3%) to 51.456% when pulling 171716a on imaffe:affe-0812-chepick into a093f8a on apache:develop.

@RongtongJin RongtongJin added this to the 4.8.0 milestone Aug 13, 2020
@imaffe imaffe force-pushed the affe-0812-chepick branch from 58559b5 to b4937a6 Compare August 13, 2020 06:16
@imaffe imaffe force-pushed the affe-0812-chepick branch from b4937a6 to 79270c3 Compare August 13, 2020 11:43
@imaffe imaffe force-pushed the affe-0812-chepick branch from d58b5c2 to 171716a Compare August 17, 2020 06:18
@RongtongJin RongtongJin closed this Dec 4, 2020
@RongtongJin RongtongJin removed this from the 4.8.0 milestone Dec 4, 2020
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.

3 participants