Project

General

Profile

Feature #6916

Create a read-only mode for Metacat MN

Added by Jing Tao about 4 years ago. Updated about 4 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()

History

#1 Updated by Jing Tao about 4 years ago

Those methods can NOT be executed :)

#2 Updated by Jing Tao about 4 years ago

  • Assignee set to Jing Tao

#3 Updated by Jing Tao about 4 years ago

  • Status changed from New to Closed
  • Tracker changed from Bug to Feature

The above methods were added a checker for the read-only mode.

Also available in: Atom PDF