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

Force WorkerBolt to be more strict with stored data #2546

Merged
merged 1 commit into from Sep 16, 2019

Conversation

surabujin
Copy link
Collaborator

@surabujin surabujin commented Jun 26, 2019

Lock all operations with pendingTasks map into the WorkerBolt i.e.
do not allow access there to the inheritors. If inheritors have access
to this map there is no way to implement LCM for objects stored there.

The original problem was lack of cleanup on timeout action.

Also make correct routing/dispatching of onTimeout event, till now
this dispach have happended inside dispatch method of
org.openkilda.wfm.share.hubandspoke.CoordinatedBolt(happens before
handleInput) as result all checks and cleanup steps implemented on
handleInput level are skipped.


This change is Reviewable

@surabujin surabujin added the bug label Jun 26, 2019
@surabujin surabujin added this to Backlog in Open-Kilda Board via automation Jun 26, 2019
@surabujin surabujin force-pushed the hs-worker-timeout-handling-fix branch from d28eedd to 4dbaafa Compare June 27, 2019 07:41
@surabujin surabujin force-pushed the hs-worker-timeout-handling-fix branch 2 times, most recently from 00961f9 to ecb7805 Compare July 15, 2019 09:28
@surabujin surabujin force-pushed the hs-worker-timeout-handling-fix branch from ecb7805 to 32c20d3 Compare July 31, 2019 14:43
@surabujin surabujin force-pushed the hs-worker-timeout-handling-fix branch from 32c20d3 to 76670d0 Compare August 14, 2019 09:51
Lock all operations with `pendingTasks` map into the `WorkerBolt` i.e.
do not allow access there to the inheritors. If inheritors have access
to this map there is no way to implement LCM for objects stored there.

The original problem was lack of cleanup on timeout action.

Also make correct routing/dispatching of `onTimeout` event, till now
this dispach have happended inside `dispatch` method of
`org.openkilda.wfm.share.hubandspoke.CoordinatedBolt`(happens before
`handleInput`) as result all checks and cleanup steps implemented on
`handleInput` level are skipped.
Copy link
Collaborator

@nikitamarchenko nikitamarchenko left a comment

Choose a reason for hiding this comment

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

Reviewed 13 of 13 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @dpoltavets, @niksv, @sergii-iakovenko, and @timofei-durakov)

@timofei-durakov timofei-durakov merged commit 59fb141 into develop Sep 16, 2019
Open-Kilda Board automation moved this from Backlog to Done Sep 16, 2019
@timofei-durakov timofei-durakov deleted the hs-worker-timeout-handling-fix branch September 16, 2019 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

None yet

5 participants