8000 Test/break index create by dothebart · Pull Request #21775 · arangodb/arangodb · GitHub
[go: up one dir, main page]

Skip to content

Test/break index create #21775

8000
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

Closed
wants to merge 9 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
< 8000 span class="sr-only">Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
make sure we really start two instances.
  • Loading branch information
dothebart committed May 19, 2025
commit f7bf7d55b5fa9d257349ca2ce0d72f19b0095b0e
20 changes: 10 additions & 10 deletions js/client/modules/@arangodb/testsuites/dump.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,12 @@ const testPaths = {
};

class DumpRestoreHelper extends trs.runLocalInArangoshRunner {
constructor(firstRunOptions, secondRunOptions, serverOptions, clientAuth, dumpOptions, restoreOptions, which, afterServerStart, rtaArgs) {
constructor(firstRunOptions, secondRunOptions, serverOptions, clientAuth, dumpOptions, restoreOptions, which, afterServerStart, rtaArgs, restartServer) {
super(firstRunOptions, which, serverOptions, tr.sutFilters.checkUsers);
this.serverOptions = serverOptions;
this.firstRunOptions = firstRunOptions;
this.secondRunOptions = secondRunOptions;
this.restartServer = firstRunOptions.cluster !== secondRunOptions.cluster;
this.restartServer = restartServer;
this.clientAuth = clientAuth;
this.dumpOptions = dumpOptions;
this.restoreOptions = restoreOptions;
Expand Down Expand Up @@ -756,10 +756,10 @@ function getClusterStrings(options) {
}
}

function dump_backend_two_instances (firstRunOptions, secondRunOptions, serverAuthInfo, clientAuth, dumpOptions, restoreOptions, which, tstFiles, afterServerStart, rtaArgs) {
function dump_backend_two_instances (firstRunOptions, secondRunOptions, serverAuthInfo, clientAuth, dumpOptions, restoreOptions, which, tstFiles, afterServerStart, rtaArgs, restartServer) {
print(CYAN + which + ' tests...' + RESET);

const helper = new DumpRestoreHelper(firstRunOptions, secondRunOptions, serverAuthInfo, clientAuth, dumpOptions, restoreOptions, which, afterServerStart, rtaArgs);
const helper = new DumpRestoreHelper(firstRunOptions, secondRunOptions, serverAuthInfo, clientAuth, dumpOptions, restoreOptions, which, afterServerStart, rtaArgs, restartServer);
if (!helper.startFirstInstance()) {
helper.destructor(false);
return helper.extractResults();
Expand Down Expand Up @@ -846,7 +846,7 @@ function dump_backend_two_instances (firstRunOptions, secondRunOptions, serverAu
}

function dump_backend (options, serverAuthInfo, clientAuth, dumpOptions, restoreOptions, which, tstFiles, afterServerStart, rtaArgs) {
return dump_backend_two_instances(options, options, serverAuthInfo, clientAuth, dumpOptions, restoreOptions, which, tstFiles, afterServerStart, rtaArgs);
return dump_backend_two_instances(options, options, serverAuthInfo, clientAuth, dumpOptions, restoreOptions, which, tstFiles, afterServerStart, rtaArgs, false);
}

function dump (options) {
Expand Down Expand Up @@ -891,7 +891,7 @@ function dumpMixedClusterSingle (options) {
tstFiles, function(){}, [
//'--testFoxx', 'false',
// BTS-1617: disable 404 for now
'--skip', '404,550,900,960']);
'--skip', '404,550,900,960'], true);
}

function dumpMixedSingleCluster (options) {
Expand All @@ -916,7 +916,7 @@ function dumpMixedSingleCluster (options) {
options, options, 'dump_mixed_single_cluster',
tstFiles, function(){}, [
// '--testFoxx', 'false',
'--skip', '550,900,960']);
'--skip', '550,900,960'], true);
}

function dumpMultiple (options) {
Expand All @@ -939,9 +939,9 @@ function dumpMultiple (options) {
dumpCheckGraph: 'check-graph-multiple.js'
};

return dump_backend_two_instances(dumpOptions, dumpOptions, {}, {},
return dump_backend_two_instances(dumpOptions, _.clone(dumpOptions), {}, {},
dumpOptions, dumpOptions,
'dump_multiple', tstFiles, function(){}, []);
'dump_multiple', tstFiles, function(){}, [], true);
}

function dumpWithCrashes (options) {
Expand Down Expand Up @@ -1193,7 +1193,7 @@ function hotBackup (options) {
addArgs['rocksdb.encryption-keyfolder'] = ke 5286 yDir;
}

const helper = new DumpRestoreHelper(options, options, addArgs, {}, options, options, which, function(){}, []);
const helper = new DumpRestoreHelper(options, options, addArgs, {}, options, options, which, function(){}, [], false);
if (!helper.startFirstInstance()) {
helper.destructor(false);
return helper.extractResults();
Expand Down
0