Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-2359

onShutDown not being called when docker container stopped

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 3.4.6
    • 3.6.7, 3.7.2
    • server
    • None

    Description

      When one uses groovy hooks with tinkerpop server hosted within the official docker the onStartUp hook will be called at server startup but the onShutDown will not be called.

      I am using tinkergraph server for local testing and i would like to persist the data upon the server exit. i've added a graph.close to the onShutDown hook but i havent been able to get it called.

      It will be called of course if you use the server start / server stop shell script but not if you kill / stop the docker container.

      If there is some other way to persist the date i.e. call the graph.close from code and note via the console it would also be great as using it from node javascript i havent been able to find a way to call the graph.close directly.

      Attachments

        Issue Links

          Activity

            People

              colegreer Cole Greer
              israelio ohad israeli
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: