Project

General

Profile

Statistics
| Revision:
  • svn:ignore: build
  • svn:mergeinfo: /branches/D1_0_6_2_BRANCH:6107-6121

# Date Author Comment
6547 10/27/2011 08:58 AM ben leinfelder

include CILogon link and more explanation about what is going on with the mapping.

6546 10/27/2011 08:49 AM Jing Tao

Change the version from 1.9.4 to 1.9.5.

6545 10/26/2011 11:08 AM ben leinfelder

correctly check that user is logged into metacat before proceeding

6544 10/26/2011 11:07 AM ben leinfelder

use null session for now

6543 10/25/2011 05:54 PM ben leinfelder

draft of legacy-to-d1 account mapping interface

6542 10/20/2011 02:03 PM ben leinfelder

add User-Agent logging to support D1 requirements

6541 10/20/2011 12:40 PM ben leinfelder

remove old RestServlet handler -- not used now

6540 10/16/2011 10:47 AM Chris Jones

Add debugging output to MNodeService.

6539 10/14/2011 05:49 PM ben leinfelder

use default fmtid if we can't find the user-supplied data mime type in our list

6538 10/14/2011 05:13 PM ben leinfelder

including newer d1 libclient that uses Foresite (and Jena) to construct/parse ORE resource maps for DataONE

6536 10/14/2011 02:57 PM ben leinfelder

delete the xml access rules by either docid or guid to make sure we have the most up to date information

6535 10/14/2011 10:45 AM Chris Jones

Fix a data-typing issue when pulling replicationAllowed from postgres. Use getBoolean(), not getString().

6534 10/13/2011 05:13 PM ben leinfelder

cleaned up to use for populating a DataONE MN using the D1 api. Retrieves packages from a Metacat and generates system metadata for them before calling MN.create() for both data and metadata.
NOTE: you need a client certificate that the target server accepts (either DataONE-generated for testing or a CILogon one for more official use). I was only able to get the former certificate type to work with our existing MN servers

6533 10/12/2011 07:19 PM Chris Jones

IdentifierManager.getSystemMetadata() was missing the number_replicas and replication_allowed fields when building a ReplicationPolicy section of a SystemMetadata document being returned. Add in these two attributes.

6532 10/12/2011 11:17 AM ben leinfelder

update D1 jars to include recent SubjectList -> SubjectInfo refactoring and the SUBJECT_PUBLIC constant

6531 10/12/2011 11:08 AM ben leinfelder

include SystemMetadata when replicating data and metadata documents -- this allows us to establish the guid-to-docid mapping that is crucial for being able to read the replicated document by guid (d1 api)

6530 10/12/2011 10:00 AM ben leinfelder

throw InvalidToken when the Session parameter is null for create()
https://redmine.dataone.org/issues/1850

6529 10/11/2011 08:37 PM Matt Jones

Fix service versioning in metacat.properties so that when Metacat nodes are registered they report the correct service version for use in resolve() -- i.e., use "v1" instead of "0.6.4" in resolve urls.

6528 10/09/2011 02:50 PM Chris Jones

Once a CN calls replicate() on an MN, the MN needs to call getReplica() on the source MN (not get()). Once the bytes are retrieved, the MN must then call back to the CN with setReplicationStatus() to indicate that the replication status is complete. Modify MNodeService to do so.

6527 09/29/2011 11:43 PM Matt Jones

Bug fix for access control rules coming in from the dataone system metadata. Previously, the code used getLocalId() to get the docid to insert into the XML access table, but that docid included the revision number (e.g., foo.1.1), which it shouldn't. Now use the AccessionNumber class to strip off the rev to get a real docid for insertion into the table.

6526 09/28/2011 07:28 PM ben leinfelder

allow the XML namespace to be given in both double and single quotes. The regex pattern was only looking for xmlns values that were in double quotes. This was brought to light by LTER:
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5497

6525 09/26/2011 10:59 PM ben leinfelder

set date uploaded and date system metadata updated date to current time when calling MN.create() and MN.update()

6524 09/26/2011 02:46 PM ben leinfelder

updated d1_common jar (unknown changes)

6523 09/26/2011 02:45 PM ben leinfelder

use rfc2253 format when extracting certificate subject

6522 09/26/2011 12:07 PM ben leinfelder

do not allow system metadata to have obsoletes or obsoletedBy fields when calling the create() method -- these are only allowed for updates so that we do not subvert object versioning by [un]knowingly submitting system metadata that directs one id to another.

6521 09/26/2011 11:59 AM ben leinfelder

set the originating member node on update()

6520 09/26/2011 11:53 AM ben leinfelder

set the originating member node on create()

6519 09/26/2011 11:52 AM ben leinfelder

-use whatever object format id is stored in the DB
-only set originating node and authoritative node if we have non-null values for them

6518 09/26/2011 11:10 AM ben leinfelder

set sysmeta submitter based on the subject given in the certificate

6517 09/26/2011 10:48 AM ben leinfelder

for default Metacat installation we turn off multicast and only enable localhost communication.

6516 09/26/2011 09:42 AM ben leinfelder

skip Objects that have null format ids are invalid checksums

6515 09/23/2011 10:18 PM ben leinfelder

MN.setAccess() is a PUT

6514 09/23/2011 09:54 PM ben leinfelder

correctly handle incoming "accessPolicy" parameters for the setAccess() method

6513 09/23/2011 08:46 PM ben leinfelder

swap the parameters for update: existing pid should be first, and then newPid

6512 09/23/2011 02:59 PM Matt Jones

Modified cron schedule to fix the incorrect crontab entry.

6511 09/23/2011 01:44 PM ben leinfelder

do not require ID reservation before create() or update()

6510 09/23/2011 01:39 PM ben leinfelder

use "action" parameter instead of "permission"

6509 09/23/2011 01:38 PM ben leinfelder

use "action" parameter instead of "permission"

6508 09/22/2011 03:57 PM ben leinfelder

catch datapackage parsing errors as before

6507 09/22/2011 03:30 PM ben leinfelder

include checksum algorithm when setting describe
https://redmine.dataone.org/issues/1799

6506 09/22/2011 03:30 PM ben leinfelder

check for null session before logging sync failed
https://redmine.dataone.org/issues/1798

6505 09/22/2011 02:58 PM Matt Jones

Fixed the D1 URL to the Coordinating Node that had been missing /cn in the path.

6504 09/22/2011 02:22 PM ben leinfelder

use an actual data object (bytes of "test") when generating system metadata so that the checksum is a valid checksum

6503 09/22/2011 02:02 PM ben leinfelder

use Settings augmentation to customize the D1Client.CN_URL when used in a Metacat deployment.

6502 09/22/2011 02:01 PM ben leinfelder

correctly implement MN.describe
https://redmine.dataone.org/issues/1799

6501 09/22/2011 01:40 PM ben leinfelder

return Node not NodeList for getCapabilities
https://redmine.dataone.org/issues/1800

6500 09/22/2011 01:32 PM Matt Jones

Use setProperty() instead of addProperty() to properly override the Settings property.

6499 09/22/2011 01:19 PM Matt Jones

Modify to set the CN URL before getting a CN instance.

6498 09/22/2011 01:18 PM Matt Jones

Updating CN property to use cn-dev.

6497 09/22/2011 10:55 AM Matt Jones

Pull the certificate path for dataone certificates from the metacat properties file.

6496 09/22/2011 10:12 AM ben leinfelder

return null instead of throwing an exception when pid is not found in store

6495 09/22/2011 10:12 AM ben leinfelder

log errors on create() and registerSM

6494 09/22/2011 10:11 AM ben leinfelder

more stringent NP checking when saving replication policy

6493 09/22/2011 12:05 AM Matt Jones

Register as a MN on the DataONE network as part of the properties setup. This is currently done always, but it needs to be conditional rather than automatically triggered.

6492 09/22/2011 12:03 AM Matt Jones

Added subject field to getCapabilities() call.

6491 09/21/2011 07:02 PM Chris Jones

Newest D1 0.6.4 jars

6490 09/21/2011 05:45 PM ben leinfelder

comment out resynch() method until errors are resolved

6489 09/21/2011 05:25 PM ben leinfelder

use default hazelcast config when not configured to use an external one

6488 09/21/2011 05:25 PM Chris Jones

Use multicast in the hazelcast config for local deployments.

6487 09/21/2011 05:24 PM ben leinfelder

comment out the external hazelcast config location for default building

6486 09/21/2011 05:24 PM ben leinfelder

include default hazelcast.xml in the war build

6485 09/21/2011 05:03 PM Chris Jones

Add in the hzObjectPath map to the hazelcast config file for a local deployment. Enable the MapStore impl for both maps.

6484 09/21/2011 04:58 PM Chris Jones

Don't use the hzNodes map yet (as a hazelcast client). Use D1Client instead to get the node list in isNodeAuthorized().

6483 09/21/2011 04:51 PM Chris Jones

For now, remove the hzClient code connecting to the DataONE process cluster to get the hzNodes map. This will be moved into the storage cluster, but use D1Client to get the node list for now.

6482 09/21/2011 04:42 PM Chris Jones

A default hazelcast config file for metacat.

6481 09/21/2011 10:54 AM rnahf

going back to using IDentifier as the key for the ObjectPAthMap.

6480 09/20/2011 11:40 PM Matt Jones

Removed extraneous comments.

6479 09/20/2011 11:36 PM Matt Jones

Add boolean field for synchronization status.

6478 09/20/2011 11:03 PM Matt Jones

New default properties for dataone MN properties.

6477 09/20/2011 10:56 PM Matt Jones

A configuration section for DataONE Member Node properties.

6476 09/20/2011 10:20 PM Matt Jones

Fix getCapabilities to properly throw ServiceFailure when properties can not be read, rather than failing with a log message. Fix properties in the Node object to reflect their correct values. Set the sync schedule properly to default to 5 minute intervals. Improve documentation.

6475 09/20/2011 08:52 PM Matt Jones

Reformatted to correct indentation to make class readable.

6474 09/20/2011 02:32 PM ben leinfelder

newer d1 jars -- contains CN.isNodeAuthorized() method

6473 09/20/2011 02:12 PM ben leinfelder

explicitly require java 1.6

6472 09/20/2011 02:11 PM ben leinfelder

collect "message" param from multipart request for MN.synchronizationFailed method

6471 09/20/2011 02:08 PM Matt Jones

Reverting previous @Overrides chanrge from r6470, as that is the desired
behavior under Java 1.6 -- previous versions of Java (e.g., 1.5) will not
comile with this usage of the @Overrides annotation, but the currently
supported version will. So reverting to the 1.6 convention.

6470 09/20/2011 01:36 PM Matt Jones

Removing incorrect @Override annotations that were preventing compilation. The methods marked did not actually override a method in the superclass, so they were not compiling. I think @Overrides was being mistaken for methods that implement an interface but aren't actually in the superclass.

6469 09/20/2011 11:55 AM ben leinfelder

use d1_common_java's date serialization utility for parsing parameters

6468 09/20/2011 10:48 AM ben leinfelder

catch runtime exceptions that arise from hazelcast storage errors in the system metadata map

6467 09/20/2011 09:12 AM Chris Jones

Lock the system metadata entry in hzSystemMetadata when calling setReplicationPolicy().

6466 09/20/2011 09:10 AM Chris Jones

Lock the system metadata entry in hzSystemMetadata when calling registerSystemMetadata().

6465 09/20/2011 07:18 AM Chris Jones

Remove references to CNReplicationTask.

6464 09/20/2011 07:17 AM Chris Jones

Remove the CNReplicationTask (for now). We will be using Metacat's ForceReplicationHandler to replicate science metadata across CNs, and may explore the use of a 100% evicted hzScienceMetadata map. Either way, the distributed task design won't be needed. When a dropped CN comes back online, we'll catch it up based on last modified dates for PIDs in the hzSystemMetadata map.

6463 09/20/2011 07:12 AM Chris Jones

Change isNodeAuthorized() to query the hzSystemMetadata map rather than the hzPendingreplicationTasks map. The latter isn't needed for authorization since the ReplicationStatus for each Replica in SystemMetadata lists the status of the replica and can be queried.

6462 09/20/2011 06:42 AM Chris Jones

Add getNodesMap() to return the hzNodes map from the process cluster. Remove getPendingReplicationTasks since that structure is being removed. Add minor documentation.

6461 09/19/2011 06:29 PM Chris Jones

Set the correct cluster name and password for the D1 Hazelcast process cluster. This will likely change for production deployments.

6460 09/19/2011 03:39 PM ben leinfelder

only include 0.6.4 schemas for D1. Will also need to update this when we release whatever v1 ends up being.

6459 09/19/2011 03:26 PM ben leinfelder

lookup latest system metadata update date for use in synchronizing CN-CN when an offline nodes comes back online

6458 09/19/2011 12:17 PM rnahf

changed the key type from Identifier to String for ObjectPathMap. (need a Comparable key).

6457 09/19/2011 11:48 AM ben leinfelder

rework this to be MN->MN replication. Should be fleshed out more.

6456 09/19/2011 11:43 AM ben leinfelder

throw RuntimeExceptions when store() methods throw declared exceptions -- we want callers to put() to be alerted if there are errors.

6455 09/19/2011 10:18 AM ben leinfelder

move CNReplicationTask to the hazelcast package

6454 09/16/2011 05:05 PM ben leinfelder

do not throw exception when checking for system metadata - boolean return is good.
use ReplicationStatus.valueOf() instead of convert()

6453 09/16/2011 05:04 PM ben leinfelder

implicit success for setting accessPolicy - trust that the MapStore persists the updated system metadata

6452 09/16/2011 05:03 PM ben leinfelder

test relationship assertion using obsoletes

6451 09/16/2011 04:42 PM ben leinfelder

check if system metadata exists rather than just the id mapping (before creating the entry)

6450 09/16/2011 04:01 PM ben leinfelder

treat access rules atomically - do not group them together otherwise the intent is subverted

6449 09/16/2011 03:23 PM ben leinfelder

only "save" to the shared system metadata map - not directly to the table store.

6448 09/16/2011 03:17 PM ben leinfelder

do not send <systemMetadata> with the <docInfo> replication information - this is handled by the Hazelcast shared map

6447 09/16/2011 03:07 PM ben leinfelder

rely on Hazelcast to store the SystemMetadata locally for the node. Entry event listeners store the shared system metadata on their local node when alerted. TODO: remove old replication code that included system metadata xml when replicating scimeta and data