NIFI-1586 Removed check for distributed ZK quorum before starting the DatadirCleanupMananger to enable autopurge during standalone ZK server usage. This closes #2001

This commit is contained in:
Jeff Storck 2017-07-07 18:49:59 -04:00 committed by Matt Gilman
parent 07a6499dae
commit 58fc5f24b8
No known key found for this signature in database
GPG Key ID: DF61EC19432AEE37
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ public class ZooKeeperStateServer extends ZooKeeperServerMain {
return;
}
if (quorumPeerConfig.isDistributed() && quorumPeerConfig.getPurgeInterval() > 0) {
if (quorumPeerConfig.getPurgeInterval() > 0) {
datadirCleanupManager = new DatadirCleanupManager(quorumPeerConfig
.getDataDir(), quorumPeerConfig.getDataLogDir(), quorumPeerConfig
.getSnapRetainCount(), quorumPeerConfig.getPurgeInterval());