You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geode.apache.org by nabarun nag <nn...@pivotal.io> on 2016/11/19 00:35:24 UTC

Review Request 53917: GEODE-2123 Replace static members in ParallelgatewaySenderQueues with instance variables

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/53917/
-----------------------------------------------------------

Review request for geode, Barry Oglesby, Jason Huynh, Dan Smith, and xiaojian zhou.


Repository: geode


Description
-------

All parallel sender queues shared one BatchRemovalThread, which led to the case that if BatchRemovalThread thread was killed by one sender, all secondary sender queues will keep growing as no prq remove messages will be sent to them.
Also, the static variables in ParallelGatewaySenderQueue needs to be converted in to instance variables, so that the senders don't share these variables and work independent of each other.

Fix:
statics converted to final instance variables.
cleanUpStatics function removed.


Diffs
-----

  geode-core/src/main/java/org/apache/geode/internal/cache/GemFireCacheImpl.java 7b2e7ca 
  geode-core/src/main/java/org/apache/geode/internal/cache/wan/parallel/ParallelGatewaySenderQueue.java 30773f9 

Diff: https://reviews.apache.org/r/53917/diff/


Testing
-------


Thanks,

nabarun nag


Re: Review Request 53917: GEODE-2123 Replace static members in ParallelgatewaySenderQueues with instance variables

Posted by nabarun nag <nn...@pivotal.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/53917/
-----------------------------------------------------------

(Updated Nov. 19, 2016, 1:14 a.m.)


Review request for geode, Barry Oglesby, Jason Huynh, Dan Smith, and xiaojian zhou.


Repository: geode


Description
-------

All parallel sender queues shared one BatchRemovalThread, which led to the case that if BatchRemovalThread thread was killed by one sender, all secondary sender queues will keep growing as no prq remove messages will be sent to them.
Also, the static variables in ParallelGatewaySenderQueue needs to be converted in to instance variables, so that the senders don't share these variables and work independent of each other.

Fix:
statics converted to final instance variables.
cleanUpStatics function removed.


Diffs (updated)
-----

  geode-core/src/main/java/org/apache/geode/internal/cache/GemFireCacheImpl.java 7b2e7ca 
  geode-core/src/main/java/org/apache/geode/internal/cache/wan/parallel/ParallelGatewaySenderQueue.java 30773f9 

Diff: https://reviews.apache.org/r/53917/diff/


Testing
-------


Thanks,

nabarun nag


Re: Review Request 53917: GEODE-2123 Replace static members in ParallelgatewaySenderQueues with instance variables

Posted by nabarun nag <nn...@pivotal.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/53917/
-----------------------------------------------------------

(Updated Nov. 19, 2016, 1:12 a.m.)


Review request for geode, Barry Oglesby, Jason Huynh, Dan Smith, and xiaojian zhou.


Repository: geode


Description
-------

All parallel sender queues shared one BatchRemovalThread, which led to the case that if BatchRemovalThread thread was killed by one sender, all secondary sender queues will keep growing as no prq remove messages will be sent to them.
Also, the static variables in ParallelGatewaySenderQueue needs to be converted in to instance variables, so that the senders don't share these variables and work independent of each other.

Fix:
statics converted to final instance variables.
cleanUpStatics function removed.


Diffs (updated)
-----

  geode-core/src/main/java/org/apache/geode/internal/cache/GemFireCacheImpl.java 7b2e7ca 
  geode-core/src/main/java/org/apache/geode/internal/cache/wan/parallel/ParallelGatewaySenderQueue.java 30773f9 

Diff: https://reviews.apache.org/r/53917/diff/


Testing
-------


Thanks,

nabarun nag


Re: Review Request 53917: GEODE-2123 Replace static members in ParallelgatewaySenderQueues with instance variables

Posted by Barry Oglesby <bo...@pivotal.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/53917/#review156363
-----------------------------------------------------------




geode-core/src/main/java/org/apache/geode/internal/cache/wan/parallel/ParallelGatewaySenderQueue.java 
<https://reviews.apache.org/r/53917/#comment226584>

    Why did you take the removeMembersWithSameOrNewerVersion and retainMembersWithSameOrNewerVersion calls out? Is it because every member is newer than 8.0? If so, then can we get rid of all the processing below the removeMembersWithSameOrNewerVersion call since the recipients will be empty?


- Barry Oglesby


On Nov. 19, 2016, 12:35 a.m., nabarun nag wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/53917/
> -----------------------------------------------------------
> 
> (Updated Nov. 19, 2016, 12:35 a.m.)
> 
> 
> Review request for geode, Barry Oglesby, Jason Huynh, Dan Smith, and xiaojian zhou.
> 
> 
> Repository: geode
> 
> 
> Description
> -------
> 
> All parallel sender queues shared one BatchRemovalThread, which led to the case that if BatchRemovalThread thread was killed by one sender, all secondary sender queues will keep growing as no prq remove messages will be sent to them.
> Also, the static variables in ParallelGatewaySenderQueue needs to be converted in to instance variables, so that the senders don't share these variables and work independent of each other.
> 
> Fix:
> statics converted to final instance variables.
> cleanUpStatics function removed.
> 
> 
> Diffs
> -----
> 
>   geode-core/src/main/java/org/apache/geode/internal/cache/GemFireCacheImpl.java 7b2e7ca 
>   geode-core/src/main/java/org/apache/geode/internal/cache/wan/parallel/ParallelGatewaySenderQueue.java 30773f9 
> 
> Diff: https://reviews.apache.org/r/53917/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> nabarun nag
> 
>


Re: Review Request 53917: GEODE-2123 Replace static members in ParallelgatewaySenderQueues with instance variables

Posted by Jason Huynh <jh...@pivotal.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/53917/#review156370
-----------------------------------------------------------




geode-core/src/main/java/org/apache/geode/internal/cache/wan/parallel/ParallelGatewaySenderQueue.java (line 1710)
<https://reviews.apache.org/r/53917/#comment226587>

    This and the below if statement can be removed...



geode-core/src/main/java/org/apache/geode/internal/cache/wan/parallel/ParallelGatewaySenderQueue.java 
<https://reviews.apache.org/r/53917/#comment226588>

    This needs to stay


- Jason Huynh


On Nov. 19, 2016, 12:35 a.m., nabarun nag wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/53917/
> -----------------------------------------------------------
> 
> (Updated Nov. 19, 2016, 12:35 a.m.)
> 
> 
> Review request for geode, Barry Oglesby, Jason Huynh, Dan Smith, and xiaojian zhou.
> 
> 
> Repository: geode
> 
> 
> Description
> -------
> 
> All parallel sender queues shared one BatchRemovalThread, which led to the case that if BatchRemovalThread thread was killed by one sender, all secondary sender queues will keep growing as no prq remove messages will be sent to them.
> Also, the static variables in ParallelGatewaySenderQueue needs to be converted in to instance variables, so that the senders don't share these variables and work independent of each other.
> 
> Fix:
> statics converted to final instance variables.
> cleanUpStatics function removed.
> 
> 
> Diffs
> -----
> 
>   geode-core/src/main/java/org/apache/geode/internal/cache/GemFireCacheImpl.java 7b2e7ca 
>   geode-core/src/main/java/org/apache/geode/internal/cache/wan/parallel/ParallelGatewaySenderQueue.java 30773f9 
> 
> Diff: https://reviews.apache.org/r/53917/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> nabarun nag
> 
>