Skip to content

Commit

Permalink
修改 Bootstrap! 注释BootstrapChecks, 因为会报错: : Unknown codebases xxx in po…
Browse files Browse the repository at this point in the history
…licy file
  • Loading branch information
jiangyunpeng committed Aug 8, 2024
1 parent 3e5a16c commit 6870beb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions server/src/main/java/org/elasticsearch/bootstrap/Bootstrap.java
Original file line number Diff line number Diff line change
Expand Up @@ -207,18 +207,18 @@ public void run() {
IfConfig.logIfNecessary();

// install SM after natives, shutdown hooks, etc.
try {
Security.configure(environment, BootstrapSettings.SECURITY_FILTER_BAD_DEFAULTS_SETTING.get(settings));
} catch (IOException | NoSuchAlgorithmException e) {
throw new BootstrapException(e);
}
// try {
// Security.configure(environment, BootstrapSettings.SECURITY_FILTER_BAD_DEFAULTS_SETTING.get(settings));
// } catch (IOException | NoSuchAlgorithmException e) {
// throw new BootstrapException(e);
// }

node = new Node(environment) {
@Override
protected void validateNodeBeforeAcceptingRequests(
final BootstrapContext context,
final BoundTransportAddress boundTransportAddress, List<BootstrapCheck> checks) throws NodeValidationException {
BootstrapChecks.check(context, boundTransportAddress, checks);
//BootstrapChecks.check(context, boundTransportAddress, checks);
}
};
}
Expand Down

0 comments on commit 6870beb

Please sign in to comment.