IGNITE-5524: Fixed IgniteComputeImpl deserialization.
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/5376f229 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/5376f229 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/5376f229 Branch: refs/heads/ignite-2.1.2-exchange Commit: 5376f22918627e53aeade5abd97726b710e53090 Parents: c99639c Author: devozerov <[email protected]> Authored: Fri Jun 16 18:29:37 2017 +0300 Committer: devozerov <[email protected]> Committed: Fri Jun 16 18:29:37 2017 +0300 ---------------------------------------------------------------------- .../main/java/org/apache/ignite/internal/IgniteComputeImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/5376f229/modules/core/src/main/java/org/apache/ignite/internal/IgniteComputeImpl.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/apache/ignite/internal/IgniteComputeImpl.java b/modules/core/src/main/java/org/apache/ignite/internal/IgniteComputeImpl.java index 034a26a..06619f9 100644 --- a/modules/core/src/main/java/org/apache/ignite/internal/IgniteComputeImpl.java +++ b/modules/core/src/main/java/org/apache/ignite/internal/IgniteComputeImpl.java @@ -1103,7 +1103,7 @@ public class IgniteComputeImpl extends AsyncSupportAdapter<IgniteCompute> * @throws ObjectStreamException Thrown in case of unmarshalling error. */ protected Object readResolve() throws ObjectStreamException { - return prj.compute().withExecutor(execName); + return execName == null ? prj.compute() : prj.compute().withExecutor(execName); } /** {@inheritDoc} */
