You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Dmitriy Pavlov (JIRA)" <ji...@apache.org> on 2018/06/26 16:09:32 UTC

[jira] [Updated] (IGNITE-8572) StandaloneWalRecordsIterator may throw NPE if compressed WAL segment is empty

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

Dmitriy Pavlov updated IGNITE-8572:
-----------------------------------
    Fix Version/s:     (was: 2.6)
                   2.7

> StandaloneWalRecordsIterator may throw NPE if compressed WAL segment is empty
> -----------------------------------------------------------------------------
>
>                 Key: IGNITE-8572
>                 URL: https://issues.apache.org/jira/browse/IGNITE-8572
>             Project: Ignite
>          Issue Type: New Feature
>          Components: persistence
>            Reporter: Ivan Rakov
>            Assignee: Ivan Rakov
>            Priority: Major
>             Fix For: 2.7
>
>
> In case ZIP archive with WAL segment doesn't contain any ZIP entries, attempt to iterate through it with standalone WAL iterator will throw NPE:
> {noformat}
> Caused by: java.lang.NullPointerException
>         at org.apache.ignite.internal.processors.cache.persistence.file.UnzipFileIO.<init>(UnzipFileIO.java:53)
>         at org.apache.ignite.internal.processors.cache.persistence.wal.AbstractWalRecordsIterator.initReadHandle(AbstractWalRecordsIterator.java:265)
>         at org.apache.ignite.internal.processors.cache.persistence.wal.reader.StandaloneWalRecordsIterator.advanceSegment(StandaloneWalRecordsIterator.java:262)
>         at org.apache.ignite.internal.processors.cache.persistence.wal.AbstractWalRecordsIterator.advance(AbstractWalRecordsIterator.java:155)
>         at org.apache.ignite.internal.processors.cache.persistence.wal.reader.StandaloneWalRecordsIterator.<init>(StandaloneWalRecordsIterator.java:111)
>         at org.apache.ignite.internal.processors.cache.persistence.wal.reader.IgniteWalIteratorFactory.iteratorArchiveDirectory(IgniteWalIteratorFactory.java:156)
>         ... 6 more
> {noformat}
> We should throw excpetion with descriptive error message instead.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)