[ https://issues.apache.org/jira/browse/GEODE-2012?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kirk Lund updated GEODE-2012: ----------------------------- Summary: Rolled statistics archive file is corrupted by missing resource type (was: Test rolling stat archive after closing a resource instance) > Rolled statistics archive file is corrupted by missing resource type > -------------------------------------------------------------------- > > Key: GEODE-2012 > URL: https://issues.apache.org/jira/browse/GEODE-2012 > Project: Geode > Issue Type: Bug > Components: statistics > Affects Versions: 1.0.0-incubating > Reporter: Kirk Lund > Assignee: Kirk Lund > Fix For: 1.1.0-incubating > > > If a given ResourceType has no Resource instances at the same time that a > statistics archive file is created by rolling, then the ResourceType is not > written to the archive file. If a later Resource instance for that type is > created, it will be written to the archive file without a ResourceType, > effectively corrupting that file so that it cannot be read. > Attempting to read the corrupted statistics archive file will result in a > NullPointerException (GEODE-2013). > Steps required to test this bug: > 1) create resource instance of new type > 2) sample so that resource instance and type are written to gfs > 3) close resource instance so no instances exist of that type > 4) sample > 5) roll gfs archive > 6) sample > 7) create new resource instance of same type > 8) sample > 9) verify that resource instance and type were both written to gfs > The resulting gfs archive file after #5 contains a resource instance with no > corresponding resource type. Attempting to read the file in with > StatArchiveReader will throw a NullPointerException (GEODE-2013). -- This message was sent by Atlassian JIRA (v6.3.4#6332)