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/03/23 18:28:00 UTC

[jira] [Commented] (GEODE-7806) CI Failure: org.apache.geode.cache.client.internal.CacheServerSSLConnectionDUnitTest > testCacheServerSSL[1] FAILED

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

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

Commit 97a0dc87980f1c2c42351c84ec32a2411d292251 in geode's branch refs/heads/feature/GEODE-6008b from Bruce Schuchardt
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=97a0dc8 ]

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.


> CI Failure: org.apache.geode.cache.client.internal.CacheServerSSLConnectionDUnitTest > testCacheServerSSL[1] FAILED
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: GEODE-7806
>                 URL: https://issues.apache.org/jira/browse/GEODE-7806
>             Project: Geode
>          Issue Type: Bug
>          Components: membership
>            Reporter: Anilkumar Gingade
>            Priority: Major
>
> org.apache.geode.cache.client.internal.CacheServerSSLConnectionDUnitTest > testCacheServerSSL[1] 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 2337
>     [fatal 2020/02/18 22:01:03.293 GMT <unused p2p reader> tid=178] Uncaught exception in thread Thread[unused p2p reader,5,main]
>     org.apache.geode.distributed.DistributedSystemDisconnectedException: Distribution manager on 172.17.0.19(1:locator)<ec><v0>:41001 started at Tue Feb 18 22:00:52 GMT 2020: Message distribution has terminated
>     	at org.apache.geode.distributed.internal.ClusterDistributionManager$Stopper.generateCancelledException(ClusterDistributionManager.java:2874)
>     	at org.apache.geode.internal.tcp.TCPConduit$Stopper.generateCancelledException(TCPConduit.java:986)
>     	at org.apache.geode.CancelCriterion.checkCancelInProgress(CancelCriterion.java:83)
>     	at org.apache.geode.internal.tcp.Connection.readMessages(Connection.java:1690)
>     	at org.apache.geode.internal.tcp.Connection.run(Connection.java:1472)
>     	at java.base/java.lang.Thread.run(Thread.java:834)



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