Vadim Pakhnushev created IGNITE-21553:
-----------------------------------------
Summary: C++ 3.0: compute::broadcast doesn't throw exceptions
Key: IGNITE-21553
URL: https://issues.apache.org/jira/browse/IGNITE-21553
Project: Ignite
Issue Type: Bug
Components: compute, thin client
Reporter: Vadim Pakhnushev
Assignee: Igor Sapego
The following test fails with "Actual: it throws nothing." probably because
broadcast_async doesn't propagate exceptions.
{code:c}
TEST_F(compute_test, unknown_node_broadcast_throws) {
auto unknown_node = cluster_node("some", "random", {"127.0.0.1", 1234});
EXPECT_THROW(
{
try {
m_client.get_compute().broadcast({unknown_node}, {}, ECHO_JOB,
{"unused"});
} catch (const ignite_error &e) {
EXPECT_THAT(e.what_str(), testing::HasSubstr("None of the
specified nodes are present in the cluster: [random]"));
throw;
}
},
ignite_error);
} {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)