ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitry Sherstobitov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-10672) Changing walSegments property leads to fallen node
Date Thu, 13 Dec 2018 12:01:00 GMT
Dmitry Sherstobitov created IGNITE-10672:
--------------------------------------------

             Summary: Changing walSegments property leads to fallen node
                 Key: IGNITE-10672
                 URL: https://issues.apache.org/jira/browse/IGNITE-10672
             Project: Ignite
          Issue Type: Bug
            Reporter: Dmitry Sherstobitov


Start cluster with        

{code}
 <property name="dataStorageConfiguration">
            <bean class="org.apache.ignite.configuration.DataStorageConfiguration">
                <!-- Enabling Apache Ignite Persistent Store. -->
                <property name="defaultDataRegionConfiguration">
                    <bean class="org.apache.ignite.configuration.DataRegionConfiguration">
                        <property name="persistenceEnabled" value="true"/>
                    </bean>
                </property>
                <property name="walSegments" value="5"/>
            </bean>
        </property>
{code}

Load some data and then restart cluster with new config:
{code}
 <property name="dataStorageConfiguration">
            <bean class="org.apache.ignite.configuration.DataStorageConfiguration">
                <!-- Enabling Apache Ignite Persistent Store. -->
                <property name="defaultDataRegionConfiguration">
                    <bean class="org.apache.ignite.configuration.DataRegionConfiguration">
                        <property name="persistenceEnabled" value="true"/>
                    </bean>
                </property>
                <property name="walSegments" value="4"/>
            </bean>
        </property>
{code}

This will lead node to error on start
{code}
[14:51:00,852][SEVERE][main][IgniteKernal] Got exception while starting (will rollback startup
routine).
class org.apache.ignite.IgniteCheckedException: Failed to start processor: GridProcessorAdapter
[]
        at org.apache.ignite.internal.IgniteKernal.startProcessor(IgniteKernal.java:1784)
        at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:1008)
        at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:2020)
        at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1725)
        at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1153)
        at org.apache.ignite.internal.IgnitionEx.startConfigurations(IgnitionEx.java:1071)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:957)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:856)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:726)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:695)
        at org.apache.ignite.Ignition.start(Ignition.java:348)
        at org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:301)
Caused by: class org.apache.ignite.internal.processors.cache.persistence.StorageException:
Failed to initialize wal (work directory contains incorrect number of segments) [cur=10, expected=5]
        at org.apache.ignite.internal.processors.cache.persistence.wal.FileWriteAheadLogManager.checkOrPrepareFiles(FileWriteAheadLogManager.java:1408)
        at org.apache.ignite.internal.processors.cache.persistence.wal.FileWriteAheadLogManager.start0(FileWriteAheadLogManager.java:435)
        at org.apache.ignite.internal.processors.cache.GridCacheSharedManagerAdapter.start(GridCacheSharedManagerAdapter.java:61)
        at org.apache.ignite.internal.processors.cache.GridCacheProcessor.start(GridCacheProcessor.java:741)
        at org.apache.ignite.internal.IgniteKernal.startProcessor(IgniteKernal.java:1781)
        ... 11 more
[14:51:00,853][WARNING][main][IgniteKernal] Attempt to stop starting grid. This operation
cannot be guaranteed to be successful.
[14:51:00,855][SEVERE][main][IgniteKernal] Failed to stop component (ignoring): GridProcessorAdapter
[]
java.lang.NullPointerException
        at org.apache.ignite.internal.processors.cache.persistence.wal.FileWriteAheadLogManager.stop0(FileWriteAheadLogManager.java:631)
        at org.apache.ignite.internal.processors.cache.GridCacheSharedManagerAdapter.stop(GridCacheSharedManagerAdapter.java:94)
        at org.apache.ignite.internal.processors.cache.GridCacheProcessor.stop(GridCacheProcessor.java:980)
        at org.apache.ignite.internal.IgniteKernal.stop0(IgniteKernal.java:2312)
        at org.apache.ignite.internal.IgniteKernal.stop(IgniteKernal.java:2190)
        at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:1164)
        at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:2020)
        at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1725)
        at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1153)
        at org.apache.ignite.internal.IgnitionEx.startConfigurations(IgnitionEx.java:1071)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:957)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:856)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:726)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:695)
        at org.apache.ignite.Ignition.start(Ignition.java:348)
        at org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:301)
{code}



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

Mime
View raw message