From b7523bb9748660400c96bdf6608cb5dd9c06edc1 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Sun, 29 Nov 2015 16:12:52 -0500 Subject: [PATCH] Add workaround for JDK-6427854 See e.g. http://build-us-00.elastic.co/job/es_feature_ingest/2831/consoleFull The bug can still happen, so we should let netty do this workaround --- .../resources/org/elasticsearch/bootstrap/security.policy | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/src/main/resources/org/elasticsearch/bootstrap/security.policy b/core/src/main/resources/org/elasticsearch/bootstrap/security.policy index 1b4fcf17255..b620a32fd0f 100644 --- a/core/src/main/resources/org/elasticsearch/bootstrap/security.policy +++ b/core/src/main/resources/org/elasticsearch/bootstrap/security.policy @@ -80,6 +80,10 @@ grant { // TODO: look into this and decide if users should simply set the actual sysprop?! permission java.util.PropertyPermission "org.jboss.netty.epollBugWorkaround", "write"; + // Netty SelectorUtil wants to change this, because of https://bugs.openjdk.java.net/browse/JDK-6427854 + // the bug says it only happened rarely, and that its fixed, but apparently it still happens rarely! + permission java.util.PropertyPermission "sun.nio.ch.bugLevel", "write"; + // needed by lucene SPI currently permission java.lang.RuntimePermission "getClassLoader";