Skip to content

Commit

Permalink
NIFI-2948 Fix DynamoDB Cached Credentials
Browse files Browse the repository at this point in the history
This closes apache#1182
  • Loading branch information
jvwing authored and olegz committed Nov 4, 2016
1 parent 0841f14 commit 50010fb
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
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;
Expand Down Expand Up @@ -335,4 +336,9 @@ protected boolean isHashKeyValueConsistent(String hashKeyName, Object hashKeyVal
return isConsistent;

}

@OnStopped
public void onStopped() {
this.dynamoDB = null;
}
}

0 comments on commit 50010fb

Please sign in to comment.