ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitriy Pavlov (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (IGNITE-8572) StandaloneWalRecordsIterator may throw NPE if compressed WAL segment is empty
Date Tue, 26 Jun 2018 16:09:32 GMT

     [ 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)

Mime
View raw message