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

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

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

Unit testing failed.

@nebula-community-bot
Copy link
Member

Unit testing passed.

@zhangguoqing
Copy link
Contributor

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

Unit testing failed.

Copy link
Contributor

@critical27 critical27 left a comment

Choose a reason for hiding this comment

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

LGTM

@dangleptr
Copy link
Contributor Author

Jenkins go

@nebula-community-bot
Copy link
Member

Unit testing failed.

@nebula-community-bot
Copy link
Member

Unit testing passed.

@dangleptr dangleptr merged commit e552f9e into master Nov 7, 2019
@dangleptr dangleptr deleted the upgrade1 branch November 7, 2019 09:51
yixinglu pushed a commit to yixinglu/nebula that referenced this pull request Jan 31, 2023
* send/recv file by proxygen

* send snapshot by sending files

* unlock when SnapshotTask::operator() done

* wait for promise set value if casStop failed in sendFiles()

* release snapshot before host stop

* capture shared ptr in sendheartbeat lambda

* wait for host stop when removing peers in checkpeers

* fix heap use after free

* fix memory leak in snapshot

* fix comments

Co-authored-by: Sophie <84560950+Sophie-Xie@users.noreply.github.com>
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.

6 participants