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 {
|
public enum DropFlowFileState {
|
||||||
|
|
||||||
WAITING_FOR_LOCK("Waiting for Destination Component to complete its action"),
|
WAITING_FOR_LOCK("Waiting for Destination Component to complete its action"),
|
||||||
DROPPING_ACTIVE_FLOWFILES("Dropping FlowFiles from queue"),
|
DROPPING_FLOWFILES("Dropping FlowFiles from queue"),
|
||||||
COMPLETE("Completed Successfully"),
|
|
||||||
FAILURE("Failed"),
|
FAILURE("Failed"),
|
||||||
CANCELED("Cancelled by User");
|
CANCELED("Canceled by User"),
|
||||||
|
COMPLETE("Completed Successfully");
|
||||||
|
|
||||||
private final String description;
|
private final String description;
|
||||||
|
|
||||||
|
|
|
@ -944,7 +944,7 @@ public final class StandardFlowFileQueue implements FlowFileQueue {
|
||||||
public void run() {
|
public void run() {
|
||||||
writeLock.lock();
|
writeLock.lock();
|
||||||
try {
|
try {
|
||||||
dropRequest.setState(DropFlowFileState.DROPPING_ACTIVE_FLOWFILES);
|
dropRequest.setState(DropFlowFileState.DROPPING_FLOWFILES);
|
||||||
logger.debug("For DropFlowFileRequest {}, original size is {}", requestIdentifier, getQueueSize());
|
logger.debug("For DropFlowFileRequest {}, original size is {}", requestIdentifier, getQueueSize());
|
||||||
dropRequest.setOriginalSize(getQueueSize());
|
dropRequest.setOriginalSize(getQueueSize());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue