Project

General

Profile

Task #6065

Fix dataone-cn-metacat installation to modify spatial and indexPaths properties

Added by Chris Jones over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
d1_cn_buildout
Target version:
-
Start date:
2014-08-21
Due date:
% Done:

100%

Milestone:
None
Product Version:
*
Story Points:
Sprint:

Description

In the dataone-cn-metacat postinst script, we modify a number of properties in the metacat.properties file for Coordinating Node installations.

for example:

s/(spatial.regenerateCacheOnRestart=)./\1false/;
s/(D1Client.CN_URL=).
/\1https:\/\/${CN_ROUTER_HOSTNAME}\/cn/;

We need to also set the 'spatial.runSpatialOption' to false in order to bypass the geoserver component of Metacat.

Also, we're experiencing very long startup times for Metacat (24 minutes), and it looks to be due to the Metacat indexing feature (older, non-Solr indexing). Because the xml.indexPaths property lists many paths to index, Metacat ends up searching the xml_nodes table for each of these paths, only to not index them because the 'database.usexmlindex' is set to false. The search time is causing the startup delay. With the xml.indexPaths set to nothing, startup time is around 70 seconds in production.

So, we need to clear the multi-lined xml.indexPaths property in the postinst file as well.


Related issues

Duplicated by Infrastructure - Bug #5567: How to determine if indexing on Metacat is turned of? Closed

History

#1 Updated by Jing Tao over 9 years ago

I added to code to change 'spatial.runSpatialOption' to false in both DATAONE-CN-METACAT_v2.4 and trunk.

#2 Updated by Jing Tao over 9 years ago

  • Status changed from New to Closed
  • translation missing: en.field_remaining_hours set to 0.0

Metacat has two level of index - xml_index and xml_path_index. The xml_index was controlled by database.usexmlindex. This value was reset in the code long time ago.
The xml_path_index was controlled the value of dbquery.enabledEngines. If "pathquery" was removed. Everything related to xml_path_index will be disabled. The code to remove "pathquery" was added to both the trunk and DATAONE-CN-METACAT_v2.4 branch.

However, we found a bug on Metacat. The removal "pathquery" didn't disable a process for pathquery in the initialization of Metacat. The bug was fixed in both Metacat trunk and Metacat 2.4 branch.

I tested code in cn-dev and cn-sandbox. It worked.

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)