Menu

#291 Timeout problems with long running cleartool process

2.x
closed-fixed
3
2013-02-28
2010-07-29
No

ClearCase Java API 2.2.3.v20100527231
Eclipse 3.6.0

My Eclipse projects are associated with ClearCase. Initially all communications with the VOB server while executing commands are successful. If after having remained idle for a period of time (maybe an hour or so) and I attempt a team command such as check out, I will often receive the following message:

db_start_trans_get_info_V3: RPC: Unable to send; errno = [WINSOCK]
Connection reset by peer
Check database log on VOB host "some_host.some_domain.com".
--> finished, exit status 1, duration: 109ms
cleartool: Error: Trouble communicating with VOB database: "\an_admin_vob".
cleartool: Error: Unable to search for process guards
cleartool: Error: Unable to create branch requested by -mkbranch option in config spec.
cleartool: Error: Unable to check out "C:\path_to_file_in_vob\some_file.java".

At this point I can no longer execute commands offered via the ClearCase integration inside Eclipse. ClearCase commands outside of Eclipse continue to function as expected. The only way to regain ClearCase command integration within Eclipse is to restart Eclipse. Then all is well again, at least until this condition comes up again.

Does this ring any bells? I would be most pleased if I could regain communictions with ClearCase without restarting Eclipse. Once I restart it seems as though the ClearCase plugin wants to completely refresh my code base with ClearCase and that operation takes a bit of time to complete. Let me know what you think, and thanks for a great piece of software! This variant of the ClearCase plugin is so much better than it's ever been.

