You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2020/11/06 16:46:01 UTC

[jira] [Commented] (GEODE-7873) CI Failure: DeployJarWithSSLDUnitTest.deployJarWithMultipleLocators

    [ https://issues.apache.org/jira/browse/GEODE-7873?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17227504#comment-17227504 ] 

ASF subversion and git services commented on GEODE-7873:
--------------------------------------------------------

Commit 3a89ae5448df7b534c82fa594b195057a974d85c in geode's branch refs/heads/support/1.12 from Bruce Schuchardt
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=3a89ae5 ]

GEODE-6008: CI Failure: ClientServerHostNameVerificationDistributedTe… (#4839)

* GEODE-6008: CI Failure: ClientServerHostNameVerificationDistributedTest.expectConnectionFailureWhenNoHostNameInServerKey failed

The "Message distribution has terminated" failure is caused by an
unreported NullPointerException in a residual reader thread introduced
in the fix for GEODE-7727.  That fix caused a thread to say alive in a
peer-to-peer tcp/ip Connection in order to clean up the receiving side
of a socket.  The Connection shutdown method close() method, however,
releases the Connection's input buffer and nulls out the field.  The
reader thread then threw an NPE that was caught and caused the
"Message distribution has terminated" message, which is picked up as a
suspect string by the testing infrastructure.

This problem is also seen in GEODE-7894, GEODE-7871, GEODE-7873 and
GEODE-7806.

The fix is to record the fact that a residual reader thread exists and
avoid releasing the Connection's input buffer when the connection is
closed.  This lets the reader thread do the cleanup.

While testing the fix I found that the NioSslEngine was throwing an
IllegalStateException when the reader thread tried to use it in this
same situation.  This exception wasn't being caught and caused more
suspect strings to be logged.  I've changed this to a checked exception
that is already handled by the reader thread.

ClientServerHostNameVerificationDistributedTest also wasn't working on
my Mac due to its /etc/hosts configuration.  I changed the test to allow
the IP address selected by LocalHostUtil to be a valid client/server
address for the SSL certificates it generates.

* fixed failing test due to change in exceptions in NioSslEngine

(cherry picked from commit 1dfc496da34916297258b881c5606944d26bfb8b)


> CI Failure: DeployJarWithSSLDUnitTest.deployJarWithMultipleLocators
> -------------------------------------------------------------------
>
>                 Key: GEODE-7873
>                 URL: https://issues.apache.org/jira/browse/GEODE-7873
>             Project: Geode
>          Issue Type: Bug
>            Reporter: Ivan Godwin
>            Priority: Major
>             Fix For: 1.13.0
>
>
> DeployJarWithSSLDUnitTest > deployJarWithMultipleLocators failed with the following output:
> {code:java}
> org.apache.geode.management.internal.configuration.DeployJarWithSSLDUnitTest > deployJarWithMultipleLocators FAILED    java.lang.AssertionError: Suspicious strings were written to the log during this run.    Fix the strings or use IgnoredException.addIgnoredException to ignore.    -----------------------------------------------------------------------    Found suspect string in log4j at line 1966
>     [fatal 2020/03/11 17:43:42.352 GMT <unused p2p reader> tid=82] Uncaught exception in thread Thread[unused p2p reader,5,RMI Runtime]    org.apache.geode.distributed.DistributedSystemDisconnectedException: Distribution manager on 172.17.0.9(server-2:123)<v2>:41002 started at Wed Mar 11 17:43:37 GMT 2020: Message distribution has terminated    	at org.apache.geode.distributed.internal.ClusterDistributionManager$Stopper.generateCancelledException(ClusterDistributionManager.java:2872)    	at org.apache.geode.internal.tcp.TCPConduit$Stopper.generateCancelledException(TCPConduit.java:1004)    	at org.apache.geode.CancelCriterion.checkCancelInProgress(CancelCriterion.java:83)    	at org.apache.geode.internal.tcp.Connection.readMessages(Connection.java:1666)    	at org.apache.geode.internal.tcp.Connection.run(Connection.java:1446)    	at java.lang.Thread.run(Thread.java:748)
>     -----------------------------------------------------------------------    Found suspect string in log4j at line 1975
>     [fatal 2020/03/11 17:43:42.362 GMT <unused p2p reader> tid=65] Uncaught exception in thread Thread[unused p2p reader,5,RMI Runtime]    org.apache.geode.distributed.DistributedSystemDisconnectedException: Distribution manager on 172.17.0.9(server-2:123)<v2>:41002 started at Wed Mar 11 17:43:37 GMT 2020: Message distribution has terminated    	at org.apache.geode.distributed.internal.ClusterDistributionManager$Stopper.generateCancelledException(ClusterDistributionManager.java:2872)    	at org.apache.geode.internal.tcp.TCPConduit$Stopper.generateCancelledException(TCPConduit.java:1004)    	at org.apache.geode.CancelCriterion.checkCancelInProgress(CancelCriterion.java:83)    	at org.apache.geode.internal.tcp.Connection.readMessages(Connection.java:1666)    	at org.apache.geode.internal.tcp.Connection.run(Connection.java:1446)    	at java.lang.Thread.run(Thread.java:748)
> {code}
> https://concourse.apachegeode-ci.info/teams/main/pipelines/apache-develop-main/jobs/DistributedTestOpenJDK8/builds/1637



--
This message was sent by Atlassian Jira
(v8.3.4#803005)