8000 Start up server HTTP interface earlier by jsteemann · Pull Request #16181 · arangodb/arangodb · GitHub
[go: up one dir, main page]

Skip to content

Start up server HTTP interface earlier #16181

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 41 commits into from
May 19, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
6f8694f
Start up server HTTP interface earlier
jsteemann Apr 27, 2022
cc97f97
try to fix compile issue
jsteemann Apr 27, 2022
3e0ed00
Merge branch 'devel' into feature/open-http-interface-earlier
jsteemann Apr 28, 2022
3819029
Merge branch 'devel' into feature/open-http-interface-earlier
jsteemann Apr 28, 2022
e91c6d1
Merge branch 'devel' of github.com:arangodb/arangodb into feature/ope…
jsteemann Apr 28, 2022
271a958
fix MSVC build
jsteemann Apr 28, 2022
1e0d3ab
fix agency startup when gossip peers return HTTP 503
jsteemann Apr 28, 2022
bcb72c0
cleanup
jsteemann Apr 28, 2022
655fe69
Merge branch 'devel' of github.com:arangodb/arangodb into feature/ope…
jsteemann Apr 28, 2022
47de585
Merge branch 'devel' into feature/open-http-interface-earlier
jsteemann Apr 29, 2022
5ec532d
Merge branch 'devel' of github.com:arangodb/arangodb into feature/ope…
jsteemann Apr 29, 2022
4e33805
Merge branch 'devel' of github.com:arangodb/arangodb into feature/ope…
jsteemann May 2, 2022
f32adb4
added startup option `--server.allow-early-connections`
jsteemann May 2, 2022
c37af3d
intermediate commit
jsteemann May 2, 2022
8d9cf61
intermediate commit
jsteemann May 2, 2022
6c8a09c
intermediate commit
jsteemann May 3, 2022
374dd40
Merge branch 'devel' of github.com:arangodb/arangodb into feature/ope…
jsteemann May 3, 2022
dc9f648
intermediate commit
jsteemann May 3, 2022
47192eb
fix testsuites
jsteemann May 3, 2022
39ddace
Merge branch 'devel' of github.com:arangodb/arangodb into feature/ope…
jsteemann May 3, 2022
b7a8049
make tests work
jsteemann May 3, 2022
f88b917
fix test
jsteemann May 3, 2022
25153a7
Merge branch 'devel' of github.com:arangodb/arangodb into feature/ope…
jsteemann May 9, 2022
36cb0ab
Merge branch 'devel' of github.com:arangodb/arangodb into feature/ope…
jsteemann May 11, 2022
f9655a0
Merge branch 'devel' of github.com:arangodb/arangodb into feature/ope…
jsteemann May 11, 2022
67d178b
Merge branch 'feature/open-http-interface-earlier' of github.com:aran…
jsteemann May 11, 2022
9637694
better progress reporting
jsteemann May 11, 2022
f830c7b
updated CHANGELOG
jsteemann May 11, 2022
17ea770
Merge branch 'devel' of github.com:arangodb/arangodb into feature/ope…
jsteemann May 12, 2022
05f9d78
Merge branch 'devel' into feature/open-http-interface-earlier
jsteemann May 13, 2022
93d1813
Merge branch 'devel' of github.com:arangodb/arangodb into feature/ope…
jsteemann May 13, 2022
e7f8765
Merge branch 'devel' of github.com:arangodb/arangodb into feature/ope…
jsteemann May 16, 2022
be60a2c
Merge branch 'devel' of github.com:arangodb/arangodb into feature/ope…
jsteemann May 17, 2022
977c6e9
Merge branch 'devel' into feature/open-http-interface-earlier
jsteemann May 17, 2022
9a1d515
Merge branch 'devel' of github.com:arangodb/arangodb into feature/ope…
jsteemann May 17, 2022
bd247cf
fix overly long sleep duration in inception
jsteemann May 18, 2022
a65b750
Merge branch 'devel' of github.com:arangodb/arangodb into feature/ope…
jsteemann May 18, 2022
77158f1
Merge branch 'devel' of github.com:arangodb/arangodb into feature/ope…
jsteemann May 18, 2022
47daf1a
Merge branch 'devel' of github.com:arangodb/arangodb into feature/ope…
jsteemann May 19, 2022
3a0c0a3
added code comments
jsteemann May 19, 2022
fa778f4
Merge branch 'devel' of github.com:arangodb/arangodb into feature/ope…
jsteemann May 19, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
< 8000 details data-target="details-toggle.detailsTarget" data-view-component="true" class="diffbar-item details-reset details-overlay position-relative text-center">
Diff view
Diff view
Prev Previous commit
Next Next commit
try to fix compile issue
  • Loading branch information
