File tree Expand file tree Collapse file tree 5 files changed +29
-10
lines changed
js/client/modules/@arangodb/testsuites Expand file tree Collapse file tree 5 files changed +29
-10
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,6 @@ BootstrapFeature::BootstrapFeature(
50
50
startsAfter (" CheckVersion" );
51
51
startsAfter (" FoxxQueues" );
52
52
startsAfter (" GeneralServer" );
53
- startsAfter (" AQL" );
54
53
}
55
54
56
55
void BootstrapFeature::collectOptions (std::shared_ptr<ProgramOptions> options) {
Original file line number Diff line number Diff line change @@ -65,12 +65,10 @@ function runArangodRecovery (instanceInfo, options, script, setup) {
65
65
66
66
if ( setup ) {
67
67
argv = argv . concat ( [
68
- '--log.level' , 'fatal' ,
69
68
'--javascript.script-parameter' , 'setup'
70
69
] ) ;
71
70
} else {
72
71
argv = argv . concat ( [
73
- '--log.level' , 'info' ,
74
72
'--wal.ignore-logfile-errors' , 'true' ,
75
73
'--javascript.script-parameter' , 'recovery'
76
74
] ) ;
Original file line number Diff line number Diff line change 24
24
25
25
#include " ApplicationFeatures/ApplicationFeature.h"
26
26
#include " ApplicationFeatures/PrivilegeFeature.h"
27
+ #include " Basics/ConditionLocker.h"
27
28
#include " Basics/StringUtils.h"
8000
28
29
#include " Basics/process-utils.h"
29
30
#include " Logger/Logger.h"
@@ -273,8 +274,8 @@ void ApplicationServer::beginShutdown() {
273
274
}
274
275
}
275
276
276
- // TODO: use condition variable for signaling shutdown
277
- // to run method
277
+ CONDITION_LOCKER (guard, _shutdownCondition);
278
+ guard. signal ();
278
279
}
279
280
280
281
void ApplicationServer::shutdownFatalError () {
@@ -694,8 +695,8 @@ void ApplicationServer::wait() {
694
695
LOG_TOPIC (TRACE, Logger::STARTUP) << " ApplicationServer::wait" ;
695
696
696
697
while (!_stopping) {
697
- // TODO: use condition variable for waiting for shutdown
698
- ::usleep (100000 );
698
+ CONDITION_LOCKER (guard, _shutdownCondition);
699
+ guard. wait (100000 );
699
700
}
700
701
}
701
702
Original file line number Diff line number Diff line change 24
24
#define ARANGODB_APPLICATION_FEATURES_APPLICATION_SERVER_H 1
25
25
26
26
#include " Basics/Common.h"
27
+ #include " Basics/ConditionVariable.h"
27
28
28
29
#include < velocypack/Builder.h>
29
30
#include < velocypack/velocypack-aliases.h>
@@ -300,6 +301,9 @@ class ApplicationServer {
300
301
301
302
// features order for prepare/start
302
303
std::vector<ApplicationFeature*> _orderedFeatures;
304
+
305
+ // will be signalled when the application server is asked to shut down
306
+ basics::ConditionVariable _shutdownCondition;
303
307
304
308
// stop flag. this is being changed by calling beginShutdown
305
309
std::atomic<bool > _stopping;
Original file line number Diff line number Diff line change @@ -27,16 +27,33 @@ if [ -z "${ARANGOSH}" ]; then
27
27
elif [ -x usr/bin/arangosh ]; then
28
28
ARANGOSH=usr/bin/arangosh
29
29
else
30
- echo " $0 : cannot locate arangosh"
31
- exit 1
30
+ ARANGOSH=" $( find . -name arangosh -executable -type f | head -n 1) "
31
+ [ -x " ${ARANGOSH} " ] || {
32
+ echo " $0 : cannot locate arangosh"
33
+ exit 1
34
+ }
32
35
fi
33
36
fi
34
37
38
+ EXEC_PATH=" $( dirname " $( dirname " $( readlink -m " $0 " ) " ) " ) "
67E6
39
+ declare -a EXTRA_ARGS
40
+
41
+ [ -x " ${ARANGOSH} " ] && ARANGOSH=" $( readlink -m " ${ARANGOSH} " ) "
42
+
43
+ [[ " $@ " =~ " --build" ]] || {
44
+ BUILD_PATH=" $( dirname " $( dirname " ${ARANGOSH} " ) " ) "
45
+ BUILD_PATH=" ${BUILD_PATH# ${EXEC_PATH} / } "
46
+ EXTRA_ARGS=(" --build" " ${BUILD_PATH} " )
47
+ }
48
+
35
49
#
50
+ (
51
+ cd " ${EXEC_PATH} "
36
52
exec $NUMA $ARANGOSH \
37
53
-c etc${PS} relative${PS} arangosh.conf \
38
54
--log.level warning \
39
55
--server.endpoint tcp://127.0.0.1:${PORT} \
40
56
--javascript.execute UnitTests${PS} unittest.js \
41
57
-- \
42
- " $@ "
58
+ " $@ " " ${EXTRA_ARGS[@]} "
59
+ )
You can’t perform that action at this time.
0 commit comments