You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Semen Boikov (JIRA)" <ji...@apache.org> on 2016/06/27 12:59:52 UTC

[jira] [Commented] (IGNITE-3361) Service is not redeployed after a node is left topology

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

Semen Boikov commented on IGNITE-3361:
--------------------------------------

Looks like this is incorrect condition in GridServiceProcessor:reassign
{noformat}
if (!used.contains(e.getKey())) {
    if (e.getValue() < maxPerNodeCnt) {
        e.setValue(e.getValue() + 1);

        if (--remainder == 0)
            break;
    }
}
{noformat}

With the attached test maxPerNodeCnt=0 which means unlimited, but check 'if (e.getValue() < maxPerNodeCnt)' fails and service is not redeployed.

> Service is not redeployed after a node is left topology
> -------------------------------------------------------
>
>                 Key: IGNITE-3361
>                 URL: https://issues.apache.org/jira/browse/IGNITE-3361
>             Project: Ignite
>          Issue Type: Bug
>    Affects Versions: 1.6
>            Reporter: Denis Magda
>            Assignee: Semen Boikov
>            Priority: Blocker
>             Fix For: 1.7
>
>         Attachments: SingletonServiceLostAfterToplogyChangeMain.java
>
>
> In attach you will find an example demonstrating the issue when a service is not being redeployed after several nodes are started and stopped.
> The stack trace of the issue is the following
> {code}
> Exception in thread "main" class org.apache.ignite.IgniteException: Failed to find deployed service: DummyService
> 	at org.apache.ignite.internal.processors.service.GridServiceProxy$ProxyInvocationHandler.invoke(GridServiceProxy.java:168)
> 	at com.sun.proxy.$Proxy24.foo(Unknown Source)
> 	at org.apache.ignite.examples.SingletonServiceLostAfterToplogyChangeMain.failingSequence(SingletonServiceLostAfterToplogyChangeMain.java:95)
> 	at org.apache.ignite.examples.SingletonServiceLostAfterToplogyChangeMain.main(SingletonServiceLostAfterToplogyChangeMain.java:18)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:498)
> 	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)