[ 
https://issues.apache.org/jira/browse/GEODE-1782?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kirk Lund updated GEODE-1782:
-----------------------------
    Description: 
StatArchiveReader ignores later stats resource with same name as closed stats 
resource. 

The bug is caused by the current implementation of equals in the 
StatArchiveReader.ResourceInst class. Each of the ResourceInst instances with 
the same name have different firstTSidx values. The ResourceInst.equals 
implementation ignores firstTSidx, so StatArchiveReader determines that the 
ResourceInst instances are equal and ignores the later instances.

StatArchiveWithConsecutiveResourceInstIntegrationTest confirms the existence of 
the bug and its fix.

StatArchiveWithConsecutiveResourceInstGenerator generates a small gfs 
statistics file containing the values needed to cause StatArchiveReader to hit 
the bug.


  was:
StatArchiveReader uses a custom StatSpec for its implementation of statistics 
which results in it ignoring all later stats resources that have the same name 
as an earlier stat resource which has been closed.

Need to write a test to confirm this bug.



> StatArchiveReader ignores later stats resource with same name as closed stats 
> resource
> --------------------------------------------------------------------------------------
>
>                 Key: GEODE-1782
>                 URL: https://issues.apache.org/jira/browse/GEODE-1782
>             Project: Geode
>          Issue Type: Bug
>          Components: statistics
>            Reporter: Kirk Lund
>
> StatArchiveReader ignores later stats resource with same name as closed stats 
> resource. 
> The bug is caused by the current implementation of equals in the 
> StatArchiveReader.ResourceInst class. Each of the ResourceInst instances with 
> the same name have different firstTSidx values. The ResourceInst.equals 
> implementation ignores firstTSidx, so StatArchiveReader determines that the 
> ResourceInst instances are equal and ignores the later instances.
> StatArchiveWithConsecutiveResourceInstIntegrationTest confirms the existence 
> of the bug and its fix.
> StatArchiveWithConsecutiveResourceInstGenerator generates a small gfs 
> statistics file containing the values needed to cause StatArchiveReader to 
> hit the bug.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to