Skip to content

Commit

Permalink
DDF-2995 Make the catalog backup plugin uninstalled by default (#2138)
Browse files Browse the repository at this point in the history
* DDF-2995 Make the catalog backup plugin uninstalled by default

* DDF-2995 Update managed-properties pid to package + class
  • Loading branch information
jrnorth authored and clockard committed Jul 17, 2017
1 parent 8e08fc0 commit e209bc8
Show file tree
Hide file tree
Showing 13 changed files with 29 additions and 65 deletions.
2 changes: 1 addition & 1 deletion catalog/catalog-app/src/main/resources/features.xml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
<bundle>mvn:ddf.catalog.core/catalog-core-sourcemetricsplugin/${project.version}</bundle>
</feature>

<feature name="catalog-core-backupplugin" install="auto" version="${project.version}"
<feature name="catalog-core-backupplugin" install="manual" version="${project.version}"
description="Catalog post ingest plug-in to backup metacards to a file system.">
<feature prerequisite="true">catalog-app</feature>
<bundle>mvn:ddf.catalog.core/catalog-core-backupplugin/${project.version}</bundle>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0">

<ext:property-placeholder />
<ext:property-placeholder/>

<bean id="executorService" class="java.util.concurrent.Executors"
factory-method="newSingleThreadExecutor">
</bean>


<bean id="catalogBackupPlugin" class="ddf.catalog.backup.CatalogBackupPlugin"
destroy-method="shutdown">
<cm:managed-properties persistent-id="plugin.backup" update-strategy="container-managed"/>
<cm:managed-properties persistent-id="ddf.catalog.backup.CatalogBackupPlugin"
update-strategy="container-managed"/>
<property name="rootBackupDir" value="${ddf.home}/data/backup"/>
<property name="subDirLevels" value="2"/>
<property name="terminationTimeoutSeconds" value="30"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,8 @@
-->
<metatype:MetaData xmlns:metatype="http://www.osgi.org/xmlns/metatype/v1.0.0">

<OCD description="Backup Post-Ingest Plugin Configuration"
name="Backup Post-Ingest Plugin" id="plugin.backup">

<AD
description="Enable the Backup Ingest plugin which will write each result to a directory"
name="Enable Backup Plugin" id="enableBackupPlugin"
required="false" type="Boolean" default="true"/>
<OCD description="Catalog Backup Plugin Configuration"
name="Catalog Backup Plugin" id="ddf.catalog.backup.CatalogBackupPlugin">

<AD
description="Root backup directory for Metacards. A relative path is relative to ddf.home."
Expand All @@ -33,8 +28,8 @@

</OCD>

<Designate pid="plugin.backup">
<Object ocdref="plugin.backup"/>
<Designate pid="ddf.catalog.backup.CatalogBackupPlugin">
<Object ocdref="ddf.catalog.backup.CatalogBackupPlugin"/>
</Designate>

</metatype:MetaData>
</metatype:MetaData>
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,6 @@ For example:
`127.0.0.1 <FQDN>`
====

[NOTE]
====
By default, the Catalog Backup Post-Ingest Plugin is *NOT* enabled.
To enable, the Enable Backup Plugin configuration item must be checked in the Backup Post-Ingest Plugin configuration.
`Enable Backup Plugin: true`
====

.Changing Default Passwords
[NOTE]
====
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,6 @@ Therefore, whether an administrator's data store is from Oracle, Solr, or any ot
==== Automatic Catalog Backup

To backup local catalog records, a <<_catalog_backup_plugin,Catalog Backup Plugin>> is available.
It is disabled by default for performance reasons.
It is not installed by default for performance reasons.

It can be enabled and configured in the *${admin-console}:

. Navigate to the *${admin-console}.
. Select the *${ddf-catalog} application.
. Select the *Configuration* tab.
. Select the <<_catalog_backup_plugin,Backup Post-Ingest Plugin>>.
It can be installed and configured in the *${admin-console}* (see <<_catalog_backup_plugin,Catalog Backup Plugin>> for instructions).
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ These configurations are available throught the ${ddf-catalog} application.
|ID
|Description

include::{adoc-include}/_tables/conf-plugin.backup-table-contents.adoc[]
include::{adoc-include}/_tables/conf-ddf.catalog.backup.CatalogBackupPlugin-table-contents.adoc[]

include::{adoc-include}/_tables/conf-OpenSearchSource-table-contents.adoc[]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,22 @@ The Catalog Backup Plugin is used to enable data backup of the catalog and the m

===== Installing the Catalog Backup Plugin

The Catalog Backup Plugin is installed by default with a standard installation in the ${ddf-catalog} application.
The Catalog Backup Plugin is not installed by default with a standard installation.

To install:

* Navigate to the *${admin-console}*.
* Navigate to *${ddf-catalog}* application.
* Navigate to *Features* tab.
* Install the *catalog-core-backupplugin* feature.

===== Configuring the Catalog Backup Plugin

To configure the Catalog Backup Plugin:

. Navigate to the *${admin-console}*.
. Select ${ddf-catalog} application.
. Select *${ddf-catalog}* application.
. Select *Configuration* tab.
. Select *Backup Post-Ingest Plugin*.
. Select *Catalog Backup Plugin*.

include::{adoc-include}/_tables/plugin.backup-table-contents.adoc[]
include::{adoc-include}/_tables/ddf.catalog.backup.CatalogBackupPlugin-table-contents.adoc[]
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,6 @@ Therefore, whether an administrator's data store is from Oracle, Solr, or any ot
==== Automatic Catalog Backup

To backup local catalog records, a <<_catalog_backup_plugin,Catalog Backup Plugin>> is available.
It is disabled by default for performance reasons.
It is not installed by default for performance reasons.

It can be enabled and configured in the *${admin-console}:

. Navigate to the *${admin-console}.
. Select the *${ddf-catalog} application.
. Select the *Configuration* tab.
. Select the <<_catalog_backup_plugin,Backup Post-Ingest Plugin>>.
It can be installed and configured in the *${admin-console}* (see <<_catalog_backup_plugin,Catalog Backup Plugin>> for instructions).
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,6 @@ For example:
`127.0.0.1 <FQDN>`
====

[NOTE]
====
By default, the Catalog Backup Post-Ingest Plugin is *NOT* enabled.
To enable, the Enable Backup Plugin configuration item must be checked in the Backup Post-Ingest Plugin configuration.
`Enable Backup Plugin: true`
====

.Changing Default Passwords
[NOTE]
====
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
|<<ddf.catalog.backup.CatalogBackupPlugin,Catalog Backup Plugin>>
|ddf.catalog.backup.CatalogBackupPlugin
|Catalog Backup Plugin Configuration

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.[[plugin.backup]]Backup Post-Ingest Plugin
.[[ddf.catalog.backup.CatalogBackupPlugin]]Catalog Backup Plugin
[cols="1,1m,1,3,1,1" options="header"]
|===

Expand All @@ -9,13 +9,6 @@
|Default Value
|Required

|Enable Backup Plugin
|enableBackupPlugin
|Boolean
|Enable the Backup Ingest plugin which will write each result to a directory
|true
|false

| Root backup directory path
| rootBackupDir
| String
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -356,10 +356,6 @@ public void waitForBaseSystemFeatures() {
getServiceManager().waitForHttpEndpoint(SERVICE_ROOT + "/catalog/query");
getServiceManager().waitForHttpEndpoint(SERVICE_ROOT + "/csw?_wadl");

//currently none of the test use this feature but
//it generates a lot of error/warnings so turning it off
getServiceManager().stopFeature(false, "catalog-core-backupplugin");

getServiceManager().startFeature(true, "search-ui", "search-ui-app", "catalog-ui");
getServiceManager().waitForAllBundles();
} catch (Exception e) {
Expand Down

0 comments on commit e209bc8

Please sign in to comment.