Commit f57669ee authored by Mukund Sivaraman's avatar Mukund Sivaraman
Browse files

[2947] Continue configuring other data sources even if there is a DataSourceLibraryError

parent c7115f5b
......@@ -110,12 +110,20 @@ ConfigurableClientList::configure(const ConstElementPtr& config,
<< datasrc_name);
}
// Create a client for the underling data source via factory.
// If it's our internal type of data source, this is essentially
// no-op. In the latter case, it's of no use unless cache is
// allowed; we simply skip building it in that case.
const DataSourcePair dsrc_pair = getDataSourceClient(type,
param_conf);
DataSourcePair dsrc_pair;
try {
// Create a client for the underling data source via
// factory. If it's our internal type of data source,
// this is essentially no-op. In the latter case, it's
// of no use unless cache is allowed; we simply skip
// building it in that case.
dsrc_pair = getDataSourceClient(type, param_conf);
} catch (const DataSourceLibraryError& ex) {
LOG_WARN(logger, DATASRC_LIBRARY_FAILURE).
arg(datasrc_name).arg(rrclass_).arg(ex.what());
continue;
}
if (!allow_cache && !dsrc_pair.first) {
LOG_WARN(logger, DATASRC_LIST_NOT_CACHED).
arg(datasrc_name).arg(rrclass_);
......
......@@ -370,6 +370,11 @@ Therefore, the entire data source will not be available for this process. If
this is a problem, you should configure the zones of that data source to some
database backend (sqlite3, for example) and use it from there.
% DATASRC_LIBRARY_FAILURE failure loading %1 datasource library for class %2: %3
There was a problem loading the dynamic library for a data source. This
backend is hence not available, and any data sources that use this
backend will not be available.
% DATASRC_LOAD_ZONE_ERROR Error loading zone %1/%2 on data source '%3': %4
During data source configuration, an error was found in the zone data
when it was being loaded in to memory on the shown data source. This
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment