Skip to content

Remove unused OperationContextBinding test wrappers#1903

Draft
vbabanin wants to merge 1 commit intomongodb:mainfrom
vbabanin:JAVA-6118
Draft

Remove unused OperationContextBinding test wrappers#1903
vbabanin wants to merge 1 commit intomongodb:mainfrom
vbabanin:JAVA-6118

Conversation

@vbabanin
Copy link
Member

@vbabanin vbabanin commented Mar 3, 2026

  • Delete OperationContextBinding and AsyncOperationContextBinding classes to eliminate code missed during CSOT refactoring
  • Remove unused ClusterFixture overloads (getBinding(TimeoutSettings), getBinding(OperationContext), getAsyncBinding(OperationContext), createNewOperationContext) to simplify the test API
  • Add applySessionContext to ReadOperation executeSync overloads to restore SessionContext application that was silently lost

JAVA-6118

- Delete OperationContextBinding and AsyncOperationContextBinding classes to eliminate code missed during CSOT refactoring
- Remove unused ClusterFixture overloads (getBinding(TimeoutSettings), getBinding(OperationContext), getAsyncBinding(OperationContext), createNewOperationContext) to simplify the test API
- Simplify binding factory methods to return ClusterBinding/AsyncClusterBinding directly instead of wrapping them in order to remove unnecessary indirection
- Add applySessionContext to ReadOperation executeSync overloads to restore SessionContext application that was silently lost

JAVA-6118
@vbabanin vbabanin self-assigned this Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant