Skip to content

fs: adding SDKs - #23957

Open
guangleibao wants to merge 7 commits into
release-8.5from
release-8.5-doc-updates
Open

guangleibao wants to merge 7 commits into
release-8.5from
release-8.5-doc-updates

Conversation

@guangleibao

@guangleibao guangleibao commented Sep 27, 2026 •

Copy link
Copy Markdown
Collaborator

First-time contributors' checklist

What is changed, added, or deleted? (Required)

Which TiDB version(s) do your changes apply to? (Required)

Tips for choosing the affected version(s):

By default, CHOOSE MASTER ONLY so your changes will be applied to the next TiDB major or minor releases. If your PR involves a product feature behavior change or a compatibility change, CHOOSE THE AFFECTED RELEASE BRANCH(ES) AND MASTER.

For details, see tips for choosing the affected versions.

  • master (the latest development version)
  • v9.0 (TiDB 9.0 versions)
  • v8.5 (TiDB 8.5 versions)
  • v8.1 (TiDB 8.1 versions)
  • v7.5 (TiDB 7.5 versions)
  • v7.1 (TiDB 7.1 versions)
  • v6.5 (TiDB 6.5 versions)

What is the related PR or file link(s)?

  • Related code change PR links (if applicable):
  • This PR is translated from:
  • Other reference link(s):

AI agent involvement

  • The changes in this PR were primarily made by an AI agent on behalf of the PR author.

Do your changes match any of the following descriptions?

  • Delete files
  • Change aliases
  • Need modification after applied to another branch
  • Might cause conflicts after applied to another branch

Summary by CodeRabbit

  • Documentation
    • Added a TiDB Cloud Filesystem SDK guide with links to TypeScript, Go, Python, Rust, Kotlin, and Swift documentation.
    • Clarified the difference between TiDB Cloud API keys and filesystem tokens, listed server URLs for six regions, and advised checking each SDK’s endpoints, credentials, and supported operations.
    • Added links to related CLI, filesystem data, and automation guides, and made the SDK guide easier to find from the introduction and table of contents.
    • Documented free filesystem limits for organizations without a registered credit card, what happens when limits are reached, and how to change the limits.
    • Added a Pricing & Billing link to the table of contents.

@guangleibao
guangleibao requested a review from qiancai September 27, 2026 10:58
@ti-chi-bot ti-chi-bot Bot added first-time-contributor Indicates that the PR was contributed by an external member and is a first-time contributor. missing-translation-status This PR does not have translation status info. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Sep 27, 2026
@coderabbitai

coderabbitai Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: pingcap/docs/.coderabbit.yaml

Review profile: ASSERTIVE

Plan: Advanced

Run ID: 27e84a83-8a67-42fc-b488-32c02c4ba10e

📥 Commits

Reviewing files that changed from the base of the PR and between 5ea1c75 and 24f3ed4.

📒 Files selected for processing (1)
  • TOC-tidb-cloud-filesystem.md

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.


📝 Walkthrough

Walkthrough

The documentation adds a TiDB Cloud Filesystem SDK guide with credential details, regional server URLs, and links to six language SDK guides. It also documents usage limits for organizations without a registered credit card and adds navigation links.

Changes

Filesystem SDK documentation

Layer / File(s) Summary
SDK guide content
tidb-cloud-filesystem/filesystem-sdks.md
Adds an overview of Drive9, credential and regional server URL tables, links to six language SDK guides, and links to related documentation.
SDK guide navigation
tidb-cloud-filesystem/filesystem-intro.md, TOC-tidb-cloud-filesystem.md
Adds a link to the SDK guide in the filesystem introduction. Adds SDK and Pricing & Billing links to the table of contents.

Filesystem usage limits

Layer / File(s) Summary
Usage limits and limit handling
tidb-cloud-filesystem/manage-filesystem-limits.md
Documents limits for organizations without a registered credit card, what happens when a limit is reached, and how to change limits.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Suggested reviewers: icemap

Merge Risk: 🔵 Low · up to 24f3e

The new guidance can send users to unsupported endpoints and mislead them about which limits stop writes. The impact is bounded because supported regions remain listed and the affected limit scopes are narrow; the documentation is mergeable with owner awareness, though both passages should be corrected.

Architecture Summary

Architecture risk: 🔵 Low · up to 24f3e

The change affects 2 systems.

