[ 
https://issues.apache.org/jira/browse/IGNITE-5534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16633737#comment-16633737
 ] 

ASF GitHub Bot commented on IGNITE-5534:
----------------------------------------

GitHub user oleg-ostanin opened a pull request:

    https://github.com/apache/ignite/pull/4877

    IGNITE-5534 added method to activate cluster

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/gridgain/apache-ignite ignite-5534

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/ignite/pull/4877.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #4877
    
----
commit 019b4df5c9c7dfc4ea94eb7284c4bc932f33074f
Author: oleg-ostanin <oostanin@...>
Date:   2018-10-01T07:31:50Z

    IGNITE-5534 added method to activate cluster

----


> Enable yardstick to activate grid
> ---------------------------------
>
>                 Key: IGNITE-5534
>                 URL: https://issues.apache.org/jira/browse/IGNITE-5534
>             Project: Ignite
>          Issue Type: Wish
>          Components: yardstick
>    Affects Versions: 2.1
>            Reporter: Ksenia Rybakova
>            Assignee: Oleg Ostanin
>            Priority: Major
>
> If we run benchmarks with pds enabled grid starts inactive, that causes an 
> error:
> {noformat}
> [2017-06-19 10:56:36,917][INFO ][main][root] Benchmark arguments: 
> IgniteBenchmarkArguments [nodes=37, backups=1, 
> cfg=/storage/ssd/krybakova/opts-set-w-300-d-1800-m-client-rev-8b66f3b2-date-1906-105549/yardstick/bin/../config/run-load.xml,
>  
> loadTestQueriesFile=/storage/ssd/krybakova/opts-set-w-300-d-1800-m-client-rev-8b66f3b2-date-1906-105549/yardstick/bin/../config/queries.sql,
>  syncMode=PRIMARY_SYNC, clientOnly=true, nearCacheFlag=false, 
> nearCacheSize=0, txConcurrency=PESSIMISTIC, txIsolation=REPEATABLE_READ, 
> restTcpPort=0, restTcpHost=null, range=60000, scaleFactor=1, ntv=false, 
> preloadAmount=50000, preloadLogsInterval=30000, jobs=10, storeEnabled=false, 
> cleanWorkDirectory=false, writeBehind=false, batch=50, collocated=false, 
> singleStripe=false, jdbcUrl=null, schemaDefinition=null, jdbcDriver=null, 
> createTempDatabase=false, dbn=null, restartDelay=20, restartSleep=2, 
> cacheConsistencyCheckingPeriod=120, keysCnt=5, cacheOpTimeout=30, 
> keysPerThread=false, partitionedCachesNumber=1, replicatedCachesNumber=1, 
> additionalCachesNum=0, additionalCachesName=null, printPartStats=false, 
> pageSize=2048, partitions=10, cacheGrp=null, cachesCnt=1, 
> persistentStoreEnabled=false]
> <10:56:36><main><yardstick> Failed to set up benchmark drivers (will shutdown 
> and exit).
> [2017-06-19 10:56:36,917][INFO ][exchange-worker-#41%null%][time] Started 
> exchange init [topVer=AffinityTopologyVersion [topVer=37, minorTopVer=0], 
> crd=false, evt=10, node=TcpDiscoveryNode 
> [id=adf2cf44-283b-4dfb-97d0-08ced87e9dde, addrs=[127.0.0.1, 172.25.1.31], 
> sockAddrs=[testagent01.gridgain.local/172.25.1.31:0, /127.0.0.1:0], 
> discPort=0, order=33, intOrder=0, lastExchangeTime=1497858993142, loc=true, 
> ver=2.1.0#20170616-sha1:8b66f3b2, isClient=true], evtNode=TcpDiscoveryNode 
> [id=adf2cf44-283b-4dfb-97d0-08ced87e9dde, addrs=[127.0.0.1, 172.25.1.31], 
> sockAddrs=[testagent01.gridgain.local/172.25.1.31:0, /127.0.0.1:0], 
> discPort=0, order=33, intOrder=0, lastExchangeTime=1497858993142, loc=true, 
> ver=2.1.0#20170616-sha1:8b66f3b2, isClient=true], customEvt=null]
> class org.apache.ignite.IgniteException: Can not perform the operation 
> because the cluster is inactive. Note, that the cluster is considered 
> inactive by default if Ignite Persistent Store is used to let all the nodes 
> join the cluster. To activate the cluster call Ignite.activate(true).
>         at 
> org.apache.ignite.internal.IgniteKernal.checkClusterState(IgniteKernal.java:3666)[2017-06-19
>  10:56:36,917][INFO ][exchange-worker-#41%null%][time] Finished exchange init 
> [topVer=AffinityTopologyVersion [topVer=37, minorTopVer=0], crd=false]
>         at 
> org.apache.ignite.internal.IgniteKernal.cacheNames(IgniteKernal.java:3188)
>         at 
> org.apache.ignite.yardstick.cache.load.IgniteCacheRandomOperationBenchmark.searchCache(IgniteCacheRandomOperationBenchmark.java:235)
>         at 
> org.apache.ignite.yardstick.cache.load.IgniteCacheRandomOperationBenchmark.setUp(IgniteCacheRandomOperationBenchmark.java:145)
>         at 
> org.yardstickframework.BenchmarkDriverStartUp.main(BenchmarkDriverStartUp.java:130)
> {noformat}
> Please add some option that whould control if driver should activate a grid 
> or not.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to