Re: Error of start with multiple data regions

2018-01-15 Thread slava.koptilin
Hi,

I've created JIRA ticket https://issues.apache.org/jira/browse/IGNITE-7414
As a temporary workaround, I'd suggest deactivating the cluster before
closing.

Thanks!



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


Re: Error of start with multiple data regions

2017-12-26 Thread slava.koptilin
Hi,

I have reproduced the problem you described.
I will investigate this issue and file JIRA ticket in order to track this.

Thanks!



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


Re: Error of start with multiple data regions

2017-12-26 Thread huangyuanqiang
CacheConfiguration cacheCfg = new CacheConfiguration();
cacheCfg.setName(CACHE_SERVER_INFO);
cacheCfg.setDataRegionName("memory");
cacheCfg.setAtomicityMode(CacheAtomicityMode.ATOMIC);
cacheCfg.setCacheMode(CacheMode.PARTITIONED);
cacheCfg.setCopyOnRead(false);
cacheCfg.setIndexedTypes(String.class, byte[].class);
this.server.getOrCreateCache(cacheCfg);



  And


CacheConfiguration cacheCfg = new CacheConfiguration(COMMIT_LOG_PRE_NAME + 
groupid);
cacheCfg.setAtomicityMode(CacheAtomicityMode.ATOMIC);
cacheCfg.setCacheMode(CacheMode.LOCAL);
cacheCfg.setIndexedTypes(Long.class, byte[].class);
this.server.getOrCreateCache(cacheCfg);





huangyuanqiang
huangyuanqi...@elex-tech.com



> 在 2017年12月26日,下午8:43,slava.koptilin  写道:
> 
> Hello,
> 
> Data region configurations look good to me. I've just tried this config and
> it works.
> Could you provide more details? cache configurations etc
> 
> Thanks!
> 
> 
> 
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/



Re: Error of start with multiple data regions

2017-12-26 Thread slava.koptilin
Hello,

Data region configurations look good to me. I've just tried this config and
it works.
Could you provide more details? cache configurations etc

Thanks!



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


RE: Error of start with multiple data regions

2017-12-26 Thread Alexey Popov
Sorry. Please ignore my response ). I just misread you message. 

Thank you,
Alexey

From: Alexey Popov
Sent: 26 декабря 2017 г. 12:05
To: user@ignite.apache.org
Subject: Re: Error of start with multiple data regions

Hi,

Apache Ignite does not have this functionality out of the box and the
community could not help with your question. 
You should ask this question directly to the company who provides a multiple
data regions solution.

Thank you,
Alexey





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



Re: Error of start with multiple data regions

2017-12-26 Thread Alexey Popov
Hi,

Apache Ignite does not have this functionality out of the box and the
community could not help with your question. 
You should ask this question directly to the company who provides a multiple
data regions solution.

Thank you,
Alexey





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


Error of start with multiple data regions

2017-12-25 Thread huangyuanqiang
Hi all:
I got a ignite active error when i start my ignite server node with 
multiple data regions configuration below:

IgniteConfiguration cfg = new IgniteConfiguration();
cfg.setConsistentId("test");
cfg.setIgniteInstanceName("oneDataGrid");
cfg.setClientMode(false);

DataStorageConfiguration dc = new DataStorageConfiguration();
dc.setWalMode(WALMode.DEFAULT);
// enabling persistent
DataRegionConfiguration drc1 = new DataRegionConfiguration();
drc1.setName("disk");
drc1.setPersistenceEnabled(true);
drc1.setSwapPath("disktest");
// disabling persistent
DataRegionConfiguration drc2 = new DataRegionConfiguration();
drc2.setName("memory");
// Setting initial RAM size.
drc2.setInitialSize(100L * 1024 * 1024);
// Setting maximum RAM size.
drc2.setMaxSize(500L * 1024 * 1024);
drc2.setPersistenceEnabled(false);
drc2.setSwapPath("memorytest");
dc.setDataRegionConfigurations(drc1,drc2);
cfg.setDataStorageConfiguration(dc);
// node find
TcpDiscoverySpi spi = new TcpDiscoverySpi();
TcpDiscoveryMulticastIpFinder ipFinder = new 
TcpDiscoveryMulticastIpFinder();
List ips = new ArrayList<>();
ips.add("127.0.0.1:47500..47503");
ipFinder.setAddresses(ips);
spi.setIpFinder(ipFinder);
cfg.setDiscoverySpi(spi);
// Starting the node.
Ignite ignite =  Ignition.start(cfg);
ignite.active(true);
this.server = ignite;
and the error is:

