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

support schema header for http/grpc service #544

Merged
merged 4 commits into from
Jan 11, 2023

Conversation

ShiKaiWi
Copy link
Member

@ShiKaiWi ShiKaiWi commented Jan 6, 2023

Which issue does this PR close?

Closes #

Rationale for this change

Currently, it is unreasonable to use tenant as the schema when accessing grpc/http service.

What changes are included in this PR?

  • Add new header x-ceresdb-schema;
  • For compatibility, tenant is still used as schema if schema is not set.

Are there any user-facing changes?

User now can use x-ceresdb-schema header to set schema instead of x-ceresdb-access-tenant.

How does this change test

Existing tests.

server/src/http.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@jiacai2050 jiacai2050 left a comment

Choose a reason for hiding this comment

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

LGTM

@jiacai2050 jiacai2050 merged commit ead7260 into apache:main Jan 11, 2023
@ShiKaiWi ShiKaiWi deleted the feat-schema-header branch January 18, 2023 06:55
chunshao90 pushed a commit to chunshao90/ceresdb that referenced this pull request May 15, 2023
* support schema header for http/grpc service

* rename header value of the schema

* add flag to control whether to enable use tenant as schema

* remove commented clone impl for StorageServiceImpl
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.

None yet

2 participants