[
https://issues.apache.org/jira/browse/IGNITE-21553?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eduard Rakhmankulov reassigned IGNITE-21553:
--------------------------------------------
Assignee: Eduard Rakhmankulov (was: Igor Sapego)
> 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: Eduard Rakhmankulov
> Priority: Major
> Labels: ignite-3
> Time Spent: 40m
> Remaining Estimate: 0h
>
> 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)