10000 enterprise license support by kvahed · Pull Request #14753 · arangodb/arangodb · GitHub
[go: up one dir, main page]

Skip to content
10000

enterprise license support #14753

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

Merged
merged 61 commits into from
Sep 28, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
dee04a3
steps
kvahed Jul 22, 2021
3346f25
devel merge
kvahed Jul 28, 2021
4e61ade
devel merge
kvahed Aug 10, 2021
e406564
devel merge
kvahed Aug 12, 2021
8408345
devel merge
kvahed Aug 12, 2021
4a98efd
devel merge
kvahed Aug 16, 2021
f5b8097
devel merge
kvahed Aug 19, 2021
d67063f
devel merge
kvahed Aug 19, 2021
082ac74
devel merge
kvahed Aug 19, 2021
42155ba
devel merge
kvahed Aug 24, 2021
2fd5126
add feature
kvahed Aug 27, 2021
52aac64
devel merge
kvahed Aug 27, 2021
6e37da7
1;95;0cMerge branch 'devel' of https://github.com/arangodb/arangodb i…
kvahed Sep 3, 2021
7e0a7ab
Merge branch 'devel' of https://github.com/arangodb/arangodb into fea…
kvahed Sep 6, 2021
0285500
Merge branch 'devel' of https://github.com/arangodb/arangodb into fea…
kvahed Sep 9, 2021
6cf3c1e
Merge branch 'devel' of https://github.com/arangodb/arangodb into fea…
kvahed Sep 15, 2021
483d0ae
added expiry metric
kvahed Sep 16, 2021
6009fcc
Merge branch 'devel' of https://github.com/arangodb/arangodb into fea…
kvahed Sep 16, 2021
0b6d74c
change log update
kvahed Sep 16, 2021
2bf844c
serverstate readonly modes
kvahed Sep 16, 2021
d3fb728
repaired tests
kvahed Sep 16, 2021
a51cd8e
mock framework to embrace licensefeatrue
kvahed Sep 16, 2021
8872927
Merge branch 'devel' of https://github.com/arangodb/arangodb into fea…
kvahed Sep 16, 2021
cbfd334
Update lib/Basics/errors.dat
kvahed Sep 17, 2021
7d3f959
Update lib/Basics/errors.dat
kvahed Sep 17, 2021
3ff44a9
Update scripts/startLocalCluster.sh
kvahed Sep 17, 2021
a5feffc
metric docs
kvahed Sep 17, 2021
24f349b
jan comments
kvahed Sep 17, 2021
8d149b5
Update CHANGELOG
kvahed Sep 17, 2021
a37d332
Node behaviour fixed for toBuilder and showHidden true
kvahed Sep 17, 2021
9102af9
Merge branch 'feature/enterprise-license-stuff' of https://github.com…
kvahed Sep 17, 2021
4b88cfb
Node behaviour fixed for toBuilder and showHidden true
kvahed Sep 17, 2021
8c86c7f
devel merge
kvahed Sep 17, 2021
55c2cb1
review
kvahed Sep 17, 2021
bca422b
review
kvahed Sep 17, 2021
fbdd69d
shell features
kvahed Sep 20, 2021
b0588ca
.agency mode
kvahed Sep 21, 2021
6228e3f
devel merge
kvahed Sep 21, 2021
46f24e8
metric naming
kvahed Sep 21, 2021
2330383
correct counting of raft index
kvahed Sep 21, 2021
92e5a93
read only visibility
kvahed Sep 22, 2021
dcf57cc
devel merge
kvahed Sep 23, 2021
44ea050
devel merge
kvahed Sep 23, 2021
42a7dea
devel merge
kvahed Sep 23, 2021
83acb90
Update js/client/modules/@arangodb/testsuites/license.js
kvahed Sep 24, 2021
6a45a33
promtool
kvahed Sep 24, 2021
010ac11
Merge branch 'feature/enterprise-license-stuff' of https://github.com…
kvahed Sep 24, 2021
e8b9112
promtool
kvahed Sep 24, 2021
215e2e6
arangosh cleanup
kvahed Sep 24, 2021
fceff2e
iresearch tests fixed
kvahed Sep 24, 2021
6f78990
repair user manager tests
kvahed Sep 24, 2021
d5d4703
test link ambiguity of cosmic black matter dientangled
kvahed Sep 24, 2021
93a9473
overlapping namespaces and Step class fixed
kvahed Sep 24, 2021
fc319fe
Merge branch 'feature/enterprise-license-stuff' of https://github.com…
kvahed Sep 24, 2021
dd1a903
fixed last persistent error
kvahed Sep 24, 2021
98faa4e
break non failure_test builds
kvahed Sep 24, 2021
a40398f
Merge branch 'devel' into feature/enterprise-license-stuff
KVS85 Sep 27, 2021
28c5e91
Update CHANGELOG
KVS85 Sep 27, 2021
32cfbe6
Merge branch 'devel' into feature/enterprise-license-stuff
KVS85 Sep 27, 2021
082d9d2
devel merge
kvahed Sep 27, 2021
8971a86
devel merge
kvahed Sep 27, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
jan comments
  • Loading branch information
