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

Skip to content

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
review
  • Loading branch information
kvahed committed Sep 17, 2021
commit 55c2cb1511aa98a7991d48e3515c4f0916e89410
3 changes: 2 additions & 1 deletion js/common/bootstrap/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,8 @@
"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" },
"ERROR_LICENSE_CONFLICT" : { "code" : 9007, "message" : "conflicting license" }
"ERROR_LICENSE_CONFLICT" : { "code" : 9007, "message" : "conflicting license" },
"ERROR_LICENSE_VALIDATION_FAILED" : { "code" : 9008, "message" : "failed to validate license signature" }
};

// For compatibility with <= 3.3
Expand Down
4 changes: 3 additions & 1 deletion lib/Basics/error-registry.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ struct elsa<ErrorCode> {
#include <cinttypes>

namespace arangodb::error {
constexpr static frozen::unordered_map<ErrorCode, const char*, 362> ErrorMessages = {
constexpr static frozen::unordered_map<ErrorCode, const char*, 363> ErrorMessages = {
{TRI_ERROR_NO_ERROR, // 0
"no error"},
{TRI_ERROR_FAILED, // 1
Expand Down Expand Up @@ -743,5 +743,7 @@ constexpr static frozen::unordered_map<ErrorCode, const char*, 362> ErrorMessage
"invalid license"},
{TRI_ERROR_LICENSE_CONFLICT, // 9007
"conflicting license"},
{TRI_ERROR_LICENSE_VALIDATION_FAILED, // 9008
"failed to validate license signature"},
};
}
3 changes: 2 additions & 1 deletion lib/Basics/errors.dat
Original file line number Diff line number Diff line change
Expand Up @@ -533,4 +533,5 @@ ERROR_LICENSE_NON_MATCHING_ID,9003,"non-matching license id","The ID of the lice
ERROR_LICENSE_FEATURE_NOT_ENABLED,9004,"feature is not enabled by the license","The installed license does not cover this feature."
ERROR_LICENSE_RESOURCE_EXHAUSTED,9005,"the resource is exhausted","The installed license does not cover a higher number of this resource."
ERROR_LICENSE_INVALID,9006,"invalid license","The license does not hold features of an ArangoDB license."
ERROR_LICENSE_CONFLICT,9007,"conflicting license","The license has one or more inferior features."
ERROR_LICENSE_CONFLICT,9007,"conflicting license","The license has one or more inferior features."
ERROR_LICENSE_VALIDATION_FAILED,9008,"failed to validate license signature","Could not verify the license's signature."
5 changes: 5 additions & 0 deletions lib/Basics/voc-errors.h
Original file line number Diff line number Diff line change
Expand Up @@ -1952,3 +1952,8 @@ constexpr auto TRI_ERROR_LICENSE_INVALID
/// The license has one or more inferior features.
constexpr auto TRI_ERROR_LICENSE_CONFLICT = ErrorCode{9007};

/// 9008: ERROR_LICENSE_VALIDATION_FAILED
/// "failed to validate license signature"
/// Could not verify the license's signature.
constexpr auto TRI_ERROR_LICENSE_VALIDATION_FAILED = ErrorCode{9008};

2 changes: 1 addition & 1 deletion tests/Mocks/Servers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,7 @@ MockCoordinator::MockCoordinator(bool start, bool useAgencyMock, bool injectClus
injectClusterIndexes) {
if (start) {
MockCoordinator::startFeatures();
agencyTrx(".agency", "{\"op\":\"set\",\"new\":{\"timeoutMult\":1,\"term\":1,\"size\":3,\"pool\":{\"AGNT-ca355865-7e34-40b8-91d4-198811e52f44\":\"tcp://[::1]:4001\",\"AGNT-93fa47f7-9f79-493e-b2da-b74487baccae\":\"tcp://[::1]:4003\",\"AGNT-93908f62-5414-4456-be37-2226651b8358\":\"tcp://[::1]:4002\"},\"id\":\"AGNT-ca355865-7e34-40b8-91d4-198811e52f44\",\"active\":[\"AGNT-93908f62-5414-4456-be37-2226651b8358\",\"AGNT-ca355865-7e34-40b8-91d4-198811e52f44\",\"AGNT-93fa47f7-9f79-493e-b2da-b74487baccae\"]}}");
agencyTrx("/.agency", R"=({"op":"set","new":{"timeoutMult":1,"term":1,"size":3,"pool":{"AGNT-ca355865-7e34-40b8-91d4-198811e52f44":"tcp://[::1]:4001","AGNT-93fa47f7-9f79-493e-b2da-b74487baccae":"tcp://[::1]:4003","AGNT-93908f62-5414-4456-be37-2226651b8358":"tcp://[::1]:4002"},"id":"AGNT-ca355865-7e34-40b8-91d4-198811e52f44","active":["AGNT-93908f62-5414-4456-be37-2226651b8358","AGNT-ca355865-7e34-40b8-91d4-198811e52f44","AGNT-93fa47f7-9f79-493e-b2da-b74487baccae"]}})=");
MockCoordinator::createDatabase("_system");
}
}
Expand Down
0