Project

General

Profile

Actions

Feature #6916

closed

Create a read-only mode for Metacat MN

Added by Jing Tao almost 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
12/17/2015
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:

Description

During a big os upgrade of a Metacat member node, we always face the issue that it will have a long down time. In order to minimize the down time, we can create a new node which has been installed the new version of the software, then migrate the content from the old node to the new node. In order to keep the same content, it will be great if the old node can be set to the read-only mode.

Here is my plan:

In the metacat.properties file, a new property database.readyOnly will be added. It it is the true, the following methods can be excecuted:

1. Metacat API:
- handleMultipartForm
- insert
- update
- delete
- setaccess
- buildindex
- reindex
- reindexall
- scheduleWorkflow
- unscheduleWorkflow
- rescheduleWorkflow
- deleteScheduledWorkflow
- handlerPlugin ( we are not sure if they can update the content)

2. Metacat Replication API
- forcereplicatedatafile
- forcereplicate
- forcereplcatesystemmetadata
- forcereplicatedelete
- forcereplicatedeleteall
- update

3. Member node api (v1 and v2)
- MNRead.systemMetadataChanged()
- MNStorage.create()
- MNStorage.update()
- MNStorage.delete()
- MNStorage.archive()
- MNStorage.updateSystemMetadata()
- MNReplication.replicate()

Actions

Also available in: Atom PDF