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 2021/07/06 18:03:18 UTC

[GitHub] [geode] pivotal-eshu commented on a change in pull request #6659: GEODE-9404: Do not log error message if sender is not configured.

pivotal-eshu commented on a change in pull request #6659:
URL: https://github.com/apache/geode/pull/6659#discussion_r664771209



##########
File path: geode-core/src/main/java/org/apache/geode/internal/cache/TXLastEventInTransactionUtils.java
##########
@@ -77,11 +78,7 @@ private static boolean checkNoSendersGroupTransactionEvents(List<EntryEventImpl>
       Cache cache) throws ServiceConfigurationError {
     for (String senderId : getSenderIdsForEvents(callbacks)) {
       GatewaySender sender = cache.getGatewaySender(senderId);
-      if (sender == null) {
-        logger.error("No sender found for {}", senderId);
-        throw new ServiceConfigurationError("No information for senderId: " + senderId);
-      }
-      if (sender.mustGroupTransactionEvents()) {
+      if (sender != null && sender.mustGroupTransactionEvents()) {

Review comment:
       In the flow of the code to getLastTransactionEvent, checkNoSendersGroupTransactionEvents was executed before doesSenderGroupTransactionEvents.
   
   Method checkNoSendersGroupTransactionEvents returns false if there is one op needs to send to a GatewaySender which has mustGroupTransactionEvents set to true. Otherwise doesSenderGroupTransactionEvents method won't be executed (getLastTransactionEvent returns null in that case).
   
   If in a tx, there is one op needs to send to gateway with mustGroupTransactionEvents setting, all ops in the transaction should as well. If not, it means user did not configure the senders correctly (for the transaction executed). 




-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@geode.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org