[ 
https://issues.apache.org/jira/browse/NIFI-5516?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16637022#comment-16637022
 ] 

ASF GitHub Bot commented on NIFI-5516:
--------------------------------------

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

    https://github.com/apache/nifi/pull/2947#discussion_r222330395
  
    --- Diff: 
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/FileSystemSwapManager.java
 ---
    @@ -70,9 +71,8 @@
      */
     public class FileSystemSwapManager implements FlowFileSwapManager {
     
    -    public static final int MINIMUM_SWAP_COUNT = 10000;
    -    private static final Pattern SWAP_FILE_PATTERN = 
Pattern.compile("\\d+-.+\\.swap");
    -    private static final Pattern TEMP_SWAP_FILE_PATTERN = 
Pattern.compile("\\d+-.+\\.swap\\.part");
    +    private static final Pattern SWAP_FILE_PATTERN = 
Pattern.compile("\\d+-.+(\\..*?)?\\.swap");
    +    private static final Pattern TEMP_SWAP_FILE_PATTERN = 
Pattern.compile("\\d+-.+(\\..*?)?\\.swap\\.part");
    --- End diff --
    
    I don't believe the extra ? is necessary. Either would likely work. I have, 
however, tested and verified the one that is in the PR. The point of changing 
it was that the naming convention for swap files changed from 
"<timestamp>-<uuid>.swap" to "<timestamp>-<uuid>.<partition_name>.swap". The 
"<partition_name>." is optional in order to maintain backward compatibility in 
case there are swap files created from a previous version of nifi.


> Allow data in a Connection to be Load-Balanced across cluster
> -------------------------------------------------------------
>
>                 Key: NIFI-5516
>                 URL: https://issues.apache.org/jira/browse/NIFI-5516
>             Project: Apache NiFi
>          Issue Type: New Feature
>          Components: Core Framework
>            Reporter: Mark Payne
>            Assignee: Mark Payne
>            Priority: Major
>
> Allow user to configure a Connection to be load balanced across the cluster. 
> For more information, see Feature Proposal at 
> https://cwiki.apache.org/confluence/display/NIFI/Load-Balanced+Connections



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to