You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@geode.apache.org by GitBox <gi...@apache.org> on 2020/11/26 21:53:43 UTC
[GitHub] [geode] mivanac opened a new pull request #5774: GEODE-8741_1: implementation of API changes
mivanac opened a new pull request #5774:
URL: https://github.com/apache/geode/pull/5774
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:
- [*] Is there a JIRA ticket associated with this PR? Is it referenced in the commit message?
- [*] Has your PR been rebased against the latest commit within the target branch (typically `develop`)?
- [*] Is your initial contribution a single, squashed commit?
- [*] Does `gradlew build` run cleanly?
- [ ] Have you written or updated unit tests to verify your changes?
- [ ] 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.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [geode] mivanac commented on pull request #5774: GEODE-8741_1: implementation of API changes
Posted by GitBox <gi...@apache.org>.
mivanac commented on pull request #5774:
URL: https://github.com/apache/geode/pull/5774#issuecomment-818615839
Thanks for comments. I agree with you that there is no gain from this PR. I will close these PRs.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [geode] agingade commented on pull request #5774: GEODE-8741_1: implementation of API changes
Posted by GitBox <gi...@apache.org>.
agingade commented on pull request #5774:
URL: https://github.com/apache/geode/pull/5774#issuecomment-818319699
I have added following comments in the ticket also:
I have to look into the PR to see what your are really are trying to achieve in this ticket. It will be helpful if you can add more information with the example (depending on the issue).
E.g.
Avoid sending CQ events for specific CQ query-operations (E.g. destroy Query operation) to client.
For a region.put() which results in CQ event with its query operation as destroy; avoid sending this event to client.
I am not seeing any value/scenario that needs this kind of behavior. Do you have any example can you please explain here.
The core CQ design aspect was to establish a data view representing a query result that can be expressed in the form of query. And support event mechanism that will enable to manage/maintain that view as the change happens on the source data. The changes requested in this ticket, breaks the core design and can allow one to represent/establish a different data view that is not in-line with the source data (a query result view). I don't see need for supporting that kind of behavior in the server side. If Client is not interested to see specific event/operation it should be filtering this out on the client side.
Why the need for this behavior?
Looking the Pull Request opened; its not like its avoiding processing of CQs, which is generally more expensive part of having CQ; only thing its avoiding sending the CQ event to client. If this is the behavior client/application is looking for; probably CQ is not the functionality to use.
Also, it will be nice to use Request For Change (RFC) process for any issues that has behavior/functional or new API requirements. It will help to get feedback during design phase itself.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [geode] onichols-pivotal commented on pull request #5774: GEODE-8741_1: implementation of API changes
Posted by GitBox <gi...@apache.org>.
onichols-pivotal commented on pull request #5774:
URL: https://github.com/apache/geode/pull/5774#issuecomment-807967304
This PR has been open for some while with no recent activity. Please keep Geode tidy by closing PRs you're not actively using.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [geode] mivanac closed pull request #5774: GEODE-8741_1: implementation of API changes
Posted by GitBox <gi...@apache.org>.
mivanac closed pull request #5774:
URL: https://github.com/apache/geode/pull/5774
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [geode] mivanac commented on a change in pull request #5774: GEODE-8741_1: implementation of API changes
Posted by GitBox <gi...@apache.org>.
mivanac commented on a change in pull request #5774:
URL: https://github.com/apache/geode/pull/5774#discussion_r604132226
##########
File path: geode-core/src/main/java/org/apache/geode/cache/query/CqQuery.java
##########
@@ -155,4 +155,12 @@
*/
boolean isDurable();
+ /**
+ * This allows to check if the CQ use option to suppress CQ update notification.
+ *
+ * @return boolean true if update is suppressed, false otherwise
+ * @since Geode 14.0
+ */
+ boolean isUpdateSuppressed();
Review comment:
Hi, could you remove CR, since requested changes are implemented.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [geode] kirklund commented on a change in pull request #5774: GEODE-8741_1: implementation of API changes
Posted by GitBox <gi...@apache.org>.
kirklund commented on a change in pull request #5774:
URL: https://github.com/apache/geode/pull/5774#discussion_r573331447
##########
File path: geode-core/src/main/java/org/apache/geode/cache/query/CqQuery.java
##########
@@ -155,4 +155,28 @@
*/
boolean isDurable();
+ /**
+ * This allows to check if the CQ use option to suppress CQ create notification.
+ *
+ * @return boolean true if create is suppressed, false otherwise
+ * @since Geode 14.0
Review comment:
I think this is supposed to be Geode 1.14?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [geode] mivanac commented on pull request #5774: GEODE-8741_1: implementation of API changes
Posted by GitBox <gi...@apache.org>.
mivanac commented on pull request #5774:
URL: https://github.com/apache/geode/pull/5774#issuecomment-810603506
Hi @jdeppe-pivotal, @jinmeiliao, @agingade, @DonalEvans, @nabarunnag, @jchen21, and @kirklund, could you review this PR.
Thanks.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [geode] agingade commented on pull request #5774: GEODE-8741_1: implementation of API changes
Posted by GitBox <gi...@apache.org>.
agingade commented on pull request #5774:
URL: https://github.com/apache/geode/pull/5774#issuecomment-818322444
From an implementation point of view; this seems to be added/handled in CqQuery as a CqAttributes...
E.g:
interestedEventsWithQueryOperations = { ALL, CREATE, UPDATE, DESTROY}
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [geode] mivanac commented on pull request #5774: GEODE-8741_1: implementation of API changes
Posted by GitBox <gi...@apache.org>.
mivanac commented on pull request #5774:
URL: https://github.com/apache/geode/pull/5774#issuecomment-808058812
This PR is waiting on review from CODEOWNERS.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [geode] agingade commented on pull request #5774: GEODE-8741_1: implementation of API changes
Posted by GitBox <gi...@apache.org>.
agingade commented on pull request #5774:
URL: https://github.com/apache/geode/pull/5774#issuecomment-816305074
I am having hard time understanding the requirement here...The jira ticket just mention block CQ notification, what kind of notification we are talking here...By design CQ does not raise any notification...Can you be more specific about the notification you are mentioning about...
Also, i don't think it should be managed by the create/destroy APIs or by adding entirely new set of APIs, thats redundant.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [geode] mivanac commented on pull request #5774: GEODE-8741_1: implementation of API changes
Posted by GitBox <gi...@apache.org>.
mivanac commented on pull request #5774:
URL: https://github.com/apache/geode/pull/5774#issuecomment-774268268
Main motivation is to simplify implementation, and also simplify adding and getting part to/from message ExecuteCQ.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [geode] kohlmu-pivotal commented on a change in pull request #5774: GEODE-8741_1: implementation of API changes
Posted by GitBox <gi...@apache.org>.
kohlmu-pivotal commented on a change in pull request #5774:
URL: https://github.com/apache/geode/pull/5774#discussion_r551066450
##########
File path: geode-core/src/main/java/org/apache/geode/cache/query/CqQuery.java
##########
@@ -155,4 +155,12 @@
*/
boolean isDurable();
+ /**
+ * This allows to check if the CQ use option to suppress CQ update notification.
+ *
+ * @return boolean true if update is suppressed, false otherwise
+ * @since Geode 14.0
+ */
+ boolean isUpdateSuppressed();
Review comment:
@mivanac I quite like the idea of possibly limiting what notifications one would like to receive. I think that the approach is maybe a little limiting, as it is specifically focussed on "update" only. Could we achieve a much more encompassing solution for delete or create as well? Maybe an inclusions or exclusions list of events that the end result would like to receive?
Given that this is an external facing API, I would encourage changes to be more encompassing, in order to avoid many API changes/deprecations of external facing APIs.
@upthewaterspout @agingade @nabarunnag could anyone of you possibly be able to work with @mivanac to come up with an API that is possibly a little more future proofed.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [geode] mivanac commented on pull request #5774: GEODE-8741_1: implementation of API changes
Posted by GitBox <gi...@apache.org>.
mivanac commented on pull request #5774:
URL: https://github.com/apache/geode/pull/5774#issuecomment-812085725
Thanks for the comments and proposal. I will apply it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [geode] agingade edited a comment on pull request #5774: GEODE-8741_1: implementation of API changes
Posted by GitBox <gi...@apache.org>.
agingade edited a comment on pull request #5774:
URL: https://github.com/apache/geode/pull/5774#issuecomment-818322444
From an implementation point of view; this seems to be added/handled in CqQuery as a CqAttributes...
E.g:
interestedEventsWithQueryOperations = { ALL, CREATE, UPDATE, DESTROY}
Again, this doesn't seem to be a generic usecase/requirement that needs to be added into apache Geode, my view.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org