Skip to content

Commit

Permalink
Fixes tests running in SSL only mode
Browse files Browse the repository at this point in the history
Signed-off-by: Darshit Chanpura <[email protected]>
  • Loading branch information
DarshitChanpura committed Jan 10, 2025
1 parent 289659f commit 512c1a8
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2163,8 +2163,11 @@ public void onNodeStarted(DiscoveryNode localNode) {
cr.initOnNodeStart();
}

// create resource sharing index if absent
rmr.createResourceSharingIndexIfAbsent();
// rmr will be null when sec plugin is disabled or is in SSLOnly mode, hence rmr will not be instantiated
if (rmr != null) {
// create resource sharing index if absent
rmr.createResourceSharingIndexIfAbsent();
}

final Set<ModuleInfo> securityModules = ReflectionHelper.getModulesLoaded();
log.info("{} OpenSearch Security modules loaded so far: {}", securityModules.size(), securityModules);
Expand Down

0 comments on commit 512c1a8

Please sign in to comment.