[jira] [Updated] (GEODE-9734) ClientPublisher has race causing it to never publish a single message

2022-02-08 Thread Anthony Baker (Jira)


 [ 
https://issues.apache.org/jira/browse/GEODE-9734?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Anthony Baker updated GEODE-9734:
-
Labels: pull-request-available unreleased  (was: pull-request-available)

> ClientPublisher has race causing it to never publish a single message
> -
>
> Key: GEODE-9734
> URL: https://issues.apache.org/jira/browse/GEODE-9734
> Project: Geode
>  Issue Type: Bug
>  Components: redis
>Affects Versions: 1.15.0
>Reporter: Darrel Schneider
>Assignee: Darrel Schneider
>Priority: Major
>  Labels: pull-request-available, unreleased
> Fix For: 1.15.0
>
>
>  The ClientPublisher has a race condition that can cause it to add a message 
> to the queue but not drain it right away. The msg will never be published 
> unless that client publishes a second message.
> The order of events that cause the race is:
> 1. drainerThread: set active and publishes current batch
> 2. drainerThread: calls batch.fill and gets nothing
> 3. publishThread: adds msg to queue
> 4. publishThread: tests "active" see it is true so it does not call 
> fillBatchIfNeeded
> 5. drainerThread: sets "active" to false
> We now have one msg in the queue that will not be published until we add 
> another msg to the queue.
> This should be easy to fix. All we need to do in the drainerThread is one 
> more check of the queue after setting active to false



--
This message was sent by Atlassian Jira
(v8.20.1#820001)


[jira] [Updated] (GEODE-9734) ClientPublisher has race causing it to never publish a single message

2021-10-13 Thread Alexander Murmann (Jira)


 [ 
https://issues.apache.org/jira/browse/GEODE-9734?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alexander Murmann updated GEODE-9734:
-
Labels: needsTriage  (was: )

> ClientPublisher has race causing it to never publish a single message
> -
>
> Key: GEODE-9734
> URL: https://issues.apache.org/jira/browse/GEODE-9734
> Project: Geode
>  Issue Type: Bug
>  Components: redis
>Reporter: Darrel Schneider
>Priority: Major
>  Labels: needsTriage
>
>  The ClientPublisher has a race condition that can cause it to add a message 
> to the queue but not drain it right away. The msg will never be published 
> unless that client publishes a second message.
> The order of events that cause the race is:
> 1. drainerThread: set active and publishes current batch
> 2. drainerThread: calls batch.fill and gets nothing
> 3. publishThread: adds msg to queue
> 4. publishThread: tests "active" see it is true so it does not call 
> fillBatchIfNeeded
> 5. drainerThread: sets "active" to false
> We now have one msg in the queue that will not be published until we add 
> another msg to the queue.
> This should be easy to fix. All we need to do in the drainerThread is one 
> more check of the queue after setting active to false



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (GEODE-9734) ClientPublisher has race causing it to never publish a single message

2021-10-13 Thread Darrel Schneider (Jira)


 [ 
https://issues.apache.org/jira/browse/GEODE-9734?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Darrel Schneider updated GEODE-9734:

Affects Version/s: 1.15.0

> ClientPublisher has race causing it to never publish a single message
> -
>
> Key: GEODE-9734
> URL: https://issues.apache.org/jira/browse/GEODE-9734
> Project: Geode
>  Issue Type: Bug
>  Components: redis
>Affects Versions: 1.15.0
>Reporter: Darrel Schneider
>Assignee: Darrel Schneider
>Priority: Major
>  Labels: needsTriage, pull-request-available
>
>  The ClientPublisher has a race condition that can cause it to add a message 
> to the queue but not drain it right away. The msg will never be published 
> unless that client publishes a second message.
> The order of events that cause the race is:
> 1. drainerThread: set active and publishes current batch
> 2. drainerThread: calls batch.fill and gets nothing
> 3. publishThread: adds msg to queue
> 4. publishThread: tests "active" see it is true so it does not call 
> fillBatchIfNeeded
> 5. drainerThread: sets "active" to false
> We now have one msg in the queue that will not be published until we add 
> another msg to the queue.
> This should be easy to fix. All we need to do in the drainerThread is one 
> more check of the queue after setting active to false



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (GEODE-9734) ClientPublisher has race causing it to never publish a single message

2021-10-13 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/GEODE-9734?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated GEODE-9734:
--
Labels: needsTriage pull-request-available  (was: needsTriage)

> ClientPublisher has race causing it to never publish a single message
> -
>
> Key: GEODE-9734
> URL: https://issues.apache.org/jira/browse/GEODE-9734
> Project: Geode
>  Issue Type: Bug
>  Components: redis
>Reporter: Darrel Schneider
>Assignee: Darrel Schneider
>Priority: Major
>  Labels: needsTriage, pull-request-available
>
>  The ClientPublisher has a race condition that can cause it to add a message 
> to the queue but not drain it right away. The msg will never be published 
> unless that client publishes a second message.
> The order of events that cause the race is:
> 1. drainerThread: set active and publishes current batch
> 2. drainerThread: calls batch.fill and gets nothing
> 3. publishThread: adds msg to queue
> 4. publishThread: tests "active" see it is true so it does not call 
> fillBatchIfNeeded
> 5. drainerThread: sets "active" to false
> We now have one msg in the queue that will not be published until we add 
> another msg to the queue.
> This should be easy to fix. All we need to do in the drainerThread is one 
> more check of the queue after setting active to false



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (GEODE-9734) ClientPublisher has race causing it to never publish a single message

2021-10-13 Thread Darrel Schneider (Jira)


 [ 
https://issues.apache.org/jira/browse/GEODE-9734?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Darrel Schneider updated GEODE-9734:

Labels: pull-request-available  (was: needsTriage pull-request-available)

> ClientPublisher has race causing it to never publish a single message
> -
>
> Key: GEODE-9734
> URL: https://issues.apache.org/jira/browse/GEODE-9734
> Project: Geode
>  Issue Type: Bug
>  Components: redis
>Affects Versions: 1.15.0
>Reporter: Darrel Schneider
>Assignee: Darrel Schneider
>Priority: Major
>  Labels: pull-request-available
>
>  The ClientPublisher has a race condition that can cause it to add a message 
> to the queue but not drain it right away. The msg will never be published 
> unless that client publishes a second message.
> The order of events that cause the race is:
> 1. drainerThread: set active and publishes current batch
> 2. drainerThread: calls batch.fill and gets nothing
> 3. publishThread: adds msg to queue
> 4. publishThread: tests "active" see it is true so it does not call 
> fillBatchIfNeeded
> 5. drainerThread: sets "active" to false
> We now have one msg in the queue that will not be published until we add 
> another msg to the queue.
> This should be easy to fix. All we need to do in the drainerThread is one 
> more check of the queue after setting active to false



--
This message was sent by Atlassian Jira
(v8.3.4#803005)