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(mito): Support handling RegionWriteRequest #2218

Merged
merged 6 commits into from
Aug 22, 2023

Conversation

evenyag
Copy link
Contributor

@evenyag evenyag commented Aug 21, 2023

I hereby agree to the terms of the GreptimeDB CLA

What's changed and what's your intention?

#2160 breaks implementation of write_region(). This PR support writing a region again.

It reuses the old WriteRequest as it is more friendly to implementing write than the plain RegionWriteRequest. The RegionTask now holds a RequestBody and we convert RegionWriteRequest to WriteRequest before sending it to the worker. As a result, we can do some validation outside of the worker.

This PR also fixes all engine tests.

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)

@evenyag evenyag marked this pull request as ready for review August 22, 2023 04:43
@evenyag evenyag requested review from v0y4g3r and waynexia August 22, 2023 04:43
Copy link
Contributor

@v0y4g3r v0y4g3r left a comment

Choose a reason for hiding this comment

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

LGTM

@evenyag evenyag self-assigned this Aug 22, 2023
@waynexia waynexia added this pull request to the merge queue Aug 22, 2023
Merged via the queue into GreptimeTeam:develop with commit cd3755c Aug 22, 2023
paomian pushed a commit to paomian/greptimedb that referenced this pull request Oct 19, 2023
* feat: convert region request to worker write request

* chore: remove unused codes

* test: fix tests compiler errors

* chore: remove create/close/open request from worker requests

* chore: add comment

* chore: fix typo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants