Skip to content

Commit

Permalink
Ensures cConf properties are reloaded when DefaultSystemProvisionerCo…
Browse files Browse the repository at this point in the history
…ntext is initialized
  • Loading branch information
masoud-io committed Oct 10, 2023
1 parent a49b945 commit 9f74993
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class DefaultSystemProvisionerContext implements ProvisionerSystemContext
private final String cdapVersion;
private final Map<String, Lock> locks;
private final long confReloadInterval;
private long lastConfReloadTime = System.currentTimeMillis();
private long lastConfReloadTime = 0;

Check warning on line 42 in cdap-app-fabric/src/main/java/io/cdap/cdap/internal/provision/DefaultSystemProvisionerContext.java

View workflow job for this annotation

GitHub Actions / Checkstyle

com.puppycrawl.tools.checkstyle.checks.coding.ExplicitInitializationCheck

Variable 'lastConfReloadTime' explicitly initialized to '0' (default value for its type).

Check warning on line 42 in cdap-app-fabric/src/main/java/io/cdap/cdap/internal/provision/DefaultSystemProvisionerContext.java

View workflow job for this annotation

GitHub Actions / Checkstyle

com.puppycrawl.tools.checkstyle.checks.coding.ExplicitInitializationCheck

Variable 'lastConfReloadTime' explicitly initialized to '0' (default value for its type).

DefaultSystemProvisionerContext(CConfiguration cConf, String provisionerName) {
this.prefix = String.format("%s%s.", Constants.Provisioner.SYSTEM_PROPERTY_PREFIX,
Expand Down

0 comments on commit 9f74993

Please sign in to comment.