Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.0.0-beta1
Description
IgniteCompute.executeAsync accepts a set of nodes. If we pass a single node that does not exist in the cluster, the API behavior is confusing and inconsistent across embedded and thin client modes:
var fakeNode = new ClusterNodeImpl("fakeId", "fakeName", new NetworkAddress("localhost", 12345)); JobExecution<String> execution = ignite.compute().executeAsync(Set.of(fakeNode), units(), "job", null); execution.resultAsync().join();
- Client: throws "Specified node is not present in the cluster" exception with a generic error code (uses deprecated constructor)
- Embedded: actually tries to connect to the specified address and throws "io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: localhost/127.0.0.1:12345"
Ensure consistent behavior; probably add a dedicated error code.
Attachments
Issue Links
- links to