mirror of https://github.com/apache/nifi.git
NIFI-730: reordered states for drop flowfile request
This commit is contained in:
parent
98a04eec74
commit
09a3f6dadd
|
@ -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;
|
||||
|
||||
|
|
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in New Issue