| Issue 195: | Stopping SMSServer while message are queued causes a hang. | |
| 1 person starred this issue and may be notified of changes. | Back to list |
Sign in to add a comment
|
Ref: http://groups.google.com/group/SMSLib/browse_thread/thread/d6477cd1c47d9cb1 |
||||||||||||
,
Mar 23, 2009
(No comment was entered for this change.)
Labels: Component-SMSServer
|
|||||||||||||
,
Mar 23, 2009
Q1) Yes. if there are messages in the table and on the modem and I stop and restart the system will hang. Q2) Right I'm only using one modem.. |
|||||||||||||
,
Mar 25, 2009
Thanasis, I think I know what the problem is.... During shutdown when Stopping SMSServer and threads the SMSServer is in the middle of receiving messages the SMSServer and threads are killed before the process are done. Leaving inserted records in the table and never deleted from the modem. I was looking for a unique way to identify the record to the messages on the modem so I can check it the record was deleted from the modem. If not on startup I would remove the undelete records from the table. What do you think about this and what is the best way to is the unique identifier for each record. Thanks Stan Byrdsell |
|||||||||||||
,
Mar 25, 2009
Hi Stan, I am a bit confused after your last post... :) I thought that we were talking about a hang (JVM not exiting?). On your last comment, you are talking about the possibility of leaving "orphaned" records in the tables. If the first issue is the problem, it will affect the main library itself. |
|||||||||||||
,
Mar 25, 2009
I think I have located a problem... The AModemDriver.getResponse() was not re-throwing any InterruptedException(s) reaching it. As a result, the reader thread was not terminated although everything else did. Allowing the AModemDriver.getResponse() to throw InterruptedException requires 4-5 other changes in the various method definitions. I cannot reproduce the hang any more with this change. However, the way I reproduced the crash was not very scientific (i.e. I had to press Ctrl-C in a very specific time), so I am 99% sure that this must fix the issue. I am going to commit the code and see how it goes.
Status: Started
|
|||||||||||||
,
Mar 25, 2009
r1814 - probably fixed.
Status: Completed
|
|||||||||||||
,
Mar 25, 2009
(No comment was entered for this change.)
Labels: -Component-SMSServer Component-SMSLib
|
|||||||||||||
,
Mar 29, 2009
(No comment was entered for this change.)
Status: Fixed
|
|||||||||||||
|
|
|||||||||||||