kvahed committed Sep 17, 2021
commit 24f349b3e5e0a711a56ab6e66bcea77ba16428a3
12 changes: 6 additions & 6 deletions arangod/Cluster/ServerState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ bool ServerState::readOnly() {

/// @brief set server read-only
bool ServerState::setReadOnly(ReadOnlyMode ro) {
auto ret = readOnly();
if(ro == API_FALSE) {
_serverstate_readonly.exchange(false, std::memory_order_release);
} else if (ro == API_TRUE) {
Expand All @@ -337,8 +338,7 @@ bool ServerState::setReadOnly(ReadOnlyMode ro) {
} else if (ro == LICENSE_TRUE) {
_license_readonly.exchange(true, std::memory_order_release);
}
return _serverstate_readonly.load(std::memory_order_acquire) ||
_license_readonly.load(std::memory_order_acquire);
return ret;
}

// ============ Instance methods =================
Expand Down Expand Up @@ -380,7 +380,7 @@ bool ServerState::logoff(double timeout) {

AgencyWriteTransaction unregisterTransaction(operations);
AgencyComm comm(_server);

// Try only once to unregister because maybe the agencycomm
// is shutting down as well...
int maxTries = static_cast<int>(timeout / 3.0);;
Expand Down Expand Up @@ -552,7 +552,7 @@ std::string ServerState::roleToAgencyKey(ServerState::RoleEnum role) {
return "Coordinator";
case ROLE_SINGLE:
return "Single";
case ROLE_AGENT:
case ROLE_AGENT:
return "Agent";
case ROLE_UNDEFINED: {
return "Undefined";
Expand Down Expand Up @@ -1058,9 +1058,9 @@ bool ServerState::isFoxxmaster() const {
return /*!isRunningInCluster() ||*/ _foxxmaster == getId();
}

std::string ServerState::getFoxxmaster() const {
std::string ServerState::getFoxxmaster() const {
READ_LOCKER(readLocker, _foxxmasterLock);
return _foxxmaster;
return _foxxmaster;
}

void ServerState::setFoxxmaster(std::string const& foxxmaster) {
Expand Down
2 changes: 1 addition & 1 deletion arangod/Cluster/ServerState.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class ServerState {
};

/// @brief an enum describing the possible states a server can have
enum StateEnum {
enum class StateEnum {
STATE_UNDEFINED = 0, // initial value
STATE_STARTUP, // used by all roles
STATE_SERVING, // used by all roles
Expand Down
2 changes: 1 addition & 1 deletion js/common/bootstrap/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@
"ERROR_AIR_EXECUTION_ERROR" : { "code" : 8001, "message" : "error during AIR execution" },
"ERROR_LICENSE_EXPIRED_OR_INVALID" : { "code" : 9001, "message" : "license has expired or is invalid" },
"ERROR_LICENSE_SIGNATURE_VERIFICATION" : { "code" : 9002, "message" : "license verification failed" },
"ERROR_LICENSE_NON_MATHICHING_ID" : { "code" : 9003, "message" : "non matching license id" },
"ERROR_LICENSE_NON_MATCHING_ID" : { "code" : 9003, "message" : "non-matching license id" },
"ERROR_LICENSE_FEATURE_NOT_ENABLED" : { "code" : 9004, "message" : "feature is not enabled by the license" },
"ERROR_LICENSE_RESOURCE_EXHAUSTED" : { "code" : 9005, "message" : "the resource is exhausted" },
"ERROR_LICENSE_INVALID" : { "code" : 9006, "message" : "invalid license" },
Expand Down
4 changes: 2 additions & 2 deletions lib/Basics/error-registry.h
Original file line number Diff line number Diff line change
Expand Up @@ -733,8 +733,8 @@ constexpr static frozen::unordered_map<ErrorCode, const char*, 362> ErrorMessage
"license has expired or is invalid"},
{TRI_ERROR_LICENSE_SIGNATURE_VERIFICATION, // 9002
"license verification failed"},
{TRI_ERROR_LICENSE_NON_MATHICHING_ID, // 9003
"non matching license id"},
{TRI_ERROR_LICENSE_NON_MATCHING_ID, // 9003
"non-matching license id"},
{TRI_ERROR_LICENSE_FEATURE_NOT_ENABLED, // 9004
"feature is not enabled by the license"},
{TRI_ERROR_LICENSE_RESOURCE_EXHAUSTED, // 9005
Expand Down
8 changes: 4 additions & 4 deletions lib/Basics/voc-errors.h
Original file line number Diff line number Diff line change
Expand Up @@ -1924,13 +1924,13 @@ constexpr auto TRI_ERROR_LICENSE_EXPIRED_OR_INVALID

/// 9002: ERROR_LICENSE_SIGNATURE_VERIFICATION
/// "license verification failed"
/// Verfication of license failed.
/// Verification of license failed.
constexpr auto TRI_ERROR_LICENSE_SIGNATURE_VERIFICATION = ErrorCode{9002};

/// 9003: ERROR_LICENSE_NON_MATHICHING_ID
/// "non matching license id"
/// 9003: ERROR_LICENSE_NON_MATCHING_ID
/// "non-matching license id"
/// The ID of the license does not match the ID of this instance.
constexpr auto TRI_ERROR_LICENSE_NON_MATHICHING_ID = ErrorCode{9003};
constexpr auto TRI_ERROR_LICENSE_NON_MATCHING_ID = ErrorCode{9003};

/// 9004: ERROR_LICENSE_FEATURE_NOT_ENABLED
/// "feature is not enabled by the license"
Expand Down
0