Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-17013

SaslZkACLProviderTestMethod.testSaslZkACLProvider fails consistently on MAcOSX -- evidently due to SocketPermission

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • main (10.0), 9.5
    • Tests
    • None

    Description

      SaslZkACLProviderTestMethod.testSaslZkACLProvider seems to have a fairly consistent 5% failure rate on jenkins - but all of the recent failures have been from thetaphi's Solr-main-MacOSX job.

      The explicit cause of failure is...

      TimeoutException: Could not connect to ZooKeeper localhost:61482/solr within 15000 ms
      

      But if you look at the logs you'll see...

        2> 26982 ERROR (TEST-SaslZkACLProviderTest.testSaslZkACLProvider-seed#[D44E8526365B409]-SendThread(localhost:61482)) [] o.a.z.ClientCnxnSocketNIO Unable to open socket to localhost/[fe80:0:0:0:0:0:0:1%1]:61482
        2> 26982 WARN  (TEST-SaslZkACLProviderTest.testSaslZkACLProvider-seed#[D44E8526365B409]-SendThread(localhost:61482)) [] o.a.z.ClientCnxn Session 0x0 for server localhost/[fe80:0:0:0:0:0:0:1%1]:61482, Closing socket connection. Attempting reconnect except it is a SessionExpiredException.
        2>           => java.security.AccessControlException: access denied ("java.net.SocketPermission" "[fe80:0:0:0:0:0:0:1%1]:61482" "connect,resolve")
        2>    at java.base/java.security.AccessControlContext.checkPermission(AccessControlContext.java:485)
        2> java.security.AccessControlException: access denied ("java.net.SocketPermission" "[fe80:0:0:0:0:0:0:1%1]:61482" "connect,resolve")
        2>    at java.security.AccessControlContext.checkPermission(AccessControlContext.java:485) ~[?:?]
        2>    at java.security.AccessController.checkPermission(AccessController.java:1068) ~[?:?]
        2>    at java.lang.SecurityManager.checkPermission(SecurityManager.java:416) ~[?:?]
        2>    at java.lang.SecurityManager.checkConnect(SecurityManager.java:919) ~[?:?]
        2>    at sun.nio.ch.SocketChannelImpl.checkRemote(SocketChannelImpl.java:820) ~[?:?]
        2>    at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:839) ~[?:?]
        2>    at org.apache.zookeeper.ClientCnxnSocketNIO.registerAndConnect(ClientCnxnSocketNIO.java:260) ~[zookeeper-3.9.0.jar:3.9.0]
      

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            krisden Kevin Risden
            hossman Chris M. Hostetter
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m

                Slack

                  Issue deployment