Skip to content

[C++] Assertion fail during test script #49207

Closed

Description

@justing-bq

Describe the bug, including details regarding any error messages, version, and platform.

While running cpp_test.sh we see arrow-flight-sql-odbc-test on MacOS failing with
E0210 00:46:36.681501000 8701661376 call_op_set.h:985] assertion failed: false

Can be reproduced on branch: https://github.com/Bit-Quill/arrow/tree/gh-49207-macos_failure

Sample log: https://github.com/Bit-Quill/arrow/actions/runs/21847501965/job/63046698682

Component(s)

C++, FlightRPC

Activity

  1. shashbha14 commented on Feb 10, 2026

    @shashbha14

    take

  2. shashbha14 commented on Feb 10, 2026

    @shashbha14

    I dug into the failing arrow-flight-sql-odbc-test run on ODBC ARM64 macOS 14.

    From the log, the gRPC assert

    call_op_set.h:985 assertion failed: false

    happens between ConnectionInfoMockTest.TestSQLGetInfoConvertFloat and
    ConnectionInfoMockTest.TestSQLGetInfoConvertIntervalDayTime.

    Each of these tests uses the FlightSQLODBCMockTestBase fixture, whose
    TearDown() calls Disconnect() and then server_->Shutdown() and
    server_->Wait() on SQLiteFlightSqlServer (see odbc_test_suite.cc).

    So the assertion is triggered during server shutdown between tests, not in the
    test bodies themselves. It looks like gRPC is seeing an invalid operation while
    the Flight SQL server is being torn down.

    I don't have a macOS ARM environment to debug inside gRPC itself; I can’t
    reliably change the shutdown logic without reproducing the issue. Could someone
    with macOS ARM + debugger take a look at the shutdown path for
    SQLiteFlightSqlServer in these tests?

  3. alinaliBQ commented on Apr 20, 2026

    @alinaliBQ
    Collaborator

    Hi @shashbha14 , we were able to resolve this issue by reusing connections to reduce the number of new connections made on macOS, and keeping 1 mock server set up/shut down during the entire test execution flow. Previously, new connections were made during each test, and the mock server had set up / tear down during each test case, and we think this is what caused the too_many_operations error.

  4. thisisnic commented on Nov 13, 2026

    @thisisnic
    Member

    @alinaliBQ Do you know if this was resolved in #49267 and #49784, or if it's still an issue?

  5. alinaliBQ commented on Nov 13, 2026

    @alinaliBQ
    Collaborator

    Thanks for the ping. This issue is already resolved, I can close it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions