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: support verify query session info before submit query session #162

Closed
wants to merge 3 commits into from

Conversation

jingchen2222
Copy link
Collaborator

@jingchen2222 jingchen2222 commented Nov 20, 2022

This PR resolve #127

  • Verify query session
  • close query session response with client session info and node session info
  • add ut for close session

@jingchen2222 jingchen2222 changed the title feat: support verify query session info and submit query session (WIP) feat: support verify query session info and submit query session Nov 20, 2022
@jingchen2222 jingchen2222 self-assigned this Nov 20, 2022
@jingchen2222 jingchen2222 added this to the M3 milestone Nov 20, 2022
@jingchen2222 jingchen2222 changed the title feat: support verify query session info and submit query session feat: support verify query session info before submit query session Nov 20, 2022
Ok(id) => {
println!("Close Session {}", id);
Ok((sess_info_node, sess_info_client)) => {
println!("Close Session Successfully!\nNode session {:?}\nClient session: {:?}",
Copy link
Contributor

Choose a reason for hiding this comment

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

Do not show the debug information to a normal user, you can add a flag or verbose to show it or not

@@ -184,8 +185,9 @@ pub async fn process_cmd(
.close_session(session.as_ref().unwrap().session_id)
.await
{
Ok(id) => {
println!("Close Session {}", id);
Ok((sess_info_node, sess_info_client)) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

mark

Stop = 2;
}
message QuerySessionInfo {
// the hex encoded string
Copy link
Contributor

Choose a reason for hiding this comment

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

a wrong comment?

@@ -97,21 +109,11 @@ message CloseSessionRequest {
bytes signature = 2;
}
message CloseSessionResponse {
int32 session_id = 1;
QuerySessionInfo query_session_info = 1;
Copy link
Contributor

Choose a reason for hiding this comment

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

The type of QuerySessionInfo should be bytes

@jingchen2222
Copy link
Collaborator Author

close since the pr was merged by #163

@imotai imotai deleted the feat/submit_query_session branch December 27, 2022 04:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

the implementation of query session
3 participants