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

test: add write test for region failover #1673

Merged
merged 3 commits into from
May 31, 2023

Conversation

WenyXu
Copy link
Member

@WenyXu WenyXu commented May 30, 2023

I hereby agree to the terms of the GreptimeDB CLA

What's changed and what's your intention?

Test datanode nodes writing after region failover

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

src/frontend/src/instance.rs Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented May 30, 2023

Codecov Report

Merging #1673 (f25c0e7) into develop (72b6bd1) will decrease coverage by 0.21%.
The diff coverage is 86.81%.

@@             Coverage Diff             @@
##           develop    #1673      +/-   ##
===========================================
- Coverage    85.72%   85.52%   -0.21%     
===========================================
  Files          573      573              
  Lines        91963    92033      +70     
===========================================
- Hits         78839    78707     -132     
- Misses       13124    13326     +202     

@WenyXu WenyXu force-pushed the test/region-failover branch 2 times, most recently from 68d2988 to 41eb878 Compare May 30, 2023 12:34
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.

LGTM

@MichaelScofield MichaelScofield merged commit 0460f3a into GreptimeTeam:develop May 31, 2023
@@ -17,5 +17,9 @@ mod grpc;
#[macro_use]
mod http;

grpc_tests!(File, S3, S3WithCache, Oss, Azblob);
http_tests!(File, S3, S3WithCache, Oss, Azblob);
Copy link
Collaborator

@NiwakaDev NiwakaDev Jun 12, 2023

Choose a reason for hiding this comment

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

@WenyXu

Why did you remove Azblob?

I'll add tests for #1611, but it is also unnecessary?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch! I think that was because I didn't rebase the PR to the latest develop branch. I'm going fix it 👀 Thks @NiwakaDev

paomian pushed a commit to paomian/greptimedb that referenced this pull request Oct 19, 2023
* test: add write test for region failover

* test: add written data assertion after failover

* test: support more storage types
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.

4 participants