You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by dg...@apache.org on 2019/04/12 15:32:47 UTC
[ignite] branch master updated: IGNITE-11738 Incorrect check
ObjectInput.available() in CacheMetricsSnapshot
This is an automated email from the ASF dual-hosted git repository.
dgovorukhin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git
The following commit(s) were added to refs/heads/master by this push:
new 3627247 IGNITE-11738 Incorrect check ObjectInput.available() in CacheMetricsSnapshot
3627247 is described below
commit 36272470122ba0b3df2f897e8edb4666520de5be
Author: Dmitriy Govorukhin <dm...@gmail.com>
AuthorDate: Fri Apr 12 18:32:19 2019 +0300
IGNITE-11738 Incorrect check ObjectInput.available() in CacheMetricsSnapshot
---
.../apache/ignite/internal/processors/cache/CacheMetricsSnapshot.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheMetricsSnapshot.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheMetricsSnapshot.java
index 48f9764..0f6662a 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheMetricsSnapshot.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheMetricsSnapshot.java
@@ -1162,7 +1162,7 @@ public class CacheMetricsSnapshot implements CacheMetrics, Externalizable {
}
// 11 long and 5 float values give 108 bytes in total.
- if (in.available() >= 108) {
+ if (in.available() >= 68) {
entryProcessorPuts = in.readLong();
entryProcessorAverageInvocationTime = in.readFloat();
entryProcessorInvocations = in.readLong();