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

Integrate raft into storage #405

Merged
merged 5 commits into from
Jun 6, 2019
Merged

Integrate raft into storage #405

merged 5 commits into from
Jun 6, 2019

Conversation

sherman-the-tank
Copy link
Member

All UTs pass. At the moment, all parts still running with single copy. Will enable multiple copies in the future PR

Implemented #178

@sherman-the-tank
Copy link
Member Author

sherman-the-tank commented May 20, 2019

This PR replaced PR #344

All comments in #344 have been addressed

@sherman-the-tank sherman-the-tank added the ready-for-testing PR: ready for the CI test label May 21, 2019
@sherman-the-tank
Copy link
Member Author

jenkins go

@nebula-community-bot
Copy link
Member

Unit testing passed.

Copy link
Contributor

@dangleptr dangleptr left a comment

Choose a reason for hiding this comment

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

The pr looks better now. See my inline comments.

src/daemons/MetaDaemon.cpp Show resolved Hide resolved
src/daemons/MetaDaemon.cpp Show resolved Hide resolved
src/daemons/StorageDaemon.cpp Show resolved Hide resolved
src/daemons/StorageDaemon.cpp Show resolved Hide resolved
src/kvstore/Common.h Outdated Show resolved Hide resolved
src/kvstore/Common.h Outdated Show resolved Hide resolved
src/kvstore/RocksEngine.cpp Show resolved Hide resolved
src/kvstore/RocksEngine.cpp Outdated Show resolved Hide resolved
@sherman-the-tank
Copy link
Member Author

jenkins go

@nebula-community-bot
Copy link
Member

Unit testing passed.

src/meta/test/ProcessorTest.cpp Outdated Show resolved Hide resolved
src/kvstore/test/LogEncoderTest.cpp Outdated Show resolved Hide resolved
@nebula-community-bot
Copy link
Member

Unit testing passed.

Copy link
Contributor

@dangleptr dangleptr left a comment

Choose a reason for hiding this comment

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

Now, the pr looks good to me now. Let's merge it firstly before #421

@@ -83,19 +83,29 @@ StatusOr<std::unordered_map<std::string, std::string>> NetworkUtils::listDeviceA
return dev2ipv4s;
}


bool NetworkUtils::getDynamicPortRange(uint16_t& low, uint16_t& high) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Does return value use StatusOr?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not quite understand why we need StatusOr here

src/daemons/StorageDaemon.cpp Show resolved Hide resolved
src/kvstore/LogEncoder.cpp Outdated Show resolved Hide resolved
src/kvstore/LogEncoder.cpp Show resolved Hide resolved
src/kvstore/LogEncoder.h Outdated Show resolved Hide resolved
src/kvstore/Part.cpp Show resolved Hide resolved
src/kvstore/RocksEngine.cpp Show resolved Hide resolved
Copy link
Contributor

@dangleptr dangleptr left a comment

Choose a reason for hiding this comment

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

Need changes.

All UTs pass. At the moment, all parts still running with single copy. Will enable multiple copies in the future PR

Implemented #178
Copy link
Contributor

@laura-ding laura-ding left a comment

Choose a reason for hiding this comment

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

Well done

Copy link
Contributor

@dangleptr dangleptr left a comment

Choose a reason for hiding this comment

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

Let's end the long journey.

cb(ret, HostAddr(0, 0));

wal::BufferFlusher* getBufferFlusher() {
static wal::BufferFlusher flusher;
Copy link
Contributor

Choose a reason for hiding this comment

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

Only one flusher maybe a bottleneck. Let's open another issue to make the number configurable.

Copy link
Member Author

Choose a reason for hiding this comment

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

We could make the number of flushing threads in the BufferFlusher configurable

Sure. let's do it in a separate PR

src/kvstore/RocksEngine.cpp Show resolved Hide resolved
src/kvstore/RocksEngine.cpp Show resolved Hide resolved
@nebula-community-bot
Copy link
Member

Unit testing passed.

@nebula-community-bot
Copy link
Member

Unit testing passed.

yixinglu pushed a commit to yixinglu/nebula that referenced this pull request Feb 16, 2020
* Integrate raft into storage

All UTs pass. At the moment, all parts still running with single copy. Will enable multiple copies in the future PR

Implemented vesoft-inc#178

* Addressed @dangleptr's comments and rebased

* Addressed @dangleptr's comments and rebased

* Addressed @laura-ding's @dangleptr's comments

Rebased as well
tong-hao pushed a commit to tong-hao/nebula that referenced this pull request Jun 1, 2021
* Integrate raft into storage

All UTs pass. At the moment, all parts still running with single copy. Will enable multiple copies in the future PR

Implemented vesoft-inc#178

* Addressed @dangleptr's comments and rebased

* Addressed @dangleptr's comments and rebased

* Addressed @laura-ding's @dangleptr's comments

Rebased as well
yixinglu pushed a commit to yixinglu/nebula that referenced this pull request Mar 21, 2022
Force push so that nebula dev could switch to third-party 3.0

Co-authored-by: Sherman <sherman.ye@vesoft.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.

4 participants