NIFI-2948 Fix DynamoDB Cached Credentials

This closes #1182
This commit is contained in:
James Wing 2016-11-03 20:24:19 -07:00 committed by Oleg Zhurakousky
parent 0841f14c18
commit 50010fb340
1 changed files with 6 additions and 0 deletions

View File

@ -28,6 +28,7 @@ import java.util.Map;
import java.util.Set;
import org.apache.commons.lang3.StringUtils;
import org.apache.nifi.annotation.lifecycle.OnStopped;
import org.apache.nifi.components.AllowableValue;
import org.apache.nifi.components.PropertyDescriptor;
import org.apache.nifi.flowfile.FlowFile;
@ -335,4 +336,9 @@ public abstract class AbstractDynamoDBProcessor extends AbstractAWSCredentialsPr
return isConsistent;
}
@OnStopped
public void onStopped() {
this.dynamoDB = null;
}
}