Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-2976

FILE_PING and its subclasses shutdown hook is not removed when protocol stops

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 5.5.3
    • 5.1.9, 5.2.29, 5.3.20, 5.4.12, 5.5.2
    • None

      FILE_PING registers a JVM shutdown hook in init() but doesn't keep a reference to it, so the hook cannot be removed when the protocol stops.

      • The shutdown hook to remain registered even after the channel is closed
      • Memory leaks when channels are repeatedly created and destroyed - Thread is anonymous class and keeps reference to the stack via up/down protocol references
      • Errors when closing gracefully and then shutdown hook operates on closed resources

      This also affects subclasses such as JDBC_PING, S3_PING, etc.

              rhn-engineering-rhusar Radoslav Husar
              rhn-engineering-rhusar Radoslav Husar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: