general question

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

general question

voipp
Hi all! Is it possible to test on multiple jvm's ? Let's say, to have
multiple ignite instances deployed on different jvms ? If yes, how can i
create them and address them in code ?
--

*Best Regards,*

*Kuznetsov Aleksey*
Reply | Threaded
Open this post in threaded view
|

Re: testing in multi JVM mode

dmagda
Hi Aleksey,

GridAbstractTest has isMultiJvm() parameter that when set to ‘true’ will execute the nodes in separate JVM processes. Refer to the tests that contain “MultiJvm” in their names as to examples of usage.

P.S.
Renamed the subject. Please give more specific names to email subjects. There are already three different “general question” discussions started on the dev list.


Denis

> On Mar 9, 2017, at 9:09 AM, ALEKSEY KUZNETSOV <[hidden email]> wrote:
>
> Hi all! Is it possible to test on multiple jvm's ? Let's say, to have
> multiple ignite instances deployed on different jvms ? If yes, how can i
> create them and address them in code ?
> --
>
> *Best Regards,*
>
> *Kuznetsov Aleksey*

Reply | Threaded
Open this post in threaded view
|

Re: general question

Alexey Goncharuk
In reply to this post by voipp
Hi Aleksey,

In order to ensure that a transaction is rolled back during a node failure,
you need to orchestrate messages in such a way that at least one
participating node does not receive a prepare request. As an example, you
can look
at org.apache.ignite.internal.processors.cache.distributed.dht.IgniteCachePrimaryNodeFailureRecoveryAbstractTest.

--AG

2017-03-09 20:09 GMT+03:00 ALEKSEY KUZNETSOV <[hidden email]>:

> Hi all! Is it possible to test on multiple jvm's ? Let's say, to have
> multiple ignite instances deployed on different jvms ? If yes, how can i
> create them and address them in code ?
> --
>
> *Best Regards,*
>
> *Kuznetsov Aleksey*
>
Reply | Threaded
Open this post in threaded view
|

Re: general question

Alexey Goncharuk
In reply to this post by voipp
As for the multi-jvm tests, please see isMultiJvm() method and it's
overrides in GridAbstractTest. We have some basic functionality to support
that kind of tests.

--AG

2017-03-09 20:09 GMT+03:00 ALEKSEY KUZNETSOV <[hidden email]>:

> Hi all! Is it possible to test on multiple jvm's ? Let's say, to have
> multiple ignite instances deployed on different jvms ? If yes, how can i
> create them and address them in code ?
> --
>
> *Best Regards,*
>
> *Kuznetsov Aleksey*
>
Reply | Threaded
Open this post in threaded view
|

Re: general question

voipp
In reply to this post by Alexey Goncharuk
I've done it, but from time to time transaction doesn't roll back. Perhaps,
its a known bug

пт, 10 мар. 2017 г. в 9:31, Alexey Goncharuk <[hidden email]>:

> Hi Aleksey,
>
> In order to ensure that a transaction is rolled back during a node failure,
> you need to orchestrate messages in such a way that at least one
> participating node does not receive a prepare request. As an example, you
> can look
> at
> org.apache.ignite.internal.processors.cache.distributed.dht.IgniteCachePrimaryNodeFailureRecoveryAbstractTest.
>
> --AG
>
> 2017-03-09 20:09 GMT+03:00 ALEKSEY KUZNETSOV <[hidden email]>:
>
> > Hi all! Is it possible to test on multiple jvm's ? Let's say, to have
> > multiple ignite instances deployed on different jvms ? If yes, how can i
> > create them and address them in code ?
> > --
> >
> > *Best Regards,*
> >
> > *Kuznetsov Aleksey*
> >
>
--

*Best Regards,*

*Kuznetsov Aleksey*