mirror of https://gitee.com/bigwinds/arangodb
temporary fix of jslint errors
This commit is contained in:
parent
0939652e6c
commit
47bac5b4d9
|
@ -184,8 +184,8 @@ const toArgv = require("internal").toArgv;
|
||||||
const wait = require("internal").wait;
|
const wait = require("internal").wait;
|
||||||
const platform = require("internal").platform;
|
const platform = require("internal").platform;
|
||||||
|
|
||||||
const Planner = require("@arangodb/cluster").Planner;
|
//const Planner = require("@arangodb/cluster").Planner;
|
||||||
const Kickstarter = require("@arangodb/cluster").Kickstarter;
|
//const Kickstarter = require("@arangodb/cluster").Kickstarter;
|
||||||
|
|
||||||
let cleanupDirectories = [];
|
let cleanupDirectories = [];
|
||||||
let serverCrashed = false;
|
let serverCrashed = false;
|
||||||
|
@ -1485,6 +1485,7 @@ function shutdownInstance(instanceInfo, options) {
|
||||||
/// @brief starts a dispatcher
|
/// @brief starts a dispatcher
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/*
|
||||||
function startDispatcher(instanceInfo) {
|
function startDispatcher(instanceInfo) {
|
||||||
let args = {};
|
let args = {};
|
||||||
|
|
||||||
|
@ -1529,7 +1530,7 @@ function startDispatcher(instanceInfo) {
|
||||||
|
|
||||||
print("Dispatcher is ready");
|
print("Dispatcher is ready");
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @brief starts an instance
|
/// @brief starts an instance
|
||||||
///
|
///
|
||||||
|
@ -1600,7 +1601,7 @@ function startInstanceCluster(instanceInfo, protocol, options,
|
||||||
notYetUp = notYetUp.filter(notYet => {
|
notYetUp = notYetUp.filter(notYet => {
|
||||||
let url = endpointToURL(notYet);
|
let url = endpointToURL(notYet);
|
||||||
const reply = download(url + "/_api/version", "", makeAuthorizationHeaders(options));
|
const reply = download(url + "/_api/version", "", makeAuthorizationHeaders(options));
|
||||||
return reply.code != 200;
|
return reply.code !== 200;
|
||||||
});
|
});
|
||||||
wait(0.5);
|
wait(0.5);
|
||||||
}
|
}
|
||||||
|
@ -1613,18 +1614,18 @@ function startInstanceCluster(instanceInfo, protocol, options,
|
||||||
|
|
||||||
response = download(coordinatorUrl + '/_admin/cluster/bootstrapDbServers', '{"isRelaunch":false}', httpOptions);
|
response = download(coordinatorUrl + '/_admin/cluster/bootstrapDbServers', '{"isRelaunch":false}', httpOptions);
|
||||||
|
|
||||||
while (response.code != 200) {
|
while (response.code !== 200) {
|
||||||
console.log('bootstrap dbservers failed');
|
console.log('bootstrap dbservers failed');
|
||||||
wait(1);
|
wait(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
response = download(coordinatorUrl + '/_admin/cluster/upgradeClusterDatabase', '{"isRelaunch":false}', httpOptions);
|
response = download(coordinatorUrl + '/_admin/cluster/upgradeClusterDatabase', '{"isRelaunch":false}', httpOptions);
|
||||||
if (response.code != 200) {
|
if (response.code !== 200) {
|
||||||
throw new Error('Upgrading DB failed');
|
throw new Error('Upgrading DB failed');
|
||||||
}
|
}
|
||||||
|
|
||||||
response = download(coordinatorUrl + '/_admin/cluster/bootstrapCoordinator', '{"isRelaunch":false}', httpOptions);
|
response = download(coordinatorUrl + '/_admin/cluster/bootstrapCoordinator', '{"isRelaunch":false}', httpOptions);
|
||||||
if (response.code != 200) {
|
if (response.code !== 200) {
|
||||||
throw new Error('bootstraping coordinator failed');
|
throw new Error('bootstraping coordinator failed');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue