Skip to content

Conversation

matthewdale
Copy link
Collaborator

@matthewdale matthewdale commented Sep 2, 2025

GODRIVER-3612

Summary

Add an internal-only API mongo.NewSessionWithLSID that returns a Session for the specified Client and session ID document.

Background & Motivation

Copy link
Contributor

API Change Report

No changes found!

@matthewdale matthewdale force-pushed the godriver3612-session-with-id-v1 branch 3 times, most recently from 810363d to f51a5c3 Compare September 3, 2025 02:11
@matthewdale matthewdale changed the title GODRIVER-3612 Add an internal-only NewSessionWithLSID API. GODRIVER-3612 Add an internal-only NewSessionWithLSID API (v1). Sep 3, 2025
@matthewdale matthewdale changed the title GODRIVER-3612 Add an internal-only NewSessionWithLSID API (v1). GODRIVER-3612 Add an internal-only NewSessionWithLSID API (v1) Sep 3, 2025
@matthewdale matthewdale added review-priority-normal Medium Priority PR for Review: within 1 business day feature ignore-for-release labels Sep 3, 2025
@matthewdale matthewdale marked this pull request as ready for review September 4, 2025 03:53
@Copilot Copilot AI review requested due to automatic review settings September 4, 2025 03:53
@matthewdale matthewdale requested a review from a team as a code owner September 4, 2025 03:53
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds an internal-only API mongo.NewSessionWithLSID that creates a MongoDB session with a specified session ID document. This functionality is intended for internal use cases where control over the session ID is needed.

  • Introduces NewSessionWithLSID function that accepts a client and session ID document
  • Adds comprehensive integration tests to verify the API works correctly and enforces expected limitations
  • Updates build configuration to include the mongointernal build tag for testing

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
mongo/mongointernal.go Implements the new NewSessionWithLSID function with proper documentation and build constraints
mongo/integration/mongointernal_test.go Adds integration tests covering normal usage and expected panic behaviors
.evergreen/config.yml Updates build tags to include mongointernal for CI testing

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@matthewdale matthewdale requested review from prestonvasquez and removed request for qingyang-hu September 5, 2025 16:59
@matthewdale matthewdale merged commit 0b2794f into mongodb:release/1.17 Sep 5, 2025
32 of 36 checks passed
alcaeus added a commit that referenced this pull request Sep 22, 2025
* release/1.17:
  GODRIVER-3612 Add an internal-only NewSessionWithLSID API (v1) (#2183)
  Consider HTTP 429 a succcessful response in the Markdown link check. (#2191)
  Pin drivers-evergreen-tools to rev 98f6b0e in v1. (#2184)
  Retry Markdown link checks on HTTP 429 (v1) (#2186)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature ignore-for-release review-priority-normal Medium Priority PR for Review: within 1 business day

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants