Re: Failed to initialize wal (work directory contains incorrect number of segments) [cur=357, expected=10]

2018-12-28 Thread aealexsandrov
Hi,

I was able to reproduce this issue. The details you can see at the next
ticket:

https://issues.apache.org/jira/browse/IGNITE-10840

BR,
Andrei



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: Failed to initialize wal (work directory contains incorrect number of segments) [cur=357, expected=10]

2018-12-27 Thread aealexsandrov
Thank you,

I will try to reproduce the same.

Andrei



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: Failed to initialize wal (work directory contains incorrect number of segments) [cur=357, expected=10]

2018-12-27 Thread yangjiajun
Hello.

I only started one node.

Here is my config file:

example-default.xml
 
 


aealexsandrov wrote
> No,
> 
> I just try to get the details and reproduce the issue. Possible there is
> an
> issue here. I will return with an update soon.
> 
> Also could you please provide the configuration of your nodes? Did you
> update the walArchivePath for all of your nodes?
> 
> BR,
> Andrei
> 
> 
> 
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/





--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: Failed to initialize wal (work directory contains incorrect number of segments) [cur=357, expected=10]

2018-12-27 Thread aealexsandrov
No,

I just try to get the details and reproduce the issue. Possible there is an
issue here. I will return with an update soon.

Also could you please provide the configuration of your nodes? Did you
update the walArchivePath for all of your nodes?

BR,
Andrei



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: Failed to initialize wal (work directory contains incorrect number of segments) [cur=357, expected=10]

2018-12-27 Thread yangjiajun
Hello.Thanks for your reply.

I use version 2.6.

I changed the walArchivePath to the directory where before was walPath.

So the correct operation is to set the walPath to the directory where before
was walArchivePath?



aealexsandrov wrote
> Hi,
> 
> What is the version of Ignite you use?
> 
> Did you set the walPath to the directory where before was walArchivePath?
> 
> BR,
> Andei
> 
> 
> 
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/





--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: Failed to initialize wal (work directory contains incorrect number of segments) [cur=357, expected=10]

2018-12-27 Thread yangjiajun
aealexsandrov wrote
> Hi,
> 
> What is the version of Ignite you use?
> 
> Did you set the walPath to the directory where before was walArchivePath?
> 
> BR,
> Andei
> 
> 
> 
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/





--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: Failed to initialize wal (work directory contains incorrect number of segments) [cur=357, expected=10]

2018-12-27 Thread aealexsandrov
Hi,

What is the version of Ignite you use?

Did you set the walPath to the directory where before was walArchivePath?

BR,
Andei



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Failed to initialize wal (work directory contains incorrect number of segments) [cur=357, expected=10]

2018-12-27 Thread yangjiajun
Hello.

I want to disable wal archiving by setting  WAL path and the WAL archive
path to the same value.
https://apacheignite.readme.io/docs/write-ahead-log
I make this change and then success restart my node first time.But I get an
exception when I restart my node second time.Is my change a dangerous
operation?Can I recover it? 

Here is the exception:

[21:22:22,321][SEVERE][main][IgniteKernal] Exception during start
processors, node will be stopped and close connections
class org.apache.ignite.IgniteCheckedException: Failed to start processor:
GridProcessorAdapter []
at
org.apache.ignite.internal.IgniteKernal.startProcessor(IgniteKernal.java:1742)
at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:980)
at
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:2014)
at
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1723)
at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1151)
at
org.apache.ignite.internal.IgnitionEx.startConfigurations(IgnitionEx.java:1069)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:955)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:854)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:724)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:693)
at org.apache.ignite.Ignition.start(Ignition.java:352)
at
org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:301)
Caused by: class org.apache.ignite.IgniteCheckedException: Failed to
initialize wal (work directory contains incorrect number of segments)
[cur=357, expected=10]
at
org.apache.ignite.internal.processors.cache.persistence.wal.FsyncModeFileWriteAheadLogManager.checkOrPrepareFiles(FsyncModeFileWriteAheadLogManager.java:1112)
at
org.apache.ignite.internal.processors.cache.persistence.wal.FsyncModeFileWriteAheadLogManager.start0(FsyncModeFileWriteAheadLogManager.java:348)
at
org.apache.ignite.internal.processors.cache.GridCacheSharedManagerAdapter.start(GridCacheSharedManagerAdapter.java:61)
at
org.apache.ignite.internal.processors.cache.GridCacheProcessor.start(GridCacheProcessor.java:700)
at
org.apache.ignite.internal.IgniteKernal.startProcessor(IgniteKernal.java:1739)
... 11 more



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/