David Harvey created IGNITE-7905:
------------------------------------

             Summary: Setting userVersion in ignite.xml causes 
ignite.active(true) to fail
                 Key: IGNITE-7905
                 URL: https://issues.apache.org/jira/browse/IGNITE-7905
             Project: Ignite
          Issue Type: Bug
    Affects Versions: 2.3
         Environment: [^ignite.xml]
            Reporter: David Harvey
         Attachments: ignite.xml

On priority, I can't tell if this is an issue solely with 
ignite.active(boolean) when the userVersion or much more wide spead.   If the 
former, then this is only a Minor bug.

The userVersion should invalidate peer class loaded classes loaded from the 
client to servers, but changing the userVersion cause parts of ignite not to 
work at all, at least ignite.active(true).

I'm using the vanilla docker  image as the server, and running the 
StreamVisitorExample from Eclipse.

I create examples/targets/classes/META-INF/ignite.xml, with a userVersion of 3 
(attached).   I can run still StreamVisitorExample.  

Then I added ignite.active(true) to StreamVisitorExample, and it fails:

            if (!ExamplesUtils.hasServerNodes(ignite))

                return;

            ignite.active(true);

 

Caused by: class org.apache.ignite.IgniteDeploymentException: Task was not 
deployed or was redeployed since task execution 
[taskName=org.apache.ignite.internal.processors.cluster.GridClusterStateProcessor$ClientChangeGlobalStateComputeRequest,
 
taskClsName=org.apache.ignite.internal.processors.cluster.GridClusterStateProcessor$ClientChangeGlobalStateComputeRequest,
 codeVer=3, clsLdrId=96512270261-22a69ca3-ead9-4db6-98fe-af95310e7d93, 
seqNum=1520538097001, depMode=SHARED, dep=null]

Then I change userVersion in ignite.xml to "0" and it succeeds.

The error on the server side is:

[19:50:33,183][WARNING][pub-#11635][GridDeploymentManager] Failed to deploy 
class in SHARED or CONTINUOUS mode for given user version (class is locally 
deployed for a different user version) 
[cls=o.a.i.i.processors.cluster.GridClusterStateProcessor$ClientChangeGlobalStateComputeRequest,
 localVer=0, otherVer=3]

[19:50:33,183][SEVERE][pub-#11635][GridJobProcessor] Task was not deployed or 
was redeployed since task execution 
[taskName=o.a.i.i.processors.cluster.GridClusterStateProcessor$ClientChangeGlobalStateComputeRequest,
 
taskClsName=o.a.i.i.processors.cluster.GridClusterStateProcessor$ClientChangeGlobalStateComputeRequest,
 codeVer=3, clsLdrId=25a0a270261-003c826e-2094-4fa9-9862-988583e6a18e, 
seqNum=1520538618450, depMode=SHARED, dep=null]

class org.apache.ignite.IgniteDeploymentException: Task was not deployed or was 
redeployed since task execution 
[taskName=org.apache.ignite.internal.processors.cluster.GridClusterStateProcessor$ClientChangeGlobalStateComputeRequest,
 
taskClsName=org.apache.ignite.internal.processors.cluster.GridClusterStateProcessor$ClientChangeGlobalStateComputeRequest,
 codeVer=3, clsLdrId=25a0a270261-003c826e-2094-4fa9-9862-988583e6a18e, 
seqNum=1520538618450, depMode=SHARED, dep=null]

 at 
org.apache.ignite.internal.processors.job.GridJobProcessor.processJobExecuteRequest(GridJobProcessor.java:1160)

 at 
org.apache.ignite.internal.processors.job.GridJobProcessor$JobExecutionListener.onMessage(GridJobProcessor.java:1913)

 at 
org.apache.ignite.internal.managers.communication.GridIoManager.invokeListener(GridIoManager.java:1555)

 at 
org.apache.ignite.internal.managers.communication.GridIoManager.processRegularMessage0(GridIoManager.java:1183)

 at 
org.apache.ignite.internal.managers.communication.GridIoManager.access$4200(GridIoManager.java:126)

 at 
org.apache.ignite.internal.managers.communication.GridIoManager$9.run(GridIoManager.java:1090)

 at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

 at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

 at java.lang.Thread.run(Thread.java:748)

 

 



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

Reply via email to