Hello!

I do not recommend issuing setActive(true) after starting a node, this is
an antipattern which can lead to problems.

I recommend only activating the cluster when it is ready, or allowing it to
auto-activate itself.

Regards,
-- 
Ilya Kasnacheev


вт, 18 авг. 2020 г. в 19:56, Ali Bagewadi <[email protected]
>:

> Hello,
>
> We get the size with below code.
>
>     IgniteConfiguration cfg;
>     cfg.springCfgPath = std::string("/home/dsudev/DataBaseConfig.xml");
>
>     /* Start a node to access DataBase */
>     Ignite node = Ignition::Start(cfg);
>     node.SetActive(true);
>
>     /* Get cache instance */
>     mCache = node.GetOrCreateCache<tKey, DBStorage>(CACHE_NAME);
>
>    /*Get size*/
>    mcache.size(); ---->This gives us the size or no of records.
>
>
>    Thank you,
>    Ali.
>
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>

Reply via email to