Skip to content

Storage: Cleanup StoragePool interface#10411

Merged
ti-chi-bot[bot] merged 4 commits intopingcap:masterfrom
JaySon-Huang:cleanup_storagepool
Sep 8, 2025
Merged

Storage: Cleanup StoragePool interface#10411
ti-chi-bot[bot] merged 4 commits intopingcap:masterfrom
JaySon-Huang:cleanup_storagepool

Conversation

@JaySon-Huang
Copy link
Contributor

@JaySon-Huang JaySon-Huang commented Sep 6, 2025

What problem does this PR solve?

Issue Number: ref #6233

Problem Summary:

The function PageReaderPtr newLogReader(ReadLimiterPtr read_limiter, PageStorageSnapshotPtr & snapshot); is somehow duplicated with PageReaderPtr newLogReader(ReadLimiterPtr read_limiter, bool snapshot_read, const String & tracing_id);. It is confusing and increase the code complexity, and make testing more confusing.

What is changed and how it works?

Storage: Cleanup StoragePool interface
* Remove useless newLogReader interface from StoragePool
* Remove useless always true `snapshot_read` param from StorageSnapshot
* Refine unit tests of PageStorageMixedTest

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Documentation

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features
  • Changes MySQL compatibility

Release note

None

Signed-off-by: JaySon-Huang <tshent@qq.com>
@ti-chi-bot ti-chi-bot bot added release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Sep 6, 2025
Signed-off-by: JaySon-Huang <tshent@qq.com>
Signed-off-by: JaySon-Huang <tshent@qq.com>
@ti-chi-bot ti-chi-bot bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Sep 6, 2025
Signed-off-by: JaySon-Huang <tshent@qq.com>
@ti-chi-bot ti-chi-bot bot added approved needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Sep 8, 2025
@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Sep 8, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JinheLin, Lloyd-Pottiger

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

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [JinheLin,Lloyd-Pottiger]

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 lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Sep 8, 2025
@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Sep 8, 2025

[LGTM Timeline notifier]

Timeline:

  • 2025-09-08 01:57:50.136989427 +0000 UTC m=+240136.696870914: ☑️ agreed by Lloyd-Pottiger.
  • 2025-09-08 02:05:15.559460288 +0000 UTC m=+240582.119341775: ☑️ agreed by JinheLin.

@ti-chi-bot ti-chi-bot bot merged commit 7339a99 into pingcap:master Sep 8, 2025
7 checks passed
@JaySon-Huang JaySon-Huang deleted the cleanup_storagepool branch September 8, 2025 02:34
JaySon-Huang added a commit to ti-chi-bot/tiflash that referenced this pull request Sep 22, 2025
ref pingcap#6233

Storage: Cleanup StoragePool interface
* Remove useless newLogReader interface from StoragePool
* Remove useless always true `snapshot_read` param from StorageSnapshot
* Refine unit tests of PageStorageMixedTest

Signed-off-by: JaySon-Huang <tshent@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved lgtm release-note-none Denotes a PR that doesn't merit a release note. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants