Skip to content

feat(Spanner): multiplexed sessions#8553

Closed
bshaffer wants to merge 1 commit intomainfrom
spanner-multiplexed-sessions
Closed

feat(Spanner): multiplexed sessions#8553
bshaffer wants to merge 1 commit intomainfrom
spanner-multiplexed-sessions

Conversation

@bshaffer
Copy link
Copy Markdown
Contributor

@bshaffer bshaffer commented Sep 2, 2025

Depends on #7841

TODO

  • Write tests for precommitToken logic (see these lines)
  • Add logic for generating mutationKey
  • add mutationkey tests
  • update docs

@product-auto-label product-auto-label Bot added the api: spanner Issues related to the Spanner API. label Sep 2, 2025
@bshaffer bshaffer marked this pull request as ready for review September 30, 2025 15:42
@bshaffer bshaffer requested review from a team September 30, 2025 15:42
@bshaffer bshaffer added next release PRs to be included in the next release v2 and removed next release PRs to be included in the next release labels Oct 1, 2025
@bshaffer bshaffer force-pushed the spanner-v2-refactor branch 2 times, most recently from c2bb1c3 to eae013d Compare October 13, 2025 19:09
Base automatically changed from spanner-v2-refactor to main October 15, 2025 18:18
@bshaffer bshaffer force-pushed the spanner-multiplexed-sessions branch 2 times, most recently from aff0e6f to a7a0397 Compare October 15, 2025 18:47
@bshaffer bshaffer force-pushed the spanner-multiplexed-sessions branch from a7a0397 to 60b6801 Compare October 15, 2025 18:51
Comment thread Spanner/src/Database.php
Comment thread Spanner/src/Database.php
Comment thread Spanner/src/InstanceConfiguration.php
Comment thread Spanner/src/InstanceConfiguration.php
Comment thread Spanner/src/Instance.php
require __DIR__ . '/../../../../vendor/autoload.php';
}

BypassFinals::enable();
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was comment to move this to a bootstrap file, but is this here because of this being related to a locking mechanism? Or we can move it to a bootstrap file?

Copy link
Copy Markdown
Contributor Author

@bshaffer bshaffer Oct 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is here because it is run separately, outside of PHP, and so doesn't bootstrap. We could have it manually include bootstrap.php, but I think it makes more sense for it to just enable BypassFinals itself

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, +1 on keeping it here for simplicity. Don't think it looks bad or anything.

@bshaffer
Copy link
Copy Markdown
Contributor Author

Closing in favor of #8666 (which splits this PR into two PRs, #8665 and #8666)

@bshaffer bshaffer closed this Oct 16, 2025
@bshaffer bshaffer deleted the spanner-multiplexed-sessions branch October 22, 2025 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: spanner Issues related to the Spanner API. v2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants