Uploaded image for project: 'Samza'
  1. Samza
  2. SAMZA-1364

Unclean shutdown of streamApplication in LocalApplicationRunner.kill(streamApplication)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.13.1
    • None
    • None

    Description

      In some cases LocalAppRunner.waitForFinish indefinitely blocks after LocalApplicationRunner.kill. Last step in LocalAppRunner.kill(streamApp) is zkClient.close()[zkClient belongs to ZkCoordinationService].

      ApplicationRunner.kill triggers listeners chain & in final listener zkclient.close throws ZkInterruptedException (RuntimeException) & it's swallowed in listeners preventing shutdownLatch update in LocalApplicationRunner(required for proper shutdown).

      
Exception log:


      org.I0Itec.zkclient.exception.ZkInterruptedException: java.lang.InterruptedException
          at org.I0Itec.zkclient.ZkClient.close(ZkClient.java:1277)
          at org.apache.samza.zk.ZkUtils.close(ZkUtils.java:296)
          at org.apache.samza.zk.ZkCoordinationUtils.reset(ZkCoordinationUtils.java:47)
      
      

      Attachments

        Activity

          People

            spvenkat Shanthoosh Venkataraman
            spvenkat Shanthoosh Venkataraman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: