NIFI-730: reordered states for drop flowfile request

This commit is contained in:
Mark Payne 2015-10-14 16:32:39 -04:00
parent 98a04eec74
commit 09a3f6dadd
2 changed files with 4 additions and 4 deletions

View File

@ -23,10 +23,10 @@ package org.apache.nifi.controller.queue;
public enum DropFlowFileState {
WAITING_FOR_LOCK("Waiting for Destination Component to complete its action"),
DROPPING_ACTIVE_FLOWFILES("Dropping FlowFiles from queue"),
COMPLETE("Completed Successfully"),
DROPPING_FLOWFILES("Dropping FlowFiles from queue"),
FAILURE("Failed"),
CANCELED("Cancelled by User");
CANCELED("Canceled by User"),
COMPLETE("Completed Successfully");
private final String description;

View File

@ -944,7 +944,7 @@ public final class StandardFlowFileQueue implements FlowFileQueue {
public void run() {
writeLock.lock();
try {
dropRequest.setState(DropFlowFileState.DROPPING_ACTIVE_FLOWFILES);
dropRequest.setState(DropFlowFileState.DROPPING_FLOWFILES);
logger.debug("For DropFlowFileRequest {}, original size is {}", requestIdentifier, getQueueSize());
dropRequest.setOriginalSize(getQueueSize());