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

benchmark: fix shutdown failure #127

Merged
merged 2 commits into from
Dec 14, 2017
Merged

benchmark: fix shutdown failure #127

merged 2 commits into from
Dec 14, 2017

Conversation

BusyJay
Copy link
Member

@BusyJay BusyJay commented Dec 11, 2017

This pr fixes an hang-up-forever issue during benchmark.

To add all the stats 1.7.2 introduces, we need a public API and compatible rust-protobuf. See grpc/grpc#13705 and stepancheg/rust-protobuf#260.

/cc #107 #118

After this pr is merged, I think we are ready to release 0.2.0.

@@ -143,6 +143,17 @@ impl<B: Backoff> ExecutorContext<B> {
}
}

// Since impl trait is not stable yet, implement this as a function is impossible without box.
macro_rules! spawn {
Copy link
Member

Choose a reason for hiding this comment

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

What's the difference between the fn spawn() above?

Copy link
Member Author

Choose a reason for hiding this comment

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

client can be different types.

Copy link
Member

Choose a reason for hiding this comment

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

Could we remove the above fn spawn() ?

Copy link
Member

@overvenus overvenus left a comment

Choose a reason for hiding this comment

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

LGTM

@disksing
Copy link
Contributor

PTAL @AndreMouche

Copy link
Member

@AndreMouche AndreMouche left a comment

Choose a reason for hiding this comment

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

Rest LGTM

@@ -26,16 +30,28 @@ fn gen_resp(req: SimpleRequest) -> SimpleResponse {
resp
}


Copy link
Member

Choose a reason for hiding this comment

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

redundant empty line?

@@ -143,6 +143,17 @@ impl<B: Backoff> ExecutorContext<B> {
}
}

// Since impl trait is not stable yet, implement this as a function is impossible without box.
macro_rules! spawn {
Copy link
Member

Choose a reason for hiding this comment

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

Could we remove the above fn spawn() ?

@BusyJay
Copy link
Member Author

BusyJay commented Dec 14, 2017

ping

Copy link
Contributor

@siddontang siddontang left a comment

Choose a reason for hiding this comment

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

LGTM

@BusyJay BusyJay merged commit cf71b6d into tikv:master Dec 14, 2017
@BusyJay BusyJay deleted the fix-benchmark branch December 14, 2017 09:59
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

5 participants