From 385eaa96145f8237712040df3d68ca3591c186b5 Mon Sep 17 00:00:00 2001 From: Costantino Perciante Date: Tue, 16 Feb 2016 13:59:48 +0000 Subject: [PATCH] Minor fixes git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/social-networking/social-data-indexer-se-plugin@124219 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../SocialDataIndexerPlugin.java | 21 ++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/gcube/socialnetworking/socialdataindexer/SocialDataIndexerPlugin.java b/src/main/java/org/gcube/socialnetworking/socialdataindexer/SocialDataIndexerPlugin.java index d77a73f..c9f9bc2 100644 --- a/src/main/java/org/gcube/socialnetworking/socialdataindexer/SocialDataIndexerPlugin.java +++ b/src/main/java/org/gcube/socialnetworking/socialdataindexer/SocialDataIndexerPlugin.java @@ -98,10 +98,14 @@ public class SocialDataIndexerPlugin extends Plugin unneeded since we pass all the cluster's nodes + .put("client.transport.sniff", true) .build(); // build the client @@ -136,7 +140,6 @@ public class SocialDataIndexerPlugin extends Plugin attachments = new ArrayList(); if (isMultiFileUpload) { + logger.debug("Retrieving attachments for feed with id="+feed.getKey()); + try { + attachments = (ArrayList) store.getAttachmentsByFeedId(feed.getKey()); + } catch (FeedIDNotFoundException e) { + logger.error("It looks like sth wrong with this feedid having attachments, could not find feedId = " + feed.getKey() + "\n" + e.getMessage()); continue; + } }