[
https://issues.apache.org/jira/browse/GEODE-4099?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16291703#comment-16291703
]
ASF GitHub Bot commented on GEODE-4099:
---------------------------------------
dschneider-pivotal closed pull request #1168: GEODE-4099: change warning to
debug
URL: https://github.com/apache/geode/pull/1168
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git
a/geode-core/src/main/java/org/apache/geode/internal/cache/partitioned/SizeMessage.java
b/geode-core/src/main/java/org/apache/geode/internal/cache/partitioned/SizeMessage.java
index 29b143cd85..e496d9606b 100644
---
a/geode-core/src/main/java/org/apache/geode/internal/cache/partitioned/SizeMessage.java
+++
b/geode-core/src/main/java/org/apache/geode/internal/cache/partitioned/SizeMessage.java
@@ -106,7 +106,7 @@ public static SizeResponse send(Set recipients,
PartitionedRegion r, ArrayList<I
/**
* This message may be sent to nodes before the PartitionedRegion is
completely initialized due to
- * the RegionAdvisor(s) knowing about the existance of a partitioned region
at a very early part
+ * the RegionAdvisor(s) knowing about the existence of a partitioned region
at a very early part
* of the initialization
*/
@Override
@@ -166,8 +166,12 @@ protected boolean
operateOnPartitionedRegion(DistributionManager dm, Partitioned
dm, r.isInternalRegion());
}
} else {
- logger.warn(LocalizedMessage.create(
-
LocalizedStrings.SizeMessage_SIZEMESSAGE_REGION_NOT_FOUND_FOR_THIS_MEMBER,
regionId));
+ if (logger.isDebugEnabled()) {
+ // Note that this is more likely to happen with this message
+ // because of it returning false from failIfRegionMissing.
+ logger.debug(LocalizedMessage.create(
+
LocalizedStrings.SizeMessage_SIZEMESSAGE_REGION_NOT_FOUND_FOR_THIS_MEMBER,
regionId));
+ }
ReplyMessage.send(getSender(), getProcessorId(),
new ReplyException(new ForceReattemptException(
LocalizedStrings.SizeMessage_0_COULD_NOT_FIND_PARTITIONED_REGION_WITH_ID_1
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> Calling Region.size on a partitioned region can cause an intermittent warning
> log message
> -----------------------------------------------------------------------------------------
>
> Key: GEODE-4099
> URL: https://issues.apache.org/jira/browse/GEODE-4099
> Project: Geode
> Issue Type: Bug
> Components: regions
> Affects Versions: 1.1.0, 1.1.1, 1.2.0, 1.3.0, 1.2.1
> Reporter: Darrel Schneider
> Assignee: Darrel Schneider
>
> If Region.size is called on a partitioned region then you may see a warning
> logged that looks like this:
> {code}
> SizeMessage: Region "regionName" not found for this member
> {code}
> This warning should not have been logged and can be safely ignored.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)