Probably I should elaborate my reply a bit more as we reported this defect and worked the case with support. I remember a similar thought process to yours when dealing with this baffling defect:
1. -245/-144 occurs.
2. Lock mode for the session set to something large or "wait".
3. "All indications are such that this program should *
not* have errorred out with 245/144, yet it did.".
Finding that the locking mechanism does not work is not something you expect since it is fundamental.
If this defect is the cause, it has nothing to do with "onmode -c block", at least not directly.
Ben.
------------------------------
Benjamin Thompson
------------------------------
Original Message:
Sent: Tue December 17, 2019 04:58 AM
From: Benjamin Thompson
Subject: Error 245/system error 144 Key lock caused by onmode -c block?
Hi Hal,
This is a bit of a guess but could you be running into this?
IT27165: NOT WAITING ON A LOCK WITH COLLECTION SUBQUERY AND PARENT QUERY'S WHERE CLAUSE ALLOWING MULTIPLE VALUES
https://www-01.ibm.com/support/docview.wss?crawler=1&uid=swg1IT27165
Ben.
------------------------------
Benjamin Thompson
Original Message:
Sent: Fri December 13, 2019 10:19 AM
From: Hal Maner
Subject: Error 245/system error 144 Key lock caused by onmode -c block?
Hello everyone,
Wanted to get opinions/see if anyone has run into this before.
12.10.FC7 on Linux.
4GL program running on a busy engine, has "SET LOCK MODE TO WAIT" (indefinitely) yet errors out with error 245/system error 144 during a foreach loop.
USELASTCOMMITTED is set to ALL in onconfig.
All indications are such that this program should *not* have errored out with 245/144, yet it did.
Only clue/suspicion I have is that there was a scheduled onmode -c block/onmode -c unblock running about the same time the error occurred. This is done to take an external backup of the engine and only took eight seconds according to the online log.
Is there a bug/weakness with relation to onmode -c block/unblock and lock handling? Any other thoughts?
Thank you,
Hal
Hal Maner
M Systems International, Inc.
Phone: +1 (919) 493-6012 ext.4009
hmaner@msystemsintl.com
www.msystemsintl.com
#Informix