[ https://issues.apache.org/jira/browse/OMID-125?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Philippe Laflamme updated OMID-125: ----------------------------------- Attachment: OMID-125.patch > TSO panic in lease manager causes deadlock > ------------------------------------------ > > Key: OMID-125 > URL: https://issues.apache.org/jira/browse/OMID-125 > Project: Apache Omid > Issue Type: Bug > Affects Versions: 1.0.0 > Reporter: Philippe Laflamme > Priority: Major > Attachments: OMID-125.patch > > > When the TSO loses its lease, it panics and invokes the panicker. The default > SystemExitPanicker calls System.exit synchronously which, in turn, calls the > shutdown hooks synchronously. > This causes the shutdown hooks to run within the Lease management scheduler's > lock which is also required to run shutdown. > To replicate the issue: > * start the tso server in HA > * from a ZK shell, update the tso-lease node: > ** get /omid/tso-lease > ** set /omid/tso-lease <the value from get> > * the tso server will panic but fail to shutdown properly > A patch is provided here https://github.com/apache/incubator-omid/pull/52 -- This message was sent by Atlassian JIRA (v7.6.3#76005)