多个数据区域启动时出错

时间:2017-12-26 03:45:42

标签: java ignite

当我使用下面的配置启动我的点火服务器节点时,我遇到了一个点燃活动错误:

    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<String> 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;

,错误是:

    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)

应该注意的是,错误交替出现,这意味着我第一次成功启动,第二次失败,然后第三次成功启动,第四次失败......

我使用的点火版本是V2.3.0

0 个答案:

没有答案