Browse Source

fixed puvlisher APIs

master
Luca Frosini 5 months ago
parent
commit
373a25afa5
  1. 2
      src/main/java/org/gcube/informationsystem/exporter/mapper/GCoreResourceMapper.java
  2. 2
      src/main/java/org/gcube/informationsystem/exporter/mapper/GenericResourceExporter.java
  3. 2
      src/main/java/org/gcube/informationsystem/exporter/mapper/ServiceEndpointExporter.java

2
src/main/java/org/gcube/informationsystem/exporter/mapper/GCoreResourceMapper.java

@ -160,7 +160,7 @@ public abstract class GCoreResourceMapper<GR extends org.gcube.common.resources.
} catch (AvailableInAnotherContextException e) {
// This code should never be reached because this should be fixed in
// map function
resourceRegistryPublisher.addResourceToCurrentContext(r);
resourceRegistryPublisher.addResourceToCurrentContext(r, false);
try {
Thread.sleep(100);
} catch (Exception ee) {

2
src/main/java/org/gcube/informationsystem/exporter/mapper/GenericResourceExporter.java

@ -51,7 +51,7 @@ public class GenericResourceExporter extends GCoreResourceMapper<GenericResource
} catch(NotFoundException e) {
readFromIS = false;
} catch(AvailableInAnotherContextException e) {
resourceRegistryPublisher.addResourceToCurrentContext(Configuration.NAME, uuid);
resourceRegistryPublisher.addResourceToCurrentContext(Configuration.NAME, uuid, false);
Thread.sleep(100);
readFromIS = true;
}

2
src/main/java/org/gcube/informationsystem/exporter/mapper/ServiceEndpointExporter.java

@ -83,7 +83,7 @@ public class ServiceEndpointExporter extends GCoreResourceMapper<ServiceEndpoint
} catch(NotFoundException e) {
readFromIS = false;
} catch(AvailableInAnotherContextException e) {
resourceRegistryPublisher.addResourceToCurrentContext(EService.NAME, uuid);
resourceRegistryPublisher.addResourceToCurrentContext(EService.NAME, uuid, false);
Thread.sleep(100);
readFromIS = true;
}

Loading…
Cancel
Save