Skip to content

Commit 1c0bab1

Browse files
authored
Remove PERMIT_HANDSHAKES_FROM_INCOMPATIBLE_BUILDS_KEY block (#113041)
This sysprop has been forbidden for all of 8.x, we don't need to even think about it in 9.x. This commit removes it.
1 parent 452a4d2 commit 1c0bab1

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

server/src/main/java/org/elasticsearch/transport/TransportService.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
import org.elasticsearch.core.Predicates;
4444
import org.elasticsearch.core.Releasable;
4545
import org.elasticsearch.core.TimeValue;
46-
import org.elasticsearch.core.UpdateForV9;
4746
import org.elasticsearch.node.NodeClosedException;
4847
import org.elasticsearch.node.ReportingService;
4948
import org.elasticsearch.tasks.Task;
@@ -1752,15 +1751,6 @@ Releasable withRef() {
17521751
}
17531752
}
17541753

1755-
static {
1756-
// Ensure that this property, introduced and immediately deprecated in 7.11, is not used in 8.x
1757-
@UpdateForV9 // we can remove this whole block in v9
1758-
final String PERMIT_HANDSHAKES_FROM_INCOMPATIBLE_BUILDS_KEY = "es.unsafely_permit_handshake_from_incompatible_builds";
1759-
if (System.getProperty(PERMIT_HANDSHAKES_FROM_INCOMPATIBLE_BUILDS_KEY) != null) {
1760-
throw new IllegalArgumentException("system property [" + PERMIT_HANDSHAKES_FROM_INCOMPATIBLE_BUILDS_KEY + "] must not be set");
1761-
}
1762-
}
1763-
17641754
private record UnregisterChildTransportResponseHandler<T extends TransportResponse>(
17651755
Releasable unregisterChildNode,
17661756
TransportResponseHandler<T> handler,

0 commit comments

Comments
 (0)