Skip to content

Postgres wire test: Issue8135 refusedSetIsRefusedAgainOnReplay cannot fail since #8212 drops the portal at Sync #8261

Closed

Description

@robfrank

Summary

Found while working on #8217 (PR #8243). Issue8135SetAppliedAtExecuteIT.refusedSetIsRefusedAgainOnReplay is meant to prove the #8135 rule in applyPendingSetting(): the portal's SET marker is cleared only AFTER the SET applied, so retrying a refused SET on the same bound portal (no new Bind) is refused again rather than answered CommandComplete SET.

On the wire that rule cannot be observed any more:

So the test passes whether the marker is cleared before or after the apply. PostgreSQL has the same portal lifecycle, so the invariant may have no wire-observable form at all.

Options

  • Test the ordering at unit level: drive applyPendingSetting() with a refusing PostgresSessionSettings and assert portal.setting is still set afterwards.
  • Or drop the ordering guarantee and its test, if no wire path can reach it.

Where

  • postgresw/src/test/java/com/arcadedb/postgres/Issue8135SetAppliedAtExecuteIT.java refusedSetIsRefusedAgainOnReplay
  • postgresw/src/main/java/com/arcadedb/postgres/PostgresNetworkExecutor.java applyPendingSetting()

Activity

  1. added this to the 26.10.1 milestone on Sep 23, 2026
  2. added
    severity:minor
    on Sep 23, 2026
  3. added
    in progress
    on Sep 24, 2026
  4. self-assigned this
    on Sep 24, 2026
  5. added 2 commits that reference this issue on Sep 25, 2026
  6. lvca commented on Sep 25, 2026

    @lvca
    Member

    Fixed in #8309, available in 26.10.1.

    The rule (a refused SET stays pending on the portal, so replaying it is refused again) can no longer be reached over the wire, so it is now covered by a direct unit test. The wire test still checks that a replay is answered with an error, never as a successful SET. No change in behaviour.


    ❤️ Thanks for helping make ArcadeDB better! ArcadeDB is free and open source, sustained by its community. If it's useful to you or your company, please consider becoming a sponsor to keep development going.

  7. removed
    in progress
    on Sep 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

postgresql-wireseverity:minor

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions