You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Aleksey Plekhanov (Jira)" <ji...@apache.org> on 2020/06/26 16:00:00 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 ]

Aleksey Plekhanov updated IGNITE-8572:
--------------------------------------
    Fix Version/s:     (was: 2.9)
                   2.10

> 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: Bug
>          Components: persistence
>            Reporter: Ivan Rakov
>            Assignee: Ivan Rakov
>            Priority: Major
>             Fix For: 2.10
>
>
> 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
(v8.3.4#803005)