(by bhoylma on help forum, https://sourceforge.net/projects/eclipse-ccase/forums/forum/167189/topic/3785183\)

Discussion

1 2 > >> (Page 1 of 2)
  • Achim Bursian

    Achim Bursian - 2010-07-29

    by rsivan: 2010-07-27 04:55:22 CEST
    Same problem in my environment, same workaround found. I'm on Windows 7/64, eclipse 64, JVM 64. Have the same problem in both Galileo and Helios.

     
  • Achim Bursian

    Achim Bursian - 2010-07-29

    by eraonel 2010-07-27 10:04:09 CEST

    Hi, Peace are you using windows? What version? I Reuben and you both have windows then it is specific to win platform. Peace can you send the log from Vob server ( when you get this error) if you have access to it? I 'googled' a bit and found that there is known error for windows: http://www-01.ibm.com/support/docview.wss?uid=swg21142584 but I want to be sure since your provided log does not really tell if it is related to this problem.

    //mike

     
  • Achim Bursian

    Achim Bursian - 2010-07-29

    by achim66 2010-07-27 11:03:21 CEST

    Also, for testing, if that condition appears: Open the task manager, and look for a running cleartool process (on the task tab). Kill that, without exiting Eclipse, and then try to do a ClearCase operation in Eclipse. Does it work then?

    We keep one long running cleartool process, and maybe there are internal timeout problems inside the ClearCase subsystem. If the above mentioned process does cure it, there might be a chance to add some special handling to the plugin.

     
  • Achim Bursian

    Achim Bursian - 2010-07-29

    by rsivan 2010-07-28 12:55:57 CEST
    Achim, I followed your advice, killed the cleartool process, and right away a new process was spawned and the operation (a check-out) that was failing took place correctly without restarting eclipse. Hope this info is useful. Thanks, Reuben

     
  • Achim Bursian

    Achim Bursian - 2010-07-29

    Thanks, Reuben, that helps a lot. This proves that it is not a problem inside the plugin, but really in the cleartool subprocess. The only thing we could do to work around this is to implement an internal timeout, after which the cleartool subprocess gets reaped and respawned.

    Would be good to know if that happens only after a long idle time, or if it could happen even with ClearCase activity all the time. If the idle time is the important thing, then we could send a regular "pwv" to the cleartool subprocess every 60 seconds or so, maybe that would cure the whole issue, too...?

     
  • Achim Bursian

    Achim Bursian - 2010-07-29
    • status: open --> open-accepted
     
  • Anonymous

    Anonymous - 2011-05-23

    Just wandering if you had a chance to implement a 'kill process' operation whenever a cleartool command fails.
    My system (Windows 7/64, plugin version 2.2.28) continues to lose contact with the cleartool process once in a while (at least once a day) and I need to manually kill the process to continue (or restart eclipse).
    Thanks

     

    Last edit: Anonymous 2014-10-17
  • Mikael Petterson

    I am not sure if this is solved. Neatbeans cc plugin had similair problem:

    http://netbeans.org/bugzilla/show_bug.cgi?id=137539

    Problem was in the cleartool shell hangs and they fixed it with creating a new process.

    I will leave this open for a while to see if problem still persists.

    //mike

     
  • Mikael Petterson

    • milestone: --> 2.x
    • assigned_to: nobody --> eraonel
     
  • Boomer

    Boomer - 2013-01-10

    Seeing the same thing in 2.2.27.

     
  • Mikael Petterson

    Hi,

    Is the same commands working and failing as listed in the http://netbeans.org/bugzilla/show_bug.cgi?id=137539 ?

    br

    //mike

     
  • Mikael Petterson

    I guess we could try to rewrite SingleProcessCommand to terminate the ExecutionManagementThread
    when a certain time limit has passed we can stop the process.

    //Mike

     
  • Mikael Petterson

    Hi,

    I have implemented a timed cc subprocess that dies after 30min. So if you leave the cc process for more than 30 minutes it will die and the cc subprocess will have to be created.

    Patched delivery can be downloaded from here:

    http://www.keepandshare.com/doc/view.php?id=5533310&da=y

    br,

    //mike

     
  • Boomer

    Boomer - 2013-01-21

    I think there is something amiss with the new plugin. The clearcase functions are not working. The only option I can select is refresh state. All the other clearcase options are grayed out. Clicking refresh state does not help.

    I was going to try to disassociate/re-associate the clearcase project, but I keep getting the following dialog box.

    Progress Information
    The user operation is waiting for background work to complete.

    My guess is a threading issue with the new timer in windows.

     
  • Boomer

    Boomer - 2013-01-21

    Turns out, Eclipse won't even shutdown. The dialog box pops up and won't go away.

     
  • Mikael Petterson

    I have done some investigation now and it seems like I have a solution. I will create a timeout of the process thread and that thread will run in its own thread ( so you will not block the main thread).

    //mike

     
  • Boomer

    Boomer - 2013-02-07

    I downloaded and installed the test version. So far, so good.
    We'll see how it behaves after being left alone overnight.

     
  • Boomer

    Boomer - 2013-02-11

    Seems to work ok for me... thanks!

     
  • Mikael Petterson

    Good news! Thanks for assistance.

    I will make a delivery end of this week (latest) so it will be included in 2.2.29.

    //mike

     
  • Mikael Petterson

    • labels: --> eclipse-ccase
    • priority: 2 --> 3
    • status: open-accepted --> open-fixed
     
  • Boomer

    Boomer - 2013-02-13

    I may have spoken too soon.. I just ran into a situation where I had to kill cleartool in order to checkout a file.

    Executing cleartool command:
    co -nwa -nc -pti -unr C:\dev\views\myview\code\Product1\src\ioengine\Disk.h

    Check database log on VOB host "ccase3".
    db_start_trans_get_info_V3: RPC: Unable to send; errno = [WINSOCK] Connection reset by peer
    --> finished, exit status 1, duration: 118ms
    cleartool: Error: Trouble communicating with VOB database: "\Admin".
    cleartool: Error: Unable to search for process guards
    cleartool: Error: Unable to check out "C:\dev\views\myview\code\Product1\src\ioengine\Disk.h".

    Eclipse ClearCase Integration 2.2.28.201302071952 net.sourceforge.eclipseccase.feature.group eclipse-ccase.sourceforge.net

     
  • Mikael Petterson

    OK no problem. What was the use case scenario? How long did you wait before you did checkout?
    Anything in the log file? I have provided a zip with more log. Is it possible to run it and send me output?

    http://www.keepandshare.com/doc/view.php?id=5775720&da=y

    //mike

     
  • Mikael Petterson

    • status: open-fixed --> open-remind
     
  • Boomer

    Boomer - 2013-02-14

    I'm not sure why i thought it worked that first time. I must have accidentally stopped and started eclipse at some point. I'll check out the new version, and let you know.

     
  • Boomer

    Boomer - 2013-02-15

    I installed the new version, and this morning clearcase wasn't working, but I'm not sure where the log file is located. The .metadata/.log file doesn't show anything.

     
1 2 > >> (Page 1 of 2)

Log in to post a comment.

MongoDB Logo MongoDB