[CDO] Correctly configuring timeouts [message #1817951] |
Tue, 03 December 2019 09:22  |
Eclipse User |
|
|
|
Sometimes, our commits may get quite large and take a couple of seconds to complete.
This leads to occasional exceptions in the net4j communication (see attached example stack).
So what helps in our case is to configure this:
CDONet4jSession#options()#getNet4jProtocol().setTimeout(someHighValue)
But looking around a little, I also found other timeout configurations:
1.) CDONet4jSession#options()#setCommitTimeout(long): this seems to me like it is only a configuration in case a progressmonitor is used for the commit?
2.) CDOTransaction#options()#setCommitInfoTimeout(long) what is this good for? I guess it is there to make sure that the changes are correctly processed by the server? In rare cases, we get a TimeoutRuntimeException on a commit (even though the change seems to always be processed correctly).
Does anyone know more details about the timeouts and how they should be configured?
Thanks!
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02963 seconds