[
https://issues.apache.org/jira/browse/GEODE-8800?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17259973#comment-17259973
]
ASF GitHub Bot commented on GEODE-8800:
---------------------------------------
kirklund commented on a change in pull request #5879:
URL: https://github.com/apache/geode/pull/5879#discussion_r552895539
##########
File path:
geode-core/src/integrationTest/java/org/apache/geode/internal/SSLConfigJUnitTest.java
##########
@@ -153,6 +156,66 @@ public static void initializeSSLMaps() {
@After
public void tearDownTest() {}
+ @Test
+ public void slowerReceiverShouldThrowExceptionWhenEnabledClusterTLS() throws
Exception {
+ Properties props = new Properties();
+ props.setProperty(SSL_ENABLED_COMPONENTS, "cluster");
+ props.setProperty(ASYNC_DISTRIBUTION_TIMEOUT, "1");
+
+ try {
Review comment:
I recommend using AssertJ catchThrowable for these expected exceptions.
It would end up looking like:
```
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.catchThrowable;
Throwable thrown = catchThrowable(() -> new DistributionConfigImpl(props));
assertThat(thrown)
.isInstanceOf(IllegalArgumentException.class)
.hasMessageContaining("async-distribution-timeout greater than 0 is not
allowed with cluster TLS/SSL.");
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> SSL is supposed to disable slower receiver feature
> --------------------------------------------------
>
> Key: GEODE-8800
> URL: https://issues.apache.org/jira/browse/GEODE-8800
> Project: Geode
> Issue Type: Bug
> Reporter: Xiaojian Zhou
> Assignee: Xiaojian Zhou
> Priority: Major
> Labels: GeodeOperationAPI, pull-request-available
>
> According to document, slow receiver options are disabled in systems using
> SSL
> (https://geode.apache.org/docs/guide/12/managing/monitor_tune/slow_receivers_managing.html).
>
> But TLS tests found it did not. If the cluster specified
> async-distribution-timeout to 1 aggressively, it will cause SSL test to hang.
> When distribution took longer than async-distribution-timeout, even d-ack
> region will be using async message queue, which conflicts with SSL.
>
> There're 2 alternatives to fix:
> (1) if SSL is enabled, and detected asyncDistributionTimeout>0, throw
> exception.
> (2) if SSL is enabled, force asyncDistributionTimeout to be 0 even it
> configed >0.
> We decide to take alternative-(1).
--
This message was sent by Atlassian Jira
(v8.3.4#803005)