diff --git a/alerting/alerting-core/pom.xml b/alerting/alerting-core/pom.xml
index 883fa59dc..44936ab28 100644
--- a/alerting/alerting-core/pom.xml
+++ b/alerting/alerting-core/pom.xml
@@ -11,7 +11,7 @@
uk.co.gresearch.siembol
alerting
- 2.0.0-SNAPSHOT
+ 2.0.1-SNAPSHOT
@@ -35,7 +35,7 @@
uk.co.gresearch.siembol
siembol-common
- 2.0.0-SNAPSHOT
+ 2.0.1-SNAPSHOT
junit
diff --git a/alerting/alerting-spark/pom.xml b/alerting/alerting-spark/pom.xml
index b4cdaf808..a07cc1631 100644
--- a/alerting/alerting-spark/pom.xml
+++ b/alerting/alerting-spark/pom.xml
@@ -11,7 +11,7 @@
uk.co.gresearch.siembol
alerting
- 2.0.0-SNAPSHOT
+ 2.0.1-SNAPSHOT
@@ -23,7 +23,7 @@
uk.co.gresearch.siembol
alerting-core
- 2.0.0-SNAPSHOT
+ 2.0.1-SNAPSHOT
jackson-databind
diff --git a/alerting/alerting-storm/pom.xml b/alerting/alerting-storm/pom.xml
index f2171b131..d40de696e 100644
--- a/alerting/alerting-storm/pom.xml
+++ b/alerting/alerting-storm/pom.xml
@@ -9,13 +9,13 @@
uk.co.gresearch.siembol
alerting
- 2.0.0-SNAPSHOT
+ 2.0.1-SNAPSHOT
com.google.guava
guava
- 23.0
+ ${storm_guava_version}
com.fasterxml.jackson.core
@@ -51,7 +51,7 @@
uk.co.gresearch.siembol
alerting-core
- 2.0.0-SNAPSHOT
+ 2.0.1-SNAPSHOT
org.slf4j
diff --git a/alerting/pom.xml b/alerting/pom.xml
index abf033785..1ac998502 100644
--- a/alerting/pom.xml
+++ b/alerting/pom.xml
@@ -11,7 +11,7 @@
uk.co.gresearch.siembol
siembol
- 2.0.0-SNAPSHOT
+ 2.0.1-SNAPSHOT
alerting-core
diff --git a/config-editor/config-editor-core/pom.xml b/config-editor/config-editor-core/pom.xml
index e0285bcb7..da6fd4d23 100644
--- a/config-editor/config-editor-core/pom.xml
+++ b/config-editor/config-editor-core/pom.xml
@@ -9,13 +9,13 @@
uk.co.gresearch.siembol
config-editor
- 2.0.0-SNAPSHOT
+ 2.0.1-SNAPSHOT
uk.co.gresearch.siembol
siembol-common
- 2.0.0-SNAPSHOT
+ 2.0.1-SNAPSHOT
org.apache.commons
diff --git a/config-editor/config-editor-rest/pom.xml b/config-editor/config-editor-rest/pom.xml
index 34c16ff50..accc389f0 100644
--- a/config-editor/config-editor-rest/pom.xml
+++ b/config-editor/config-editor-rest/pom.xml
@@ -9,7 +9,7 @@
uk.co.gresearch.siembol
config-editor
- 2.0.0-SNAPSHOT
+ 2.0.1-SNAPSHOT
@@ -56,7 +56,7 @@
uk.co.gresearch.siembol
siembol-common
- 2.0.0-SNAPSHOT
+ 2.0.1-SNAPSHOT
org.slf4j
@@ -67,22 +67,22 @@
uk.co.gresearch.siembol
config-editor-core
- 2.0.0-SNAPSHOT
+ 2.0.1-SNAPSHOT
uk.co.gresearch.siembol
config-editor-services
- 2.0.0-SNAPSHOT
+ 2.0.1-SNAPSHOT
uk.co.gresearch.siembol
config-editor-sync
- 2.0.0-SNAPSHOT
+ 2.0.1-SNAPSHOT
uk.co.gresearch.siembol
alerting-core
- 2.0.0-SNAPSHOT
+ 2.0.1-SNAPSHOT
org.slf4j
@@ -93,7 +93,7 @@
uk.co.gresearch.siembol
parsing-app
- 2.0.0-SNAPSHOT
+ 2.0.1-SNAPSHOT
org.slf4j
@@ -104,7 +104,7 @@
uk.co.gresearch.siembol
enriching-core
- 2.0.0-SNAPSHOT
+ 2.0.1-SNAPSHOT
org.slf4j
@@ -115,7 +115,7 @@
uk.co.gresearch.siembol
responding-core
- 2.0.0-SNAPSHOT
+ 2.0.1-SNAPSHOT
org.slf4j
diff --git a/config-editor/config-editor-services/pom.xml b/config-editor/config-editor-services/pom.xml
index ea0954e00..70b7052d8 100644
--- a/config-editor/config-editor-services/pom.xml
+++ b/config-editor/config-editor-services/pom.xml
@@ -10,53 +10,53 @@
uk.co.gresearch.siembol
config-editor
- 2.0.0-SNAPSHOT
+ 2.0.1-SNAPSHOT
uk.co.gresearch.siembol
siembol-common
- 2.0.0-SNAPSHOT
+ 2.0.1-SNAPSHOT
uk.co.gresearch.siembol
config-editor-core
- 2.0.0-SNAPSHOT
+ 2.0.1-SNAPSHOT
uk.co.gresearch.siembol
alerting-core
- 2.0.0-SNAPSHOT
+ 2.0.1-SNAPSHOT
uk.co.gresearch.siembol
alerting-storm
- 2.0.0-SNAPSHOT
+ 2.0.1-SNAPSHOT
uk.co.gresearch.siembol
parsing-storm
- 2.0.0-SNAPSHOT
+ 2.0.1-SNAPSHOT
uk.co.gresearch.siembol
enriching-storm
- 2.0.0-SNAPSHOT
+ 2.0.1-SNAPSHOT
uk.co.gresearch.siembol
parsing-app
- 2.0.0-SNAPSHOT
+ 2.0.1-SNAPSHOT
uk.co.gresearch.siembol
enriching-core
- 2.0.0-SNAPSHOT
+ 2.0.1-SNAPSHOT
uk.co.gresearch.siembol
responding-core
- 2.0.0-SNAPSHOT
+ 2.0.1-SNAPSHOT
junit
diff --git a/config-editor/config-editor-sync/pom.xml b/config-editor/config-editor-sync/pom.xml
index 41af80403..d28d36368 100644
--- a/config-editor/config-editor-sync/pom.xml
+++ b/config-editor/config-editor-sync/pom.xml
@@ -9,7 +9,7 @@
uk.co.gresearch.siembol
config-editor
- 2.0.0-SNAPSHOT
+ 2.0.1-SNAPSHOT
@@ -20,17 +20,17 @@
uk.co.gresearch.siembol
siembol-common
- 2.0.0-SNAPSHOT
+ 2.0.1-SNAPSHOT
uk.co.gresearch.siembol
config-editor-core
- 2.0.0-SNAPSHOT
+ 2.0.1-SNAPSHOT
uk.co.gresearch.siembol
parsing-app
- 2.0.0-SNAPSHOT
+ 2.0.1-SNAPSHOT
provided
diff --git a/config-editor/config-editor-sync/src/main/java/uk/co/gresearch/siembol/configeditor/sync/service/EnrichmentTablesProviderImpl.java b/config-editor/config-editor-sync/src/main/java/uk/co/gresearch/siembol/configeditor/sync/service/EnrichmentTablesProviderImpl.java
index 23e92d2a7..ea19f3f33 100644
--- a/config-editor/config-editor-sync/src/main/java/uk/co/gresearch/siembol/configeditor/sync/service/EnrichmentTablesProviderImpl.java
+++ b/config-editor/config-editor-sync/src/main/java/uk/co/gresearch/siembol/configeditor/sync/service/EnrichmentTablesProviderImpl.java
@@ -35,6 +35,12 @@ public class EnrichmentTablesProviderImpl implements EnrichmentTablesProvider {
"in the service: {}, enrichment tables value: {}";
private static final String ADD_NEW_EXISTING_TABLE_MSG = "Table with name %s already exists";
private static final String UPDATE_NON_EXISTING_TABLE_MSG = "Table with name %s does not exist";
+ private static final String UPDATE_TABLE_INIT_LOG =
+ "Trying to update enrichment table - name: {}, path: {}, service: {}";
+ private static final String UPDATE_TABLE_COMPLETED_LOG =
+ "Updating enrichment table completed - name: {}, path: {}, service: {}";
+ private static final String UPDATE_TABLE_EXCEPTION_LOG =
+ "Exception {} during updating enrichment table - name: {}, path: {}, service: {}";
private final Map zooKeeperConnectorMap;
private final Map> enrichmentTablesCache;
@@ -115,6 +121,7 @@ private ConfigEditorResult checkServiceName(String name) {
private ConfigEditorResult updateEnrichmentTableInternally(String serviceName, EnrichmentTableDto enrichmentTable,
boolean isNewTable) {
+ LOGGER.info(UPDATE_TABLE_INIT_LOG, enrichmentTable.getName(), enrichmentTable.getPath(), serviceName);
if (enrichmentTable.getName() == null || enrichmentTable.getPath() == null) {
return ConfigEditorResult.fromMessage(BAD_REQUEST, WRONG_TABLE_TO_UPDATE);
}
@@ -149,8 +156,11 @@ private ConfigEditorResult updateEnrichmentTableInternally(String serviceName, E
String updatedTablesStr = ENRICHMENT_TABLES_UPDATE_MSG_WRITER.writeValueAsString(currentTables);
zooKeeperConnectorMap.get(serviceName).setData(updatedTablesStr);
enrichmentTablesCache.get(serviceName).set(updatedTablesStr);
+ LOGGER.info(UPDATE_TABLE_COMPLETED_LOG, enrichmentTable.getName(), enrichmentTable.getPath(), serviceName);
return ConfigEditorResult.fromEnrichmentTables(currentTables.getEnrichmentTables());
} catch (Exception e) {
+ LOGGER.error(UPDATE_TABLE_EXCEPTION_LOG,
+ e, enrichmentTable.getName(), enrichmentTable.getPath(), serviceName);
return ConfigEditorResult.fromException(e);
}
}
diff --git a/config-editor/pom.xml b/config-editor/pom.xml
index 814ae658d..41f40345c 100644
--- a/config-editor/pom.xml
+++ b/config-editor/pom.xml
@@ -11,7 +11,7 @@
uk.co.gresearch.siembol
siembol
- 2.0.0-SNAPSHOT
+ 2.0.1-SNAPSHOT
config-editor-core
diff --git a/deployment/storm-topology-manager/pom.xml b/deployment/storm-topology-manager/pom.xml
index 454340812..030fc019d 100644
--- a/deployment/storm-topology-manager/pom.xml
+++ b/deployment/storm-topology-manager/pom.xml
@@ -9,7 +9,7 @@
uk.co.gresearch.siembol
siembol
- 2.0.0-SNAPSHOT
+ 2.0.1-SNAPSHOT
../../pom.xml
@@ -43,7 +43,7 @@
uk.co.gresearch.siembol
siembol-common
- 2.0.0-SNAPSHOT
+ 2.0.1-SNAPSHOT
org.slf4j
diff --git a/docs/introduction/how-tos/how_to_contribute.md b/docs/introduction/how-tos/how_to_contribute.md
index bf3fc48c6..c37e4600c 100644
--- a/docs/introduction/how-tos/how_to_contribute.md
+++ b/docs/introduction/how-tos/how_to_contribute.md
@@ -7,7 +7,7 @@ How to contribute to the siembol Java project
### Environment
- [Maven](https://maven.apache.org/guides/) - version `3.5+`
-- [Java Development Kit 8](https://jdk.java.net/)
+- [Java Development Kit 13+](https://adoptopenjdk.net/)
### How to compile and install
diff --git a/enriching/enriching-core/pom.xml b/enriching/enriching-core/pom.xml
index 3d57f1e11..1d1a7ece7 100644
--- a/enriching/enriching-core/pom.xml
+++ b/enriching/enriching-core/pom.xml
@@ -11,7 +11,7 @@
uk.co.gresearch.siembol
enriching
- 2.0.0-SNAPSHOT
+ 2.0.1-SNAPSHOT
@@ -35,12 +35,12 @@
uk.co.gresearch.siembol
siembol-common
- 2.0.0-SNAPSHOT
+ 2.0.1-SNAPSHOT
uk.co.gresearch.siembol
alerting-core
- 2.0.0-SNAPSHOT
+ 2.0.1-SNAPSHOT
junit
diff --git a/enriching/enriching-storm/pom.xml b/enriching/enriching-storm/pom.xml
index 956459c6b..68fea121c 100644
--- a/enriching/enriching-storm/pom.xml
+++ b/enriching/enriching-storm/pom.xml
@@ -9,13 +9,13 @@
uk.co.gresearch.siembol
enriching
- 2.0.0-SNAPSHOT
+ 2.0.1-SNAPSHOT
com.google.guava
guava
- 23.0
+ ${storm_guava_version}
com.fasterxml.jackson.core
@@ -67,7 +67,7 @@
uk.co.gresearch.siembol
enriching-core
- 2.0.0-SNAPSHOT
+ 2.0.1-SNAPSHOT
org.slf4j
@@ -256,10 +256,7 @@
maven-compiler-plugin
3.8.1
- true
-
-Xlint:unchecked
- ${java_version}
true
diff --git a/enriching/enriching-storm/src/main/java/uk/co/gresearch/siembol/enrichments/storm/MemoryTableEnrichmentBolt.java b/enriching/enriching-storm/src/main/java/uk/co/gresearch/siembol/enrichments/storm/MemoryTableEnrichmentBolt.java
index d75f0e2b7..32b4901c2 100644
--- a/enriching/enriching-storm/src/main/java/uk/co/gresearch/siembol/enrichments/storm/MemoryTableEnrichmentBolt.java
+++ b/enriching/enriching-storm/src/main/java/uk/co/gresearch/siembol/enrichments/storm/MemoryTableEnrichmentBolt.java
@@ -5,6 +5,7 @@
import com.fasterxml.jackson.databind.ObjectReader;
import org.apache.commons.lang3.exception.ExceptionUtils;
+import org.apache.commons.lang3.tuple.ImmutablePair;
import org.apache.commons.lang3.tuple.Pair;
import org.apache.storm.task.OutputCollector;
import org.apache.storm.task.TopologyContext;
@@ -34,9 +35,8 @@
import java.lang.invoke.MethodHandles;
import java.util.List;
import java.util.Map;
-import java.util.HashMap;
import java.util.Optional;
-import java.util.concurrent.atomic.AtomicReference;
+import java.util.concurrent.ConcurrentHashMap;
public class MemoryTableEnrichmentBolt extends BaseRichBolt {
private static final long serialVersionUID = 1L;
@@ -51,14 +51,16 @@ public class MemoryTableEnrichmentBolt extends BaseRichBolt {
private static final String TABLES_UPDATES_COMPLETED = "Updating enrichment tables completed";
private static final String TABLES_UPDATE_MESSAGE_FORMAT = "Updating enrichment tables: %s";
private static final String TABLES_UPDATE_EXCEPTION_FORMAT = "Exception during update of enrichment tables: {}";
+ private static final String TABLE_UPDATE_EXCEPTION_FORMAT = "Exception during update of an enrichment table: {} " +
+ "path: {}, exception : {}";
private static final String TABLE_INIT_START = "Trying to initialise enrichment table: {} from the file: {}";
private static final String TABLE_INIT_COMPLETED = "Initialisation of enrichment table: {} completed";
private static final String TABLES_UPDATE_EMPTY_TABLES = "No enrichment tables provided";
private static final String INIT_EXCEPTION_MSG_FORMAT = "Exception during loading memory table: %s";
private static final String INVALID_TYPE_IN_TUPLES = "Invalid type in tuple provided";
- private final AtomicReference