Github user cestella commented on a diff in the pull request:
https://github.com/apache/metron/pull/596#discussion_r117392489
--- Diff:
metron-platform/metron-writer/src/main/java/org/apache/metron/writer/hdfs/HdfsWriter.java
---
@@ -85,7 +85,17 @@ public void init(Map stormConfig, TopologyContext
topologyContext, WriterConfigu
this.fileNameFormat.prepare(stormConfig,topologyContext);
if(syncPolicy != null) {
//if the user has specified the sync policy, we don't want to
override their wishes.
- syncPolicyCreator = (source,config) -> syncPolicy;
+ syncPolicyCreator = (source,config) -> {
+ try {
--- End diff --
yeah, it's a bit black magicky. I fleshed out that comment a fair amount
more.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---