Github user justinleet commented on a diff in the pull request:

    https://github.com/apache/metron/pull/585#discussion_r116739444
  
    --- Diff: 
metron-platform/metron-pcap-backend/src/main/java/org/apache/metron/spout/pcap/PartitionHDFSWriter.java
 ---
    @@ -102,14 +106,43 @@ public void sync(FSDataOutputStream input) throws 
IOException {
       private SyncHandler syncHandler;
       private long batchStartTime;
       private long numWritten;
    +  private Configuration fsConfig = new Configuration();
     
       public PartitionHDFSWriter(String topic, int partition, String uuid, 
HDFSWriterConfig config) {
         this.topic = topic;
         this.partition = partition;
         this.uuid = uuid;
         this.config = config;
    +
         try {
    -      this.fs = FileSystem.get(new Configuration());
    +      int replicationFactor = config.getReplicationFactor();
    +      if (replicationFactor != -1) {
    --- End diff --
    
    Could we make this > 0?  Nothing 0 or less makes sense to actually use.  
Might also make sense to log any replication factor actually used, for 
debugging.


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to