-
Notifications
You must be signed in to change notification settings - Fork 853
Feature/single server smart graph #14821
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 relate 8000 d emails.
Already on GitHub? Sign in to your account
Conversation
…db/arangodb into feature/single-server-smart-graph � Conflicts: � arangod/Graph/GraphManager.cpp
…db/arangodb into feature/single-server-smart-graph
… satellite graphs (broken).
…db/arangodb into feature/single-server-smart-graph
…db/arangodb into feature/single-server-smart-graph
…gle-server-smart-graph
…db/arangodb into feature/single-server-smart-graph
…db/arangodb into feature/single-server-smart-graph
from Collections::create, extracted validation and building a builder
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Majority of this PR looks good. 👍
I have left a couple of comments.
We need to consider a proper archtictural hammer refactoring of the related pieces of Code, this all looks way to complex for such a "little" change.
arangod/Sharding/ShardingInfo.cpp
Outdated
(!_distributeShardsLike.empty() && ServerState::instance()->isSingleServer() && isSmartOrSatellite)) { | ||
// We either want to expose _distributeShardsLike if we're either on a Coordinator | ||
// Or we have found a Smart or Satellite collection on a single server instance. | ||
if (translateCids && !ServerState::instance()->isSingleServer()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree that should not be done on single server.
But the case the cluster enters this code path, will exist on the SingleServer as well.
Is the else path on SingleServer enough to handle this case?
js/apps/system/_admin/aardvark/APP/frontend/js/views/graphManagementView.js
Show resolved
Hide resolved
Co-authored-by: Michael Hackstein <michael@arangodb.com>
Co-authored-by: Michael Hackstein <michael@arangodb.com>
…ollection to allowEnterpriseCollectionsOnSingleServer
…db/arangodb into feature/single-server-smart-graph
NOTE for myself. Current State is green. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
if (followingTermId == 0) { | ||
reqOpts.param(StaticStrings::IsSynchronousReplicationString, | ||
ServerState::instance()->getId()); | ||
} else {reqOpts.param(StaticStrings::IsSynchronousReplicationString, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This format looks weird
if (followingTermId == 0) { | ||
reqOpts.param(StaticStrings::IsSynchronousReplicationString, | ||
ServerState::instance()->getId()); | ||
} else {reqOpts.param(StaticStrings::IsSynchronousReplicationString, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This format looks weird
Scope & Purpose
SingleServer SmartGraph Simulator
Description can be found here: https://github.com/arangodb/enterprise/pull/765
Backports:
Related Information
IMPORTANT
IMPORTANT