Skip to content

Support for sharing extend metadata between grpc and http #4963

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

Closed
wants to merge 54 commits into from

Conversation

CrazyHZM
Copy link
Member

@CrazyHZM CrazyHZM commented Aug 3, 2022

Signed-off-by: crazyhzm crazyhzm@gmail.com

Description

Issue reference

Please reference the issue this PR will close: #4941

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

Signed-off-by: crazyhzm <crazyhzm@gmail.com>
@CrazyHZM CrazyHZM requested review from a team as code owners August 3, 2022 02:37
Signed-off-by: crazyhzm <crazyhzm@gmail.com>
Signed-off-by: crazyhzm <crazyhzm@gmail.com>
Signed-off-by: crazyhzm <crazyhzm@gmail.com>
}

// MetadataGet get metadata of sidecar.
func (m *DefaultStore) MetadataGet() (map[string]string, error) {
Copy link
Member

Choose a reason for hiding this comment

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

Always nil error? Could we remove it?

Copy link
Member Author

Choose a reason for hiding this comment

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

If the follow-up is no longer in-memory storage, it may no longer be a nil error.

Copy link
Contributor

Choose a reason for hiding this comment

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

Is there any plan metadata stored in something else rather than in-memory storage?

Signed-off-by: crazyhzm <crazyhzm@gmail.com>
Signed-off-by: crazyhzm <crazyhzm@gmail.com>
Signed-off-by: crazyhzm <crazyhzm@gmail.com>
@codecov
Copy link

codecov bot commented Aug 3, 2022

Codecov Report

Merging #4963 (41eb10f) into master (ce6dbf1) will decrease coverage by 0.07%.
The diff coverage is 58.66%.

@@            Coverage Diff             @@
##           master    #4963      +/-   ##
==========================================
- Coverage   64.86%   64.79%   -0.07%     
==========================================
  Files         151      151              
  Lines       15810    15815       +5     
==========================================
- Hits        10255    10248       -7     
- Misses       4833     4843      +10     
- Partials      722      724       +2     
Impacted Files Coverage Δ
pkg/http/api.go 71.44% <12.90%> (-0.25%) ⬇️
pkg/grpc/api.go 70.17% <89.74%> (-0.32%) ⬇️
pkg/runtime/runtime.go 67.62% <100.00%> (+0.09%) ⬆️

... and 1 file with indirect coverage changes

CrazyHZM and others added 11 commits August 9, 2022 17:34
Signed-off-by: crazyhzm <crazyhzm@gmail.com>

# Conflicts:
#	pkg/runtime/runtime.go
Signed-off-by: crazyhzm <crazyhzm@gmail.com>
Signed-off-by: crazyhzm <crazyhzm@gmail.com>
Signed-off-by: crazyhzm <crazyhzm@gmail.com>
Signed-off-by: crazyhzm <crazyhzm@gmail.com>

# Conflicts:
#	pkg/grpc/api.go
#	pkg/grpc/api_test.go
@yaron2
Copy link
Member

yaron2 commented Aug 18, 2022

@CrazyHZM there are failing tests, please check.

Signed-off-by: crazyhzm <crazyhzm@gmail.com>

# Conflicts:
#	pkg/grpc/api.go
#	pkg/grpc/api_test.go
@CrazyHZM
Copy link
Member Author

@yaron2 This failing test has nothing to do with this PR.

@yaron2
Copy link
Member

yaron2 commented Aug 19, 2022

@yaron2 This failing test has nothing to do with this PR.

That's correct.

Signed-off-by: crazyhzm <crazyhzm@gmail.com>
…/support_metadata

Signed-off-by: crazyhzm <crazyhzm@gmail.com>
@daixiang0
Copy link
Member

/ot-to-test

Signed-off-by: crazyhzm <crazyhzm@gmail.com>

# Conflicts:
#	pkg/grpc/api.go
#	pkg/grpc/api_test.go
#	pkg/http/api.go
Signed-off-by: crazyhzm <crazyhzm@gmail.com>
Signed-off-by: crazyhzm <crazyhzm@gmail.com>

# Conflicts:
#	pkg/grpc/api.go
#	pkg/grpc/api_test.go
#	pkg/http/api.go
#	pkg/http/api_test.go
#	pkg/runtime/runtime.go
Signed-off-by: crazyhzm <crazyhzm@gmail.com>
@yaron2
Copy link
Member

yaron2 commented Jan 6, 2023

@CrazyHZM can you please resolve the conflicts?

Signed-off-by: crazyhzm <crazyhzm@gmail.com>

# Conflicts:
#	pkg/grpc/api.go
#	pkg/http/api.go
Signed-off-by: crazyhzm <crazyhzm@gmail.com>
@CrazyHZM
Copy link
Member Author

CrazyHZM commented Jan 9, 2023

Done @yaron2

Signed-off-by: crazyhzm <crazyhzm@gmail.com>

# Conflicts:
#	pkg/runtime/runtime.go
@dapr-bot
Copy link
Collaborator

This pull request has been automatically marked as stale because it has not had activity in the last 60 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

@dapr-bot dapr-bot added the stale Issues and PRs without response label Mar 10, 2023
@dapr-bot
Copy link
Collaborator

This pull request has been automatically closed because it has not had activity in the last 67 days. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

@dapr-bot dapr-bot closed this Mar 17, 2023
@yaron2 yaron2 reopened this Mar 17, 2023
@dapr-bot dapr-bot removed the stale Issues and PRs without response label Mar 17, 2023
@dapr-bot
Copy link
Collaborator

This pull request has been automatically marked as stale because it has not had activity in the last 60 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

@dapr-bot dapr-bot added the stale Issues and PRs without response label May 16, 2023
@dapr-bot
Copy link
Collaborator

This pull request has been automatically closed because it has not had activity in the last 67 days. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

@dapr-bot dapr-bot closed this May 23, 2023
@artursouza artursouza reopened this May 26, 2023
@dapr-bot dapr-bot removed the stale Issues and PRs without response label May 26, 2023
@CrazyHZM
Copy link
Member Author

CrazyHZM commented Jun 5, 2023

There are already too many conflicts in this PR. I will close this pr first and look at the problem again.

@CrazyHZM CrazyHZM closed this Jun 5, 2023
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.

Metadata cannot be obtained through grpc
9 participants