diff --git a/elasticsearch/x-pack/license-plugin/src/main/java/org/elasticsearch/license/plugin/core/LicensesService.java b/elasticsearch/x-pack/license-plugin/src/main/java/org/elasticsearch/license/plugin/core/LicensesService.java index f8be427dc60..c6757bdbf79 100644 --- a/elasticsearch/x-pack/license-plugin/src/main/java/org/elasticsearch/license/plugin/core/LicensesService.java +++ b/elasticsearch/x-pack/license-plugin/src/main/java/org/elasticsearch/license/plugin/core/LicensesService.java @@ -141,7 +141,7 @@ public class LicensesService extends AbstractLifecycleComponent this.clusterService = clusterService; this.threadPool = threadPool; this.transportService = transportService; - if (DiscoveryNode.masterNode(settings)) { + if (DiscoveryNode.isMasterNode(settings)) { transportService.registerRequestHandler(REGISTER_TRIAL_LICENSE_ACTION_NAME, TransportRequest.Empty::new, ThreadPool.Names.SAME, new RegisterTrialLicenseRequestHandler()); }