apex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chandnisingh <...@git.apache.org>
Subject [GitHub] incubator-apex-malhar pull request: APEXMALHAR-2081 removed HDFS s...
Date Mon, 09 May 2016 21:01:33 GMT
Github user chandnisingh commented on a diff in the pull request:

    https://github.com/apache/incubator-apex-malhar/pull/267#discussion_r62572337
  
    --- Diff: library/src/main/java/com/datatorrent/lib/io/fs/FileSplitterInput.java ---
    @@ -266,6 +266,7 @@ public TimeBasedDirectoryScanner getScanner()
       public static class TimeBasedDirectoryScanner implements Runnable, Component<Context.OperatorContext>
       {
         private static long DEF_SCAN_INTERVAL_MILLIS = 5000;
    +    private static String FILE_BEING_COPIED = "_COPYING_";
    --- End diff --
    
    
    1. Ignore regex is a property that is a property is set by the user so it can be changed
by the user anytime.
    IMO this is a clean/explicit way of doing it.  
    
    2. That is correct. However it is highly unlikely that on other file systems, the  actual
files are called something that ends with _COPYING_. If its important I will make this run
for only HDFS



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

Mime
View raw message