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

Maxim Muzafarov commented on IGNITE-14750:
------------------------------------------

[~sdarlington]

Hello, I don't think this patch helps to solve the issue. According to the 
JavaDoc the File.isDirectory() returns true if and only if the file denoted by 
this abstract pathname *exists* and is a directory; false otherwise. 
So, the problem may be related to the concurrent directory removal by multiple 
nodes on the same path and probably that's why some of the directories in the 
file array become null.

> NullPointerException when starting MaintenanceProcessor after upgrade from 2.9
> ------------------------------------------------------------------------------
>
>                 Key: IGNITE-14750
>                 URL: https://issues.apache.org/jira/browse/IGNITE-14750
>             Project: Ignite
>          Issue Type: Bug
>    Affects Versions: 2.10
>            Reporter: Stephen Darlington
>            Assignee: Stephen Darlington
>            Priority: Minor
>             Fix For: 2.11
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Upgrading from Ignite 2.9 to 2.10, using persistence we got the following 
> error on one node. The other nodes started correctly. Ended up deleting the 
> persistence store and creating a new node.
> {{[2021-05-18 15:21:51,949][WARN ][main][MaintenanceProcessor] Caught 
> exception when starting MaintenanceProcessor, maintenance mode won't be 
> entered}}{{_java.lang.NullPointerException_}}{{    _at 
> org.apache.ignite.internal.processors.cache.persistence.filename.PdsConsistentIdProcessor.visitFolder(PdsConsistentIdProcessor.java:246)_}}{{
>     _at 
> org.apache.ignite.internal.processors.cache.persistence.filename.PdsConsistentIdProcessor.folderSize(PdsConsistentIdProcessor.java:234)_}}{{
>     _at 
> org.apache.ignite.internal.processors.cache.persistence.filename.PdsConsistentIdProcessor.getPathDisplayableInfo(PdsConsistentIdProcessor.java:265)_}}{{
>     _at 
> org.apache.ignite.internal.processors.cache.persistence.filename.PdsConsistentIdProcessor.prepareNewSettings(PdsConsistentIdProcessor.java:195)_}}{{
>     _at 
> org.apache.ignite.internal.processors.cache.persistence.filename.PdsConsistentIdProcessor.resolveFolders(PdsConsistentIdProcessor.java:140)_}}{{
>     _at 
> org.apache.ignite.internal.maintenance.MaintenanceFileStore.init(MaintenanceFileStore.java:103)_}}{{
>     _at 
> org.apache.ignite.internal.maintenance.MaintenanceProcessor.start(MaintenanceProcessor.java:137)_}}{{
>     _at 
> org.apache.ignite.internal.IgniteKernal.startProcessor(IgniteKernal.java:1986)_}}{{
>     _at 
> org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:1211)_}}{{    
> _at 
> org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:2112)_}}{{
>     _at 
> org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1758)_}}{{
>     _at 
> org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1143)_}}{{    
> _at 
> org.apache.ignite.internal.IgnitionEx.startConfigurations(IgnitionEx.java:1061)_}}{{
>     _at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:947)_}}{{ 
>    _at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:846)_}}{{  
>   _at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:716)_}}{{   
>  _at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:685)_}}{{    
> _at org.apache.ignite.Ignition.start(Ignition.java:353)_}}{{    _at 
> org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:367)_}}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to