ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roman Guseinov (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (IGNITE-7309) Sutable exception should be return as job results when node is about to stop.
Date Fri, 02 Feb 2018 09:15:00 GMT

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

Roman Guseinov edited comment on IGNITE-7309 at 2/2/18 9:14 AM:
----------------------------------------------------------------

[~amashenkov], could you please review the PR [https://github.com/apache/ignite/pull/3461] ?

* Wrapped error log (U.error) at GridJobWorker.onJobFinished to check node stopping.

* Added GridJobWorkerTest.

Tests results: [https://ci.ignite.apache.org/viewLog.html?buildId=1071207&tab=queuedBuildOverviewTab]

Thanks. 


was (Author: guseinov):
[~amashenkov], could you please review the PR [https://github.com/apache/ignite/pull/3461] ?

* Wrapped error log (U.error) at GridJobWorker.onJobFinished to check node stopping.
* Added GridJobWorkerTest.

Tests results: [https://ci.ignite.apache.org/viewLog.html?buildId=1071207&tab=queuedBuildOverviewTab]

Thanks. 

> Sutable exception should be return as job results when node is about to stop.
> -----------------------------------------------------------------------------
>
>                 Key: IGNITE-7309
>                 URL: https://issues.apache.org/jira/browse/IGNITE-7309
>             Project: Ignite
>          Issue Type: Bug
>          Components: compute, general
>            Reporter: Andrew Mashenkov
>            Assignee: Roman Guseinov
>            Priority: Minor
>              Labels: newbie, pull-request-available
>
> User job can fails with confusing exception when server node is stopping and going to
leave the grid. 
> We should suppress InterruptedException. If node is stopping then user should see NodeStoppingException.
> {code:java}
> [org.apache.ignite.internal.processors.job.GridJobWorker] Failed to serialize job response
[nodeId=02e1588
> c-53eb-454a-99a1-48ac6cb33667, ses=GridJobSessionImpl [ses=GridTaskSessionImpl 
> ......
> org.apache.ignite.IgniteCheckedException: Failed to register class.
>   at org.apache.ignite.internal.util.IgniteUtils.marshal(IgniteUtils.java:9929)
>   at org.apache.ignite.internal.processors.job.GridJobWorker.finishJob(GridJobWorker.java:819)
>   at org.apache.ignite.internal.processors.job.GridJobWorker.finishJob(GridJobWorker.java:760)
>   at org.apache.ignite.internal.processors.job.GridJobWorker.execute0(GridJobWorker.java:619)
>   at org.apache.ignite.internal.processors.job.GridJobWorker.body(GridJobWorker.java:483)
>   at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110)
>   at org.apache.ignite.internal.processors.job.GridJobProcessor.processJobExecuteRequest(GridJobProcessor.java:1180)
>   at org.apache.ignite.internal.processors.job.GridJobProcessor$JobExecutionListener.onMessage(GridJobProcessor.java:1899)
>   at org.apache.ignite.internal.managers.communication.GridIoManager.invokeListener(GridIoManager.java:1519)
>   at org.apache.ignite.internal.managers.communication.GridIoManager.processRegularMessage0(GridIoManager.java:1147)
>   at org.apache.ignite.internal.managers.communication.GridIoManager.access$4200(GridIoManager.java:119)
>   at org.apache.ignite.internal.managers.communication.GridIoManager$9.run(GridIoManager.java:1087)
>   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>   at java.lang.Thread.run(Thread.java:745)
> Caused by: org.apache.ignite.binary.BinaryObjectException: Failed to register class.
>   at org.apache.ignite.internal.binary.BinaryContext.registerUserClassDescriptor(BinaryContext.java:778)
>   at org.apache.ignite.internal.binary.BinaryContext.registerClassDescriptor(BinaryContext.java:751)
>   at org.apache.ignite.internal.binary.BinaryContext.descriptorForClass(BinaryContext.java:621)
>   at org.apache.ignite.internal.binary.BinaryWriterExImpl.marshal0(BinaryWriterExImpl.java:164)
>   at org.apache.ignite.internal.binary.BinaryWriterExImpl.marshal(BinaryWriterExImpl.java:147)
>   at org.apache.ignite.internal.binary.BinaryWriterExImpl.marshal(BinaryWriterExImpl.java:134)
>   at org.apache.ignite.internal.binary.GridBinaryMarshaller.marshal(GridBinaryMarshaller.java:239)
>   at org.apache.ignite.internal.binary.BinaryMarshaller.marshal0(BinaryMarshaller.java:82)
>   at org.apache.ignite.marshaller.AbstractNodeNameAwareMarshaller.marshal(AbstractNodeNameAwareMarshaller.java:58)
>   at org.apache.ignite.internal.util.IgniteUtils.marshal(IgniteUtils.java:9923)
>   ... 14 common frames omitted
> Caused by: org.apache.ignite.internal.IgniteInterruptedCheckedException: null
>   at org.apache.ignite.internal.util.future.GridFutureAdapter.get0(GridFutureAdapter.java:177)
>   at org.apache.ignite.internal.util.future.GridFutureAdapter.get(GridFutureAdapter.java:119)
>   at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.tryGetAndPut(GridDhtAtomicCache.java:724)
>   at org.apache.ignite.internal.MarshallerContextImpl.registerClassName(MarshallerContextImpl.java:169)
>   at org.apache.ignite.internal.MarshallerContextAdapter$1.applyx(MarshallerContextAdapter.java:168)
>   at org.apache.ignite.internal.MarshallerContextAdapter$1.applyx(MarshallerContextAdapter.java:166)
>   at org.apache.ignite.internal.MarshallerContextAdapter.computeIfAbsent(MarshallerContextAdapter.java:224)
>   at org.apache.ignite.internal.MarshallerContextAdapter.registerClass(MarshallerContextAdapter.java:164)
>   at org.apache.ignite.internal.binary.BinaryContext.registerUserClassDescriptor(BinaryContext.java:775)
>   ... 23 common frames omitted
> Caused by: java.lang.InterruptedException: null
>   at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1302)
>   at org.apache.ignite.internal.util.future.GridFutureAdapter.get0(GridFutureAdapter.java:161)
>   ... 31 common frames omitted
> {code}



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

Mime
View raw message