signal timeout instead of continuing triggering core dumps
#include <vespa/searchcore/config/config-ranking-constants.h>
#include <vespa/searchcore/config/config-ranking-expressions.h>
#include <vespa/searchcore/config/config-onnx-models.h>
+#include <vespa/config/common/exceptions.h>
#include <vespa/config-imported-fields.h>
#include <vespa/config-rank-profiles.h>
#include <vespa/config-summarymap.h>
@@ -281,6 +282,9 @@ vespalib::string resolve_file(config::RpcFileAcquirer &fileAcquirer, vespalib::T
}
}
LOG(info, "Got file path from file acquirer: '%s' (%s, ref='%s')", filePath.c_str(), desc.c_str(), fileref.c_str());
+ if (filePath == "") {
+ throw config::ConfigTimeoutException("could not get file path from file acquirer");
+ }
return filePath;
}
