microsoft / microsoft/multiclouddb-sdk-for-java

Constitution compliance: add portable operation cancellation

Open
#103 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
7
Forks
7
Avg merge
1d 22h
Merged PRs (30d)
1

Description

Problem

The constitution requires every operation to support timeout and cancellation. OperationOptions currently exposes a timeout hint but no cancellation mechanism, and provider operations do not have a portable cancellation contract.

Scope

  • Define a provider-neutral cancellation token/context and its interaction with timeout.
  • Map cancellation to the Azure Cosmos, AWS DynamoDB, and Google Spanner SDK execution models.
  • Define normalized cancellation errors, retryability, diagnostics, and race behavior.
  • Cover all portable operations, not only update().

Acceptance criteria

  • A caller can cancel every in-flight portable operation through per-request options.
  • Cancellation stops or abandons native work as far as each vendor SDK permits and never returns success-shaped fallback data.
  • Timeout and caller cancellation are distinguishable and consistently normalized.
  • Shared conformance and all provider implementations/tests are updated.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating OperationOptions, the portable operation interfaces, shared conformance tests, and the Azure Cosmos, AWS DynamoDB, and Google Spanner provider implementations. Define the cancellation and timeout contract across those entry points, then verify every operation and provider distinguishes cancellation from timeout without returning fallback success data.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, azure, google-cloud, java
Domain
backend, cloud, databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.