Changes have been pushed for the repository "fawkes.git". (Fawkes Robotics Software Framework)
Clone: g...@git.fawkesrobotics.org:fawkes.git Gitweb: http://git.fawkesrobotics.org/fawkes.git Trac: http://trac.fawkesrobotics.org The branch, thofmann/robot-memory-renewal-succeeded-but-lock-expired has been created at 9ae7ed5caff898da2f4a1fbf3d28e6892d13dba9 (commit) http://git.fawkesrobotics.org/fawkes.git/thofmann/robot-memory-renewal-succeeded-but-lock-expired - *Log* --------------------------------------------------------------- commit 9ae7ed5caff898da2f4a1fbf3d28e6892d13dba9 Author: Till Hofmann <hofm...@kbsg.rwth-aachen.de> AuthorDate: Tue Jun 19 01:11:37 2018 -0400 Commit: Till Hofmann <hofm...@kbsg.rwth-aachen.de> CommitDate: Tue Jun 19 01:11:37 2018 -0400 clips-executive: deal with renewed but expired locks For some reason, a lock renewal request can succeed (response ACQUIRED), but the lock has already been expired and is OPEN. In this case, ignore the response and treat the lock as if it was lost. http://git.fawkesrobotics.org/fawkes.git/commit/9ae7ed5 http://trac.fawkesrobotics.org/changeset/9ae7ed5 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *Summary* ----------------------------------------------------------- - *Diffs* ------------------------------------------------------------- - *commit* 9ae7ed5caff898da2f4a1fbf3d28e6892d13dba9 - - - - - - - - - - Author: Till Hofmann <hofm...@kbsg.rwth-aachen.de> Date: Tue Jun 19 01:11:37 2018 -0400 Subject: clips-executive: deal with renewed but expired locks .../clips-executive/clips/coordination-mutex.clp | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) _Diff for modified files_: diff --git a/src/plugins/clips-executive/clips/coordination-mutex.clp b/src/plugins/clips-executive/clips/coordination-mutex.clp index 19b332c..3b8aadb 100644 --- a/src/plugins/clips-executive/clips/coordination-mutex.clp +++ b/src/plugins/clips-executive/clips/coordination-mutex.clp @@ -387,6 +387,16 @@ (modify ?mf (request NONE) (response NONE) (pending-requests ?pending-requests)) ) +(defrule mutex-lock-auto-renew-done-but-lock-open + ?mf <- (mutex (name ?name) (state OPEN) + (request RENEW-LOCK) (response ACQUIRED) + (pending-requests AUTO-RENEW-PROC $?pending-requests)) + => + (printout error "Renewed " ?name " but lock has expired in the meantime. " + "LOST LOCK!" crlf) + (modify ?mf (request NONE) (response NONE) (pending-requests ?pending-request)) +) + (defrule mutex-lock-auto-renew-failed ?mf <- (mutex (name ?name) (state LOCKED) (request RENEW-LOCK) (response REJECTED) (locked-by ?lb) -- Fawkes Robotics Framework http://www.fawkesrobotics.org _______________________________________________ fawkes-commits mailing list fawkes-commits@lists.kbsg.rwth-aachen.de https://lists.kbsg.rwth-aachen.de/listinfo/fawkes-commits