From bf4d249221f872e916a326a6cb6ac0b4509d2bd0 Mon Sep 17 00:00:00 2001 From: Areek Zillur Date: Fri, 31 Oct 2014 12:58:28 -0400 Subject: [PATCH] minor doc fix Original commit: elastic/x-pack-elasticsearch@88b9f7a13c2cf672e6e5be96b160b829f126df7f --- .../org/elasticsearch/license/plugin/core/LicensesService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/elasticsearch/license/plugin/core/LicensesService.java b/src/main/java/org/elasticsearch/license/plugin/core/LicensesService.java index c857d361d7b..eefc638cc2e 100644 --- a/src/main/java/org/elasticsearch/license/plugin/core/LicensesService.java +++ b/src/main/java/org/elasticsearch/license/plugin/core/LicensesService.java @@ -60,6 +60,7 @@ import static org.elasticsearch.license.core.ESLicenses.reduceAndMap; * - calls {@link #notifyFeatures(LicensesMetaData)} to notify all registered feature(s) * - if there is any license(s) with a future expiry date in the current cluster state: * - schedules a delayed {@link LicensingClientNotificationJob} on the MIN of all the expiry dates of all the registered feature(s) + * - 100ms is added to the delay to make sure that the expiring license has actually expired * * The {@link LicensingClientNotificationJob} calls {@link #notifyFeaturesAndScheduleNotification(LicensesMetaData)} to schedule * another delayed {@link LicensingClientNotificationJob} as stated above. It is a no-op in case of a global block on @@ -444,7 +445,7 @@ public class LicensesService extends AbstractLifecycleComponent /** * Calls {@link #notifyFeatures(LicensesMetaData)} with currentLicensesMetaData - * if needed, also schedules the earliest expiry notification for registered feature(s) + * and schedules the earliest expiry (if any) notification for registered feature(s) */ private void notifyFeaturesAndScheduleNotification(LicensesMetaData currentLicensesMetaData) { long nextScheduleFrequency = notifyFeatures(currentLicensesMetaData);