Skip to content

PageStorage: remove useless interface#6263

Merged
ti-chi-bot merged 5 commits into
pingcap:masterfrom
JaySon-Huang:add_test
Nov 8, 2022
Merged

PageStorage: remove useless interface#6263
ti-chi-bot merged 5 commits into
pingcap:masterfrom
JaySon-Huang:add_test

Conversation

@JaySon-Huang
Copy link
Copy Markdown
Contributor

What problem does this PR solve?

Issue Number: ref #4562

Problem Summary:

What is changed and how it works?

PageIds PageStorage::read(NamespaceId ns_id, const PageIds & page_ids, const PageHandler & handler, const ReadLimiterPtr & read_limiter = nullptr, SnapshotPtr snapshot = {}, bool throw_on_not_exist = true)
is useless. It is only used for testing and can be totally replaced by another function.

Also add more test case following #6237. Concurrent about creating ref page and full gc.

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

@ti-chi-bot
Copy link
Copy Markdown
Member

ti-chi-bot commented Nov 7, 2022

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • Lloyd-Pottiger
  • lidezhu

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

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

Details

Reviewer can indicate their review by submitting an approval review.
Reviewer can cancel approval by submitting a request changes review.

@ti-chi-bot ti-chi-bot added 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. labels Nov 7, 2022
@JaySon-Huang JaySon-Huang added the type/code-quality-improvement PR that can improve the code quality label Nov 7, 2022
@JaySon-Huang
Copy link
Copy Markdown
Contributor Author

/cc @lidezhu @Lloyd-Pottiger @hehechen

@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Nov 7, 2022
@ti-chi-bot ti-chi-bot added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Nov 7, 2022
@JaySon-Huang
Copy link
Copy Markdown
Contributor Author

/merge

@ti-chi-bot
Copy link
Copy Markdown
Member

@JaySon-Huang: It seems you want to merge this PR, I will help you trigger all the tests:

/run-all-tests

You only need to trigger /merge once, and if the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes.

If you have any questions about the PR merge process, please refer to pr process.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository.

@ti-chi-bot
Copy link
Copy Markdown
Member

This pull request has been accepted and is ready to merge.

DetailsCommit hash: e1cc239

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Nov 7, 2022
@ti-chi-bot
Copy link
Copy Markdown
Member

@JaySon-Huang: Your PR was out of date, I have automatically updated it for you.

At the same time I will also trigger all tests for you:

/run-all-tests

If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository.

@Lloyd-Pottiger
Copy link
Copy Markdown
Contributor

/run-unit-test

@Lloyd-Pottiger
Copy link
Copy Markdown
Contributor

one ut failed

[2022-11-08T01:18:20.886Z] FAILED TESTS (1/1719):
[2022-11-08T01:18:20.886Z]     1187 ms: /tiflash/gtests_dbms PageStorageTest.readNotThrowOnNotFound

[2022-11-08T01:15:05.387Z] /home/jenkins/agent/workspace/tiflash-build-common/tiflash/dbms/src/Storages/Page/V3/tests/gtest_page_storage.cpp:426: Failure
[2022-11-08T01:15:05.387Z] Expected: (page_maps.count(2)) > (0), actual: 0 vs 0
[2022-11-08T01:15:05.387Z] [2022/11/08 09:15:04.570 +08:00] [ERROR] [Exception.cpp:89] ["std::exception. Code: 1001, type: testing::AssertionException, e.what() = /home/jenkins/agent/workspace/tiflash-build-common/tiflash/dbms/src/Storages/Page/V3/tests/gtest_page_storage.cpp:426: Failure\nExpected: (page_maps.count(2)) > (0), actual: 0 vs 0"] [source="virtual void DB::PS::V3::tests::PageStorageTest_readNotThrowOnNotFound_Test::TestBody()"] [thread_id=1]
[2022-11-08T01:15:05.387Z] /home/jenkins/agent/workspace/tiflash-build-common/tiflash/dbms/src/Storages/Page/V3/tests/gtest_page_storage.cpp:432: Failure
[2022-11-08T01:15:05.387Z] Failed

@ti-chi-bot ti-chi-bot removed the status/can-merge Indicates a PR has been approved by a committer. label Nov 8, 2022
@JaySon-Huang
Copy link
Copy Markdown
Contributor Author

/merge

@ti-chi-bot
Copy link
Copy Markdown
Member

@JaySon-Huang: It seems you want to merge this PR, I will help you trigger all the tests:

/run-all-tests

You only need to trigger /merge once, and if the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes.

If you have any questions about the PR merge process, please refer to pr process.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository.

@ti-chi-bot
Copy link
Copy Markdown
Member

This pull request has been accepted and is ready to merge.

DetailsCommit hash: f8c59ec

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Nov 8, 2022
@ti-chi-bot ti-chi-bot merged commit 3235db6 into pingcap:master Nov 8, 2022
@JaySon-Huang JaySon-Huang deleted the add_test branch November 8, 2022 02:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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. status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2. type/code-quality-improvement PR that can improve the code quality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants