Skip to Main Content
InterSystems Ideas
We love hearing from our users. Tell us what you want to see next and upvote ideas from the community.
* Bugs and troubleshooting should as usual go through InterSystems support.
Status Needs review
Categories InterSystems IRIS
Created by Scott Roth
Created on Aug 4, 2023

Add more of a timeout in restart functionality

I have found on occasion that the restart functionality on a Object doesn't always really help. Occasionally I noticed that sequence in Stopping an object, then immediately Starting the object back up doesn't give the system significant time to fully drop the connection of the Object restarting. I have seen this with EnsLib.JavaGateway.Service and HL7 TCP operations as well. Looking at the code for EnsLib.JavaGateway.Service and the Heartbeat Failure functionality the Stop of the Java Gateway Service is not synchronis as it does not wait till the tSC is returned before it tries to Start the service back up. When this happens we get a "Failure to restart". With TCP connections, there needs to be some kind of verification that the Disconnect was sent across the port before trying to restart, or else you have to have the end point system restart their side as it never received the full disconnect before IRIS immediately brought the connection back up.

While there are ways around this by writing your own functions to put a sleep/pause in-between when the EnableConfigItem is ran to disable and enable, it still would be nice if we didn't have to do it.


}

  • ADMIN RESPONSE
    Aug 9, 2023

    Thank you for submitting the idea. The status has been changed to "Needs review".

    Stay tuned!

  • Admin
    Vadim Aniskin
    Reply
    |
    Aug 7, 2023

    Hi Scott!

    Thank you for posting your idea on the InterSystems Ideas portal.


    If you submitted this idea for the 2nd Idea-A-Thon contest could you please add a clear explanation of why the idea fits the contest topic "Run solutions fast, safe, and green with InterSystems IRIS"?

    If this idea is not for the contest, sorry to bother you, and thanks again for your idea.

  • Scott Roth
    Reply
    |
    Aug 4, 2023

    Heartbeat Failure Action.jpg - I have highlighted where the Object is stopped but then immediately started without checking the tSC before the start command is ran.


    StopStartFunction.jpg shows how we put a HANG statementment between the Disable of the EnableConfigItem and the Enable of the EnableConfigItem.