Hello!
In fact, it's very simple:
int main()
{
IgniteClientConfiguration cfg;
cfg.SetEndPoints("10.250.0.10, 10.250.0.4");
try
{
IgniteClient client = IgniteClient::Start(cfg);
CacheClient<int32_t, int32_t> cache = client.GetOrCreateCache<int32_t,
int32_t>("vds");
ClientTransactions transactions = client.ClientTransactions();
ClientTransaction tx = transactions.TxStart(PESSIMISTIC,
READ_COMMITTED);
cache.Put(1, 1);
tx.Commit();
}
catch (IgniteError & err)
{
std::cout << "An error occurred: " << err.GetText() << std::endl;
return err.GetCode();
}
return 0;
}
Not always, but sometimes, I get an "stack overflow" error, which makes me
think about a concurrence problem in the code.
Cluster configuration:
<http://apache-ignite-users.70518.x6.nabble.com/file/t3059/dashboard.png>
Error:
<http://apache-ignite-users.70518.x6.nabble.com/file/t3059/error.png>
Just in case, the C++ version I'm currently using is:
685c1b70ca (HEAD -> master, origin/master, origin/HEAD) IGNITE-13865 Support
DateTime as a key or value in .NET and Java (#8580)
Le me know if you need anything else
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/