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)]
[17:48:54,958][INFO][wal-file-cleaner%null-#59][FileWriteAheadLogManager] Starting to clean WAL archive [highIdx=992, currSize=2.2 GB, maxSize=1.0 GB] [17:48:54,960][INFO][db-checkpoint-thread-#68][Checkpointer] Checkpoint finished [cpId=4dbfd782-8e8b-490b-ba1c-ecfa6eb83b7b, pages=217924, markPos=WALPointer [idx=993, fileOff=7340668, len=60987], walSegmentsCovered=[985 - 992], markDuration=203ms, pagesWrite=1397ms, fsync=5679ms, total=7287ms] [17:48:55,003][INFO][db-checkpoint-thread-#68][Checkpointer] Checkpoint started [checkpointId=e18ab515-e3d7-4ec1-84fd-494adb430997, startPtr=WALPointer [idx=994, fileOff=10801377, len=60987], checkpointBeforeLockTime=5ms, checkpointLockWait=0ms, checkpointListenersExecuteTime=6ms, checkpointLockHoldTime=6ms, walCpRecordFsyncDuration=8ms, writeCheckpointEntryDuration=4ms, splitAndSortCpPagesDuration=20ms, pages=30961, reason='too big size of WAL without checkpoint'] [17:48:55,196][INFO][wal-file-cleaner%null-#59][FileWriteAheadLogManager] Finish clean WAL archive [cleanCnt=7, currSize=512.0 MB, maxSize=1.0 GB] [17:48:56,562][INFO][db-checkpoint-thread-#68][Checkpointer] Checkpoint finished [cpId=e18ab515-e3d7-4ec1-84fd-494adb430997, pages=30961, markPos=WALPointer [idx=994, fileOff=10801377, len=60987], walSegmentsCovered=[993], markDuration=39ms, pagesWrite=195ms, fsync=1363ms, total=1602ms] <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> class org.apache.ignite.IgniteException: Failed to instantiate Spring XML application context [springUrl=file:/ignite/config/node-configuration.xml, err=Error creating bean with name 'org.apache.ignite.configuration.IgniteConfiguration#0' defined in URL [file:/ignite/config/node-configuration.xml]: Cannot create inner bean 'org.apache.ignite.configuration.DataStorageConfiguration#6497b078' of type [org.apache.ignite.configuration.DataStorageConfiguration] while setting bean property 'dataStorageConfiguration'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.ignite.configuration.DataStorageConfiguration#6497b078' defined in URL [file:/ignite/config/node-configuration.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are: 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)] at org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:1098) at org.apache.ignite.Ignition.start(Ignition.java:356) at org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:367) Caused by: class org.apache.ignite.IgniteCheckedException: Failed to instantiate Spring XML application context [springUrl=file:/ignite/config/node-configuration.xml, err=Error creating bean with name 'org.apache.ignite.configuration.IgniteConfiguration#0' defined in URL [file:/ignite/config/node-configuration.xml]: Cannot create inner bean 'org.apache.ignite.configuration.DataStorageConfiguration#6497b078' of type [org.apache.ignite.configuration.DataStorageConfiguration] while setting bean property 'dataStorageConfiguration'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.ignite.configuration.DataStorageConfiguration#6497b078' defined in URL [file:/ignite/config/node-configuration.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are: 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)] at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.applicationContext(IgniteSpringHelperImpl.java:392) at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:104) at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:98) at org.apache.ignite.internal.IgnitionEx.loadConfigurations(IgnitionEx.java:741) at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:942) at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:851) at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:721) at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:690) at org.apache.ignite.Ignition.start(Ignition.java:353) ... 1 more