Menu

#113 WaitForUpdates and WaitForUpdatesEx hang

open
Steve
API (125)
5
2014-08-05
2011-01-06
Anonymous
No

Discussion

  • Anonymous

    Anonymous - 2011-01-19

    Since I dont hear any advice for this issue, I guess i need to reexplain the situation.

    The main issue is the call to WaitForUpdates and WaitForUpdatesEx stuck when:

    - remote vcenter restarts
    - user restart the network interface
    - someone yang out the network cable

    WaitForUpdatesEx () does not return after timed out.

    PropertyCollector.cancelWaitForUpdates() does not help. It only works when network is alive

    If any one has any workaround to recover this issue, please help.

     
  • Dan T. Tran

    Dan T. Tran - 2011-01-29

    Hi Steve, any suggestion on this bug is greatly appreciated

     
  • Nobody/Anonymous

    We are able to get a work around for this issue via ServiceInstance.getServerConnection().getVimService().getWsc().setReadTimeout()

    That will terminate the blocking call waitForUpdate. However, I think waitForUpdateEx should add this enhancement