NIFI-10602: Fix GetHubSpot and GetShopify state handling on NiFi restart

This closes #6495.

Signed-off-by: Peter Turcsanyi <turcsanyi@apache.org>
This commit is contained in:
Lehel Boér 2022-10-07 19:26:43 +02:00 committed by Peter Turcsanyi
parent da0fb234d6
commit ad08e8befc
No known key found for this signature in database
GPG Key ID: 55A813F1C3E553DC
2 changed files with 2 additions and 2 deletions

View File

@ -201,7 +201,7 @@ public class GetHubSpot extends AbstractProcessor {
@Override
public void onPropertyModified(final PropertyDescriptor descriptor, final String oldValue, final String newValue) {
if (OBJECT_TYPE.equals(descriptor) || IS_INCREMENTAL.equals(descriptor)) {
if (isConfigurationRestored() && (OBJECT_TYPE.equals(descriptor) || IS_INCREMENTAL.equals(descriptor))) {
isObjectTypeModified = true;
}
}

View File

@ -231,7 +231,7 @@ public class GetShopify extends AbstractProcessor {
private volatile boolean isResetState;
public void onPropertyModified(final PropertyDescriptor descriptor, final String oldValue, final String newValue) {
if (RESET_STATE_PROPERTY_NAMES.contains(descriptor.getName())) {
if (isConfigurationRestored() && RESET_STATE_PROPERTY_NAMES.contains(descriptor.getName())) {
isResetState = true;
}
}