ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maxim Muzafarov (Jira)" <j...@apache.org>
Subject [jira] [Commented] (IGNITE-8572) StandaloneWalRecordsIterator may throw NPE if compressed WAL segment is empty
Date Thu, 03 Oct 2019 10:51:00 GMT

    [ https://issues.apache.org/jira/browse/IGNITE-8572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16943511#comment-16943511
] 

Maxim Muzafarov commented on IGNITE-8572:
-----------------------------------------

[~ivan.glukos]

Hello, can we move this issue to the next release?

> 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.8
>
>
> 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)

Mime
View raw message