Skip to content
Snippets Groups Projects
Commit e1841941 authored by felmer's avatar felmer
Browse files

SSDM-2054: "The mandatory cleaner properties are checked the first time in...

SSDM-2054: "The mandatory cleaner properties are checked the first time in case of failure". Create archiver during initialization of DataStoreServer

SVN: 34334
parent 07085a0b
No related branches found
No related tags found
No related merge requests found
......@@ -166,6 +166,11 @@ public class DataStoreService extends AbstractServiceWithLogger<IDataStoreServic
}
}
migrateStore();
ArchiverPluginFactory factory = pluginTaskInfoProvider.getArchiverPluginFactory();
if (factory.isArchiverConfigured())
{
factory.createInstance(storeRoot); // checks configuration of the archiver
}
}
@Override
......
......@@ -41,6 +41,7 @@ import ch.systemsx.cisd.common.mail.MailClientParameters;
import ch.systemsx.cisd.common.properties.PropertyParametersUtil.SectionProperties;
import ch.systemsx.cisd.common.test.RecordingMatcher;
import ch.systemsx.cisd.openbis.dss.generic.server.api.v2.sequencedatabases.AbstractSearchDomainService;
import ch.systemsx.cisd.openbis.dss.generic.server.plugins.tasks.ArchiverPluginFactory;
import ch.systemsx.cisd.openbis.dss.generic.server.plugins.tasks.IPluginTaskInfoProvider;
import ch.systemsx.cisd.openbis.dss.generic.server.plugins.tasks.PluginTaskFactory;
import ch.systemsx.cisd.openbis.dss.generic.server.plugins.tasks.PluginTaskProvider;
......@@ -210,6 +211,9 @@ public class DataStoreServiceTest extends AssertJUnit
allowing(pluginTaskParameters).getStoreRoot();
will(returnValue(TEST_STORE));
allowing(pluginTaskParameters).getArchiverPluginFactory();
will(returnValue(new ArchiverPluginFactory(new SectionProperties("archiver", new Properties()))));
}
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment