Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-21553

C++ 3.0: compute::broadcast doesn't throw exceptions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • compute, thin client

    Description

      The following test fails with "Actual: it throws nothing." probably because broadcast_async doesn't propagate exceptions.

      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);
      } 

      Attachments

        Activity

          People

            isapego Igor Sapego
            vpakhnushev Vadim Pakhnushev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 40m
                40m