Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement CloseRegionHandler #1569

Merged
merged 26 commits into from
May 23, 2023

Conversation

WenyXu
Copy link
Member

@WenyXu WenyXu commented May 11, 2023

I hereby agree to the terms of the GreptimeDB CLA

What's changed and what's your intention?

Implement CloseRegionHandler

Checklist

  • I have written the necessary rustdoc comments.
  • I have added the necessary unit tests and integration tests.

Refer to a related PR or issue link (optional)

#1126

@WenyXu WenyXu force-pushed the feat/close-region branch 2 times, most recently from ca9db42 to 317945d Compare May 15, 2023 07:40
@WenyXu WenyXu marked this pull request as ready for review May 15, 2023 07:40
@codecov
Copy link

codecov bot commented May 15, 2023

Codecov Report

Merging #1569 (6c12813) into develop (9f67ad8) will decrease coverage by 0.46%.
The diff coverage is 92.63%.

@@             Coverage Diff             @@
##           develop    #1569      +/-   ##
===========================================
- Coverage    85.72%   85.27%   -0.46%     
===========================================
  Files          556      563       +7     
  Lines        89573    90022     +449     
===========================================
- Hits         76785    76762      -23     
- Misses       12788    13260     +472     

@WenyXu WenyXu force-pushed the feat/close-region branch 2 times, most recently from d6c7d15 to 9845b34 Compare May 15, 2023 10:23
@WenyXu WenyXu marked this pull request as draft May 16, 2023 02:29
@WenyXu WenyXu marked this pull request as ready for review May 16, 2023 05:56
@WenyXu WenyXu requested a review from fengjiachun May 16, 2023 06:18
src/datanode/src/instance.rs Outdated Show resolved Hide resolved
src/mito/src/table.rs Outdated Show resolved Hide resolved
src/table/src/engine.rs Outdated Show resolved Hide resolved
src/table/src/requests.rs Outdated Show resolved Hide resolved
src/datanode/src/heartbeat/handler/close_region.rs Outdated Show resolved Hide resolved
src/datanode/src/heartbeat/handler/close_region.rs Outdated Show resolved Hide resolved
@WenyXu WenyXu force-pushed the feat/close-region branch 2 times, most recently from eb3dd4b to a1e7767 Compare May 16, 2023 09:30
src/datanode/src/heartbeat/handler/close_region.rs Outdated Show resolved Hide resolved
src/datanode/src/heartbeat/handler/close_region.rs Outdated Show resolved Hide resolved
src/mito/src/engine.rs Show resolved Hide resolved
src/storage/src/engine.rs Outdated Show resolved Hide resolved
src/table/src/table.rs Outdated Show resolved Hide resolved
@MichaelScofield
Copy link
Collaborator

Is this PR containing part of #1596? If so, I suggest converting this PR to draft before that one is merged.

@WenyXu
Copy link
Member Author

WenyXu commented May 22, 2023

PATL @killme2008

Copy link
Contributor

@killme2008 killme2008 left a comment

Choose a reason for hiding this comment

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

Almost LGTM.

src/datanode/src/heartbeat/handler.rs Outdated Show resolved Hide resolved
src/datanode/src/sql.rs Outdated Show resolved Hide resolved
src/datanode/src/heartbeat/handler.rs Show resolved Hide resolved
@MichaelScofield MichaelScofield merged commit 3dc45f1 into GreptimeTeam:develop May 23, 2023
paomian pushed a commit to paomian/greptimedb that referenced this pull request Oct 19, 2023
* feat: implement CloseRegionHandler

* feat: register heartbeat response handlers

* test: add tests for heartbeat response handlers

* fix: drop table does not release regions

* chore: apply suggestion from CR

* fix: fix close region issue

* chore: apply suggestion from CR

* chore: apply suggestion from CR

* chore: apply suggestion from CR

* chore: apply suggestion from CR

* chore: apply suggestion from CR

* chore: apply suggestion from CR

* chore: apply suggestion from CR

* chore: modify method name and add log

* refactor: refactor HeartbeatResponseHandler

* chore: apply suggestion from CR

* refactor: remove close method from Region trait

* chore: apply suggestion from CR

* chore: remove PartialEq from CloseTableResult

* chore: apply suggestion from CR
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.

3 participants