Skip to content

Commit

Permalink
IGNITE-11352 Fixed deserialization of CacheMetricsSnapshot - Fixes ap…
Browse files Browse the repository at this point in the history
…ache#6133.

Signed-off-by: Alexey Goncharuk <alexey.goncharuk@gmail.com>
  • Loading branch information
ingvard authored and DirectXceriD committed Feb 26, 2019
1 parent 01de553 commit 610f4d6
Showing 1 changed file with 7 additions and 5 deletions.
Expand Up @@ -1165,11 +1165,13 @@ public CacheMetricsSnapshot(CacheMetrics loc, Collection<CacheMetrics> metrics)
rebalancingBytesRate = in.readLong();
rebalancingKeysRate = in.readLong();

rebalancedKeys = in.readLong();
estimatedRebalancingKeys = in.readLong();
rebalanceStartTime = in.readLong();
rebalanceFinishTime = in.readLong();
rebalanceClearingPartitionsLeft = in.readLong();
if (in.available() >= 40) {
rebalancedKeys = in.readLong();
estimatedRebalancingKeys = in.readLong();
rebalanceStartTime = in.readLong();
rebalanceFinishTime = in.readLong();
rebalanceClearingPartitionsLeft = in.readLong();
}

// 11 long and 5 float values give 108 bytes in total.
if (in.available() >= 108) {
Expand Down

0 comments on commit 610f4d6

Please sign in to comment.