Skip to content
This repository has been archived by the owner on Jun 7, 2021. It is now read-only.

Preventing a scenario where more than one the subscribe notification task can be scheduled simultaneously #488

Closed
wants to merge 1 commit into from

Conversation

pramodin
Copy link
Contributor

@vrozov please see. I missed this, something didnt feel right.

… notification task can be scheduled simultaneously
@vrozov
Copy link
Member

vrozov commented Mar 18, 2017

It is OK to have more than one ListenersNotifier scheduled for execution. It follows at least one semantic. When there is data to send, there must be at least one ListenersNotifier running or scheduled for execution. The design goal is to prevent unlimited number of ListenersNotifier to be added to the ExecutionService queue for execution when Publisher is faster than Subscribers and have at least one when at least one subscriber still has data to send. Note that LogicalNode.addedData() handles the case when it is invoked and there is no data to send.

@vrozov
Copy link
Member

vrozov commented Apr 14, 2017

@PramodSSImmaneni Please close the PR if you agree that the synchronization is optional.

@pramodin
Copy link
Contributor Author

@vrozov this doesn't need to block 3.6.0 and you can mark the JIRA resolved. There may still be validity to this as opposed to doing at-least once and it might give better performance. I need to look into this deeper to see if it does to justify the change. I will change the heading and leave it open till I can do that.

@pramodin pramodin changed the title APEXCORE-641 Preventing a scenario where more than one the subscribe notification task can be scheduled simultaneously Preventing a scenario where more than one the subscribe notification task can be scheduled simultaneously Apr 24, 2017
@vrozov
Copy link
Member

vrozov commented Apr 24, 2017

@PramodSSImmaneni Every PR should have a JIRA associated with it. Please close the PR and open a new JIRA to discuss if proposed changes are necessary.

@vrozov
Copy link
Member

vrozov commented Jul 13, 2017

Please file new JIRA and open new PR if this is still and issue.

@vrozov vrozov closed this Jul 13, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants