Project

General

Profile

« Previous | Next » 

Revision 6447

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

View differences:

CNodeService.java
537 537
        logMetacat.debug("Starting to insert SystemMetadata...");
538 538
        sysmeta.setDateSysMetadataModified(new Date());
539 539
        try {
540
          IdentifierManager.getInstance().createSystemMetadata(sysmeta);
541
          // force replication of this record
542
          ForceReplicationSystemMetadataHandler forceReplication = 
543
            new ForceReplicationSystemMetadataHandler(guid.getValue(), null);
540
        	HazelcastService.getInstance().getSystemMetadataMap().put(sysmeta.getIdentifier(), sysmeta);
544 541
        } catch (Exception e) {
545 542
            throw new ServiceFailure("4862", "Error inserting system metadata: " + e.getClass() + ": " + e.getMessage());
546 543
        }

Also available in: Unified diff