Changed systems: tidb-cloud-filesystem, TOC-tidb-cloud-filesystem.md

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — tidb-cloud-filesystem (service) was modified; 3 changed files map to changed impact.
  • observed — TOC-tidb-cloud-filesystem.md (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in tidb-cloud-filesystem/filesystem-intro.md: Adds a “Get started” option linking application developers to the filesystem SDK documentation.
  • observed — Modified behavior in tidb-cloud-filesystem/filesystem-sdks.md: Adds page metadata identifying the SDK topic and summarizing its relationship to Drive9 and the six language guides.
  • observed — Modified behavior in tidb-cloud-filesystem/filesystem-sdks.md: Adds an overview of TiDB Cloud Filesystem’s relationship to Drive9, identifies the Drive9 repository as the source for SDK documentation, and describes the server URL and API key information covered by the guides.
  • observed — Modified behavior in tidb-cloud-filesystem/filesystem-sdks.md: Adds tables mapping TiDB Cloud API keys to control-plane actions and filesystem tokens to data-plane actions, and listing six regional Drive9 server URLs with filesystem-token credentials.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description includes the required template and selects TiDB v8.5, but it leaves the required change summary empty. It also provides no reference links. Add a concise summary of the SDK, pricing and billing, and filesystem limit documentation changes. Include relevant reference links when available.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the main change: adding SDK documentation for TiDB Cloud Filesystem.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository: pingcap/docs/.coderabbit.yaml

Review profile: ASSERTIVE

Plan: Advanced

Run ID: 86bb5b3a-2e4a-46bd-a618-0086953e0435

📥 Commits

Reviewing files that changed from the base of the PR and between 4c8e5b9 and d7a7f6d.

📒 Files selected for processing (3)
  • TOC-tidb-cloud-filesystem.md
  • tidb-cloud-filesystem/filesystem-intro.md
  • tidb-cloud-filesystem/filesystem-sdks.md

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

Comment on lines +28 to +29
|`gcp-us-east1`|`https://gcp-us-east-1.drive9.ai`| FS token|
|`azure-centralus`|`https://azure-centralus.drive9.ai`|FS token|

@coderabbitai coderabbitai Bot Sep 27, 2026 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Remove the unsupported region entries.

Line 28 and Line 29 list gcp-us-east1 and azure-centralus as TiDB Cloud Filesystem regions. The current Filesystem regions guide lists only AWS us-east-1, AWS us-west-2, AWS ap-southeast-1, and Alibaba Cloud Singapore. It does not list GCP or Azure. (docs.pingcap.com)

Remove the unsupported region entries
-|`gcp-us-east1`|`https://gcp-us-east-1.drive9.ai`| FS token|
-|`azure-centralus`|`https://azure-centralus.drive9.ai`|FS token|
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
|`gcp-us-east1`|`https://gcp-us-east-1.drive9.ai`| FS token|
|`azure-centralus`|`https://azure-centralus.drive9.ai`|FS token|

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

The GPC line should be

|gcp-us-east1|https://gcp-us-east1.drive9.ai| FS token|

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@guangleibao, thanks for clarifying. My request to remove the GCP row was incorrect. Keep the row with this endpoint:

|`gcp-us-east1`|`https://gcp-us-east1.drive9.ai`| FS token|

Does TiDB Cloud Filesystem also support azure-centralus? That part of the finding remains open.


✏️ Learnings added
Learnt from: guangleibao
Repo: pingcap/docs PR: 23957
File: tidb-cloud-filesystem/filesystem-sdks.md:28-29
Timestamp: 2026-10-02T02:44:27.389Z
Learning: In `tidb-cloud-filesystem/filesystem-sdks.md`, TiDB Cloud Filesystem supports the `gcp-us-east1` region. Its Drive9 SDK/API server URL is `https://gcp-us-east1.drive9.ai`, authenticated with a filesystem token. Do not recommend removing this region merely because the published regions guide does not list it.

Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.

You are interacting with an AI system.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

The GPC line should be

|gcp-us-east1|https://gcp-us-east1.drive9.ai| FS token|

@qiancai FYI

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository: pingcap/docs/.coderabbit.yaml

Review profile: ASSERTIVE

Plan: Advanced

Run ID: f553ddb6-00fb-445d-abb4-2853ba8bbb84

📥 Commits

Reviewing files that changed from the base of the PR and between d7a7f6d and 5ea1c75.

📒 Files selected for processing (1)
  • tidb-cloud-filesystem/manage-filesystem-limits.md

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 2 remain after this review.


## When a file system reaches a limit

When a file system hits one of these limits, your existing files stay readable and the file system **stops accepting new writes**. The TiDB Cloud console shows a warning.

@coderabbitai coderabbitai Bot Sep 27, 2026 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Scope the write-stop behavior to each limit.

The regional limit controls creation of another file system. The 500 MB limit rejects a write to an individual file. Only the file-count and total-storage limits stop new writes across the file system.

Suggested fix
When a file system reaches its 2,000-file or 2 GB total-storage limit, existing files stay readable, but the file system stops accepting new writes. When a file exceeds the 500 MB per-file limit, the write to that file is rejected. The one-file-system-per-region limit applies when you create another file system in that region. The TiDB Cloud console shows a warning.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

The suggested fix is good. Should be accepted.

@qiancai qiancai self-assigned this Sep 27, 2026
@qiancai qiancai added area/tidb-cloud This PR relates to the area of TiDB Cloud. translation/no-need No need to translate this PR. labels Sep 27, 2026
@ti-chi-bot ti-chi-bot Bot removed the missing-translation-status This PR does not have translation status info. label Sep 27, 2026
Comment thread tidb-cloud-filesystem/manage-filesystem-limits.md Outdated
Comment thread tidb-cloud-filesystem/manage-filesystem-limits.md Outdated
@ti-chi-bot

ti-chi-bot Bot commented Sep 27, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from qiancai. For more information see the Code Review Process.
Please ensure that each of them provides their approval before proceeding.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot Bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/tidb-cloud This PR relates to the area of TiDB Cloud. first-time-contributor Indicates that the PR was contributed by an external member and is a first-time contributor. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. translation/no-need No need to translate this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants