Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-8220

JDK bug prevents clean shutdown on OSX with Java 1.8.0_20

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 2.2.1, 3.0 alpha 1
    • None
    • None
    • Normal

    Description

      Clean shutdown on OSX with Java 1.8.0_20 does not work due to JDK bug 8050499 fixed for Java 9.

      Supplied patch provides a (very dirty) workaround to (hopefully) allow shutdown.

      Exception during shutdown looks like this:

      ERROR 22:23:15 Fatal exception in thread Thread[StorageServiceShutdownHook,5,main]
      java.io.IOError: java.io.IOException: Unknown error: 316
      	at org.apache.cassandra.net.MessagingService.shutdown(MessagingService.java:721) ~[trunk/na]
      	at org.apache.cassandra.service.StorageService$1.runMayThrow(StorageService.java:553) ~[trunk/na]
      	at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28) ~[trunk/na]
      	at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_20]
      Caused by: java.io.IOException: Unknown error: 316
      	at sun.nio.ch.NativeThread.signal(Native Method) ~[na:1.8.0_20]
      	at sun.nio.ch.ServerSocketChannelImpl.implCloseSelectableChannel(ServerSocketChannelImpl.java:283) ~[na:1.8.0_20]
      	at java.nio.channels.spi.AbstractSelectableChannel.implCloseChannel(AbstractSelectableChannel.java:234) ~[na:1.8.0_20]
      	at java.nio.channels.spi.AbstractInterruptibleChannel.close(AbstractInterruptibleChannel.java:115) ~[na:1.8.0_20]
      	at sun.nio.ch.ServerSocketAdaptor.close(ServerSocketAdaptor.java:137) ~[na:1.8.0_20]
      	at org.apache.cassandra.net.MessagingService$SocketThread.close(MessagingService.java:958) ~[trunk/na]
      	at org.apache.cassandra.net.MessagingService.shutdown(MessagingService.java:717) ~[trunk/na]
      	... 3 common frames omitted
      

      Attachments

        1. jdk8050499.txt
          0.9 kB
          Robert Stupp

        Issue Links

          Activity

            People

              snazy Robert Stupp
              snazy Robert Stupp
              Robert Stupp
              Aleksey Yeschenko
              Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: