Hi Surinder,

I guess that there was Integer overflow in expression #{2 * 1024 * 1024 * 1024} so it was evaluated as -2147483648. Try to add 'L' to one of multipliers like:
#{2 * 1024 * 1024 * 1024L}

22.03.2022 23:14, Surinder Mehra пишет:
Hi,
We noticed that WalArchive size is going beyond the default max of 1GB, so we tried to increase it in DataStorageConfiguration. But while starting the ignite node, it always throws the below exception. Could you please explain why. complete log in file attached.

Reason for change:
Starting to clean WAL archive [highIdx=992, currSize=2.2 GB, maxSize=1.0 GB]

change done:
<property name="dataStorageConfiguration">
            <bean class="org.apache.ignite.configuration.DataStorageConfiguration">                 <property name="maxWalArchiveSize" value="#{2 * 1024 * 1024 * 1024}"/>                 <property name="walBufferSize" value="#{256 * 1024 * 1024}"/>                 <property name="walSegmentSize" value="#{512 * 1024 * 1024}"/>
                <property name="defaultDataRegionConfiguration">
                    <bean class="org.apache.ignite.configuration.DataRegionConfiguration">
                        <property name="persistenceEnabled" value="true"/>
                    </bean>
                </property>

                <property name="walPath" value="/ignite/wal"/>
                <property name="walArchivePath" value="/ignite/walarchive"/>
            </bean>
        </property>


Error log while starting:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'maxWalArchiveSize' threw exception; nested exception is java.lang.IllegalArgumentException: Ouch! Argument is invalid: Max WAL archive size can be only greater than 0 or must be equal to -1 (to be unlimited)]

Reply via email to