1
0
Fork 0

Take external bootstrap out of testing.js.

This commit is contained in:
Max Neunhoeffer 2016-04-29 18:37:35 +02:00
parent a8e70bd8fa
commit 79113bd4e9
1 changed files with 0 additions and 19 deletions

View File

@ -1293,25 +1293,6 @@ function startInstanceCluster(instanceInfo, protocol, options,
}
});
response = download(coordinatorUrl + '/_admin/cluster/bootstrapDbServers', '{"isRelaunch":false}', httpOptions);
while (response.code !== 200) {
console.log('bootstrap dbservers failed', response);
wait(1);
}
httpOptions.timeout = 3600;
response = download(coordinatorUrl + '/_admin/cluster/upgradeClusterDatabase', '{"isRelaunch":false}', httpOptions);
if (response.code !== 200) {
console.log(response);
throw new Error('Upgrading DB failed');
}
response = download(coordinatorUrl + '/_admin/cluster/bootstrapCoordinator', '{"isRelaunch":false}', httpOptions);
if (response.code !== 200) {
throw new Error('bootstraping coordinator failed');
}
arango.reconnect(endpoint, "_system", 'root', '');
return true;