crimson: errorator parallel_for_each#41848
Merged
tchaikov merged 2 commits intoceph:masterfrom Jun 17, 2021
Merged
Conversation
3 tasks
tchaikov
reviewed
Jun 15, 2021
tchaikov
reviewed
Jun 15, 2021
| std::vector<int> loops = {1, 2, 3}; | ||
| return ertr::parallel_for_each(loops, [](int i) { | ||
| using namespace std::chrono_literals; | ||
| return seastar::sleep(1s).then([] { |
Contributor
There was a problem hiding this comment.
i'd avoid sleep in test unless necessary. it just slows down the unit test.
Contributor
There was a problem hiding this comment.
Yeah, 1s is probably too much. However, the time domain is pretty good, intuitive way of illustrating the parallel part of the naming.
Contributor
|
jenkins test make check |
rzarzynski
reviewed
Jun 16, 2021
| std::vector<int> loops = {1, 2, 3}; | ||
| return ertr::parallel_for_each(loops, [](int i) { | ||
| using namespace std::chrono_literals; | ||
| return seastar::sleep(1s).then([] { |
Contributor
There was a problem hiding this comment.
Yeah, 1s is probably too much. However, the time domain is pretty good, intuitive way of illustrating the parallel part of the naming.
5611696 to
1a80130
Compare
Member
Author
|
@tchaikov @rzarzynski done:-) |
tchaikov
reviewed
Jun 16, 2021
tchaikov
reviewed
Jun 16, 2021
tchaikov
approved these changes
Jun 16, 2021
432a677 to
9e14a09
Compare
Member
Author
|
done:-) |
Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
9e14a09 to
b1acbb0
Compare
Member
Author
|
@tchaikov STL for_each() style done:-) |
tchaikov
approved these changes
Jun 16, 2021
rzarzynski
approved these changes
Jun 16, 2021
Contributor
|
Contributor
|
jenkins test make check |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Xuehan Xu xxhdx1985126@gmail.com
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume tox