Skip to content

[DocDB] PgMiniTest.OpenTableFailureDuringPerform fails on macOS #31497

@ellabaron-code

Description

@ellabaron-code

Description

PgMiniTest.OpenTableFailureDuringPerform fails on macOS.

The test sets FLAGS_TEST_request_unknown_tables_during_perform to inject table-lookup failures during Perform, then asserts the resulting SELECT surfaces kObjectNotFound errors. On Linux, requests are served via DoHandleSharedExchangeQuery (the shared-memory IPC path), which honours the flag.

On macOS, shared-memory IPC is disabled (pg_client_use_shared_memory defaults to !yb::kIsMac), so the request is served by PgClientServiceImpl::Perform instead. That code path never read the flag, so every table lookup succeeded and the final ASSERT_TRUE(has_object_not_found_errors) failed.

Steps to reproduce: build on macOS and run

pgwrapper_pg_mini-test --gtest_filter=PgMiniTest.OpenTableFailureDuringPerform

Issue Type

kind/failing-test

Warning: Please confirm that this issue does not contain any sensitive information

I confirm this issue does not contain any sensitive information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions