You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@geode.apache.org by "jujoramos (GitHub)" <gi...@apache.org> on 2019/03/22 13:15:42 UTC

[GitHub] [geode] jujoramos opened pull request #3349: GEODE-6551: Fix Constraints Check in Alter Region

GEODE-6551: Fix Constraints Check in Alter Region

Some persistence constraints were not correctly validated for a
partitioned region before associating an async-event-queue and/or
gateway-sender, leaving the region and the cluster configuration
service inconsistent.

- Fixed minor warnings.
- Fixed the internal validation implemented by PartitionedRegion.
- Some method's signatures were changed from "parallelGatewaySender" to
"parallelAsynchronousEventDispatcher" as they are used alike for
both a gateway-sender and async-event-queue.

Thank you for submitting a contribution to Apache Geode.

In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:

### For all changes:
- [X] Is there a JIRA ticket associated with this PR? Is it referenced in the commit message?

- [X] Has your PR been rebased against the latest commit within the target branch (typically `develop`)?

- [X] Is your initial contribution a single, squashed commit?

- [X] Does `gradlew build` run cleanly?

- [X] Have you written or updated unit tests to verify your changes?

- [X] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under [ASF 2.0](http://www.apache.org/legal/resolved.html#category-a)?

### Note:
Please ensure that once the PR is submitted, check Concourse for build issues and
submit an update to your PR as soon as possible. If you need help, please send an
email to dev@geode.apache.org.


[ Full content available at: https://github.com/apache/geode/pull/3349 ]
This message was relayed via gitbox.apache.org for notifications@geode.apache.org

[GitHub] [geode] jujoramos commented on pull request #3349: GEODE-6551: Fix Constraints Check in Alter Region

Posted by "jujoramos (GitHub)" <gi...@apache.org>.
Same as before: the method is used to validate both a `gateway-sender` and a `async-event-queue`, that's why I changed the signature.

[ Full content available at: https://github.com/apache/geode/pull/3349 ]
This message was relayed via gitbox.apache.org for notifications@geode.apache.org

[GitHub] [geode] jujoramos commented on issue #3349: GEODE-6551: Fix Constraints Check in Alter Region

Posted by "jujoramos (GitHub)" <gi...@apache.org>.
@nabarunnag @boglesby: the PR is ready for review now.

[ Full content available at: https://github.com/apache/geode/pull/3349 ]
This message was relayed via gitbox.apache.org for notifications@geode.apache.org

[GitHub] [geode] jinmeiliao commented on pull request #3349: GEODE-6551: Fix Constraints Check in Alter Region

Posted by "jinmeiliao (GitHub)" <gi...@apache.org>.
We don't need to "deprecate" the methods as this class is in the internal package. What I was saying is that this method seems to be update the gateway sender id instead of AEQ ids, or am I wrong?

[ Full content available at: https://github.com/apache/geode/pull/3349 ]
This message was relayed via gitbox.apache.org for notifications@geode.apache.org

[GitHub] [geode] jujoramos commented on pull request #3349: GEODE-6551: Fix Constraints Check in Alter Region

Posted by "jujoramos (GitHub)" <gi...@apache.org>.
The method, despite its confusing name, updates both the `gateway-sender` and `async-event-queue` (internally there's only **one single list** containing both types of dispatchers without any distinction), that's why I changed the name. I'll go ahead and remove the old versions instead of deprecating them.

[ Full content available at: https://github.com/apache/geode/pull/3349 ]
This message was relayed via gitbox.apache.org for notifications@geode.apache.org

[GitHub] [geode] jinmeiliao commented on pull request #3349: GEODE-6551: Fix Constraints Check in Alter Region

Posted by "jinmeiliao (GitHub)" <gi...@apache.org>.
still, looks like we are validating the gateway sender id here, so the old name seems more appropriate.

[ Full content available at: https://github.com/apache/geode/pull/3349 ]
This message was relayed via gitbox.apache.org for notifications@geode.apache.org

[GitHub] [geode] jinmeiliao commented on pull request #3349: GEODE-6551: Fix Constraints Check in Alter Region

Posted by "jinmeiliao (GitHub)" <gi...@apache.org>.
the old method name seems more appropriate here.

[ Full content available at: https://github.com/apache/geode/pull/3349 ]
This message was relayed via gitbox.apache.org for notifications@geode.apache.org

[GitHub] [geode] jujoramos commented on pull request #3349: GEODE-6551: Fix Constraints Check in Alter Region

Posted by "jujoramos (GitHub)" <gi...@apache.org>.
The method is used indistinctly to add both a `gateway-sender` and a `async-event-queue`, that's why I changed the signature. Leaving the old method name only confuses the reader if you ask me (the name implies that it's only used to add a `gateway-sender`)... Why do you say the old method name is more appropriate?.

[ Full content available at: https://github.com/apache/geode/pull/3349 ]
This message was relayed via gitbox.apache.org for notifications@geode.apache.org

[GitHub] [geode] jujoramos commented on issue #3349: GEODE-6551: Fix Constraints Check in Alter Region

Posted by "jujoramos (GitHub)" <gi...@apache.org>.
The failures are caused by a change in the exception thrown by the `PartitionedRegion` class, will fix the tests and commit the changes shortly.

[ Full content available at: https://github.com/apache/geode/pull/3349 ]
This message was relayed via gitbox.apache.org for notifications@geode.apache.org

[GitHub] [geode] jujoramos commented on issue #3349: GEODE-6551: Fix Constraints Check in Alter Region

Posted by "jujoramos (GitHub)" <gi...@apache.org>.
@jinmeiliao: looks like a later commit to `develop` is generating some conflicts on this PR, will solve the conflicts locally, deprecate the old methods instead of directly rename them and squash the commits altogether to make the review easier. Cheers.

[ Full content available at: https://github.com/apache/geode/pull/3349 ]
This message was relayed via gitbox.apache.org for notifications@geode.apache.org

[GitHub] [geode] jujoramos closed pull request #3349: GEODE-6551: Fix Constraints Check in Alter Region

Posted by "jujoramos (GitHub)" <gi...@apache.org>.
[ pull request closed by jujoramos ]

[ Full content available at: https://github.com/apache/geode/pull/3349 ]
This message was relayed via gitbox.apache.org for notifications@geode.apache.org