jsteemann committed Apr 27, 2022
commit cc97f974f8236f25d7ce2785082c5992b8c4f20d
20 changes: 8 additions & 12 deletions arangod/Cluster/ServerState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -895,9 +895,9 @@ bool ServerState::registerAtAgencyPhase1(AgencyComm& comm,
{
VPackObjectBuilder b(&localIdBuilder);
localIdBuilder.add("TransactionID", VPackValue(num + 1));
std::stringstream ss; // ShortName
size_t width =
std::max(std::to_string(num + 1).size(), static_cast<size_t>(4));
std::stringstream ss; // ShortName
ss << roleToAgencyKey(role) << std::setw(width) << std::setfill('0')
<< num + 1;
localIdBuilder.add("ShortName", VPackValue(ss.str()));
Expand Down Expand Up @@ -93 8000 6,12 +936,12 @@ std::string ServerState::getShortName() const {
if (_role == ROLE_AGENT) {
return getId().substr(0, 13);
}
std::stringstream ss; // ShortName
auto num = getShortId();
if (num == 0) {
return std::string{}; // not yet known
}
size_t width = std::max(std::to_string(num).size(), static_cast<size_t>(4));
std::stringstream ss; // ShortName
ss << roleToAgencyKey(getRole()) << std::setw(width) << std::setfill('0')
<< num;
return ss.str();
Expand Down Expand Up @@ -1047,12 +1047,10 @@ std::string ServerState::getId() const {
////////////////////////////////////////////////////////////////////////////////

void ServerState::setId(std::string const& id) {
if (id.empty()) {
return;
if (!id.empty()) {
std::lock_guard<std::mutex> guard(_idLock);
_id = id;
}

std::lock_guard<std::mutex> guard(_idLock);
_id = id;
}

////////////////////////////////////////////////////////////////////////////////
Expand All @@ -1068,11 +1066,9 @@ uint32_t ServerState::getShortId() const {
////////////////////////////////////////////////////////////////////////////////

void ServerState::setShortId(uint32_t id) {
if (id == 0) {
return;
if (id != 0) {
_shortId.store(id, std::memory_order_relaxed);
}

_shortId.store(id, std::memory_order_relaxed);
}

RebootId ServerState::getRebootId() const {
Expand Down Expand Up @@ -1187,7 +1183,7 @@ bool ServerState::checkCoordinatorState(StateEnum state) {

bool ServerState::isFoxxmaster() const {
READ_LOCKER(readLocker, _foxxmasterLock);
return /*!isRunningInCluster() ||*/ _foxxmaster == getId();
return _foxxmaster == getId();
}

std::string ServerState::getFoxxmaster() const {
Expand Down
3 changes: 2 additions & 1 deletion lib/ApplicationFeatures/ApplicationServer.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,15 @@
#pragma once

#include <atomic>
#include <cstddef>
#include <functional>
#include <memory>
#include <span>
#include <string>
#include <type_traits>
#include <typeindex>
#include <unordered_map>
#include <vector>
#include <span>
#include <boost/type_index/ctti_type_index.hpp>

#include "ApplicationFeatures/ApplicationFeature.h"
Expand Down
1 change: 1 addition & 0 deletions lib/Basics/TypeList.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#pragma once

#include <array>
#include <cstddef>

#include <frozen/string.h>
#include <frozen/unordered_map.h>
Expand Down
0