org.apache.ignite.IgniteCheckedException: Failed to find cache group 
descriptor [grpId=812588779]
at 
org.apache.ignite.internal.processors.cache.persistence.GridCacheDatabaseSharedManager.getPageMemoryForCacheGroup(GridCacheDatabaseSharedManager.java:1598)
at 
org.apache.ignite.internal.processors.cache.persistence.GridCacheDatabaseSharedManager.restoreMemory(GridCacheDatabaseSharedManager.java:1540)
at 
org.apache.ignite.internal.processors.cache.persistence.GridCacheDatabaseSharedManager.readCheckpointAndRestoreMemory(GridCacheDatabaseSharedManager.java:568)
at 
org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.onClusterStateChangeRequest(GridDhtPartitionsExchangeFuture.java:814)
at 
org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:583)
at 
org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:2279)
at 
org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110)
at java.lang.Thread.run(Thread.java:748)


It should be noted that I configured two different data regions in one 
DataStorage in which one is persistence enabled and the other is persistence 
disabled. 

The error appears alternately, which means I start it successfully at first 
time, and fail at second time, and then start it successfully at third time, 
then fail at the fourth time ..




===


huangyuanqiang
huangyuanqi...@elex-tech.com 





Error of start with multiple data regions

2017-12-25 Thread huangyuanqiang
Hi all:
I got a ignite active error when i start my ignite server node with 
multiple data regions configuration below:

IgniteConfiguration cfg = new IgniteConfiguration();
cfg.setConsistentId("test");
cfg.setIgniteInstanceName("oneDataGrid");
cfg.setClientMode(false);

DataStorageConfiguration dc = new DataStorageConfiguration();
dc.setWalMode(WALMode.DEFAULT);
// enabling persistent
DataRegionConfiguration drc1 = new DataRegionConfiguration();
drc1.setName("disk");
drc1.setPersistenceEnabled(true);
drc1.setSwapPath("disktest");
// disabling persistent
DataRegionConfiguration drc2 = new DataRegionConfiguration();
drc2.setName("memory");
// Setting initial RAM size.
drc2.setInitialSize(100L * 1024 * 1024);
// Setting maximum RAM size.
drc2.setMaxSize(500L * 1024 * 1024);
drc2.setPersistenceEnabled(false);
drc2.setSwapPath("memorytest");
dc.setDataRegionConfigurations(drc1,drc2);
cfg.setDataStorageConfiguration(dc);
// node find
TcpDiscoverySpi spi = new TcpDiscoverySpi();
TcpDiscoveryMulticastIpFinder ipFinder = new 
TcpDiscoveryMulticastIpFinder();
List ips = new ArrayList<>();
ips.add("127.0.0.1:47500..47503");
ipFinder.setAddresses(ips);
spi.setIpFinder(ipFinder);
cfg.setDiscoverySpi(spi);
// Starting the node.
Ignite ignite =  Ignition.start(cfg);
ignite.active(true);
this.server = ignite;
and the error is:

org.apache.ignite.IgniteCheckedException: Failed to find cache group 
descriptor [grpId=812588779]
at 
org.apache.ignite.internal.processors.cache.persistence.GridCacheDatabaseSharedManager.getPageMemoryForCacheGroup(GridCacheDatabaseSharedManager.java:1598)
at 
org.apache.ignite.internal.processors.cache.persistence.GridCacheDatabaseSharedManager.restoreMemory(GridCacheDatabaseSharedManager.java:1540)
at 
org.apache.ignite.internal.processors.cache.persistence.GridCacheDatabaseSharedManager.readCheckpointAndRestoreMemory(GridCacheDatabaseSharedManager.java:568)
at 
org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.onClusterStateChangeRequest(GridDhtPartitionsExchangeFuture.java:814)
at 
org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:583)
at 
org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:2279)
at 
org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110)
at java.lang.Thread.run(Thread.java:748)


It should be noted that I configured two different data regions in one 
DataStorage in which one is persistence enabled and the other is persistence 
disabled. 

The error appears alternately, which means I start it successfully at first 
time, and fail at second time, and then start it successfully at third time, 
then fail at the fourth time ..




===


huangyuanqiang
huangyuanqi...@elex-tech.com