1
0
Fork 0

Lower timeout in query registry to 10min from 1h.

This commit is contained in:
Max Neunhoeffer 2017-01-30 23:59:46 +01:00
parent 9525f46b2b
commit 91c97d301a
3 changed files with 4 additions and 4 deletions

View File

@ -1042,7 +1042,7 @@ struct CoordinatorInstanciator : public WalkerWorker<ExecutionNode> {
id = TRI_NewTickServer();
try {
queryRegistry->insert(id, engine->getQuery(), 3600.0);
queryRegistry->insert(id, engine->getQuery(), 600.0);
} catch (...) {
delete engine->getQuery();
// This deletes the new query as well as the engine

View File

@ -45,7 +45,7 @@ class QueryRegistry {
/// a query for this <vocbase> and <id> combination and an exception will
/// be thrown in that case. The time to live <ttl> is in seconds and the
/// query will be deleted if it is not opened for that amount of time.
void insert(QueryId id, Query* query, double ttl = 3600.0);
void insert(QueryId id, Query* query, double ttl = 600.0);
/// @brief open, find a query in the registry, if none is found, a nullptr
/// is returned, otherwise, ownership of the query is transferred to the

View File

@ -105,7 +105,7 @@ void RestAqlHandler::createQueryFromVelocyPack() {
}
// Now the query is ready to go, store it in the registry and return:
double ttl = 3600.0;
double ttl = 600.0;
bool found;
std::string const& ttlstring = _request->header("ttl", found);
@ -317,7 +317,7 @@ void RestAqlHandler::createQueryFromString() {
}
// Now the query is ready to go, store it in the registry and return:
double ttl = 3600.0;
double ttl = 600.0;
bool found;
std::string const& ttlstring = _request->header("ttl", found);