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

Update the interfaces about folly::future and fbthrift constructor #1161

Merged
merged 4 commits into from Nov 7, 2019

Conversation

dangleptr
Copy link
Contributor

@dangleptr dangleptr commented Oct 29, 2019

Some interfaces have been changed in the latest version of folly and fbthrift.
Let's modify them to avoid broken under latest dependencies.

Subtask of #1160

@@ -775,7 +775,7 @@ void RaftPart::replicateLogs(folly::EventBase* eb,
return resp.get_error_code() == cpp2::ErrorCode::SUCCEEDED
&& !hosts[index]->isLearner();
})
.then(executor_.get(), [self = shared_from_this(),
.via(executor_.get()).then([self = shared_from_this(),
Copy link
Contributor

@darionyaphet darionyaphet Oct 29, 2019

Choose a reason for hiding this comment

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

Should using thenValue to replace then ?

Copy link
Contributor Author

@dangleptr dangleptr Oct 29, 2019

Choose a reason for hiding this comment

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

Because we need to handle the exception in folly::Try, so we should use "then" in this place.

@nebula-community-bot
Copy link
Member

nebula-community-bot commented Oct 29, 2019

Unit testing failed.

@nebula-community-bot
Copy link
Member

nebula-community-bot commented Oct 29, 2019

Unit testing passed.

@zhangguoqing
Copy link
Contributor

zhangguoqing commented Oct 29, 2019

src/meta/test/TestUtils.h +131
allHosts.emplace_back(apache::thrift::FragileConstructor::FRAGILE, i, i);

maybe some others in grep FRAGILE -rn ./src/

@nebula-community-bot
Copy link
Member

nebula-community-bot commented Nov 7, 2019

Unit testing failed.

Copy link
Contributor

@critical27 critical27 left a comment

LGTM

@jude-zhu jude-zhu requested a review from darionyaphet Nov 7, 2019
@dangleptr
Copy link
Contributor Author

dangleptr commented Nov 7, 2019

Jenkins go

@nebula-community-bot
Copy link
Member

nebula-community-bot commented Nov 7, 2019

Unit testing failed.

@nebula-community-bot
Copy link
Member

nebula-community-bot commented Nov 7, 2019

Unit testing passed.

@dangleptr dangleptr merged commit e552f9e into master Nov 7, 2019
@dangleptr dangleptr deleted the upgrade1 branch Nov 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-testing PR: ready for the CI test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants