Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Fixing the summary serialization issue for cache RCAs #348

Merged
merged 2 commits into from
Aug 6, 2020
Merged

Conversation

khushbr
Copy link
Contributor

@khushbr khushbr commented Aug 6, 2020

Issue #: #347

Description of changes: Serialization failing for Cache RCAs because of null HotNodeSummary when Resource is Healthy.
Updated the default initialization and removed the Null assignment for HotNodeSummary

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@khushbr khushbr requested review from yojs and rguo-aws August 6, 2020 00:14
@codecov
Copy link

codecov bot commented Aug 6, 2020

Codecov Report

Merging #348 into master will decrease coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #348      +/-   ##
============================================
- Coverage     67.00%   66.98%   -0.02%     
+ Complexity     2034     2033       -1     
============================================
  Files           297      297              
  Lines         13140    13134       -6     
  Branches       1084     1083       -1     
============================================
- Hits           8804     8798       -6     
  Misses         3948     3948              
  Partials        388      388              
Impacted Files Coverage Δ Complexity Δ
...csearch/performanceanalyzer/rca/RcaController.java 80.33% <100.00%> (-0.44%) 36.00 <0.00> (-2.00)
...ceanalyzer/rca/framework/util/InstanceDetails.java 79.03% <100.00%> (ø) 14.00 <2.00> (+1.00)
...nalyzer/rca/store/rca/cache/FieldDataCacheRca.java 71.21% <100.00%> (-0.43%) 6.00 <0.00> (ø)
...yzer/rca/store/rca/cache/ShardRequestCacheRca.java 73.61% <100.00%> (-0.37%) 7.00 <0.00> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update acfe086...70f1966. Read the comment docs.

InstanceDetails instanceDetails = getInstanceDetails();
HotNodeSummary nodeSummary = new HotNodeSummary(instanceDetails.getInstanceId(), instanceDetails.getInstanceIp());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So is the problem here a null HotNodeSummary ? Can we add UTs for a case where only few (or no) nodes have an issue?

@khushbr khushbr merged commit 7be6969 into master Aug 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants