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

    https://github.com/apache/nifi/pull/1202#discussion_r87804314
  
    --- Diff: 
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/FileSystemSwapManager.java
 ---
    @@ -210,30 +215,36 @@ public boolean accept(final File dir, final String 
name) {
                 // "<timestamp>-<queue identifier>-<random uuid>.swap". If we 
have two dashes, then we can just check if the queue ID is equal
                 // to the id of the queue given and if not we can just move on.
                 final String[] splits = swapFile.getName().split("-");
    -            if (splits.length == 3) {
    -                final String queueIdentifier = splits[1];
    -                if 
(!queueIdentifier.equals(flowFileQueue.getIdentifier())) {
    -                    continue;
    +            if (splits.length > 6) {
    --- End diff --
    
    Yes - this was broken before. It was never noticed because it was a simple 
performance tweak but i noticed this as I was stepping through code.


---
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.
---

Reply via email to