Skip to content

Timeout per operation

edwardcapriolo edited this page Feb 8, 2013 · 1 revision

Because we are allowing users to execute arbitrary code on the intravert server, there is a slight possibility :) that an operation can continue indefinitely consuming system resources.

By default IntraVert sets the default timeout to 10 seconds. If the user wishes to adjust this value to be shorter or longer they set the "timeout" property of any IntraOp.

req.add(Operations.sliceOp("rowa", "col1", "col3", 10).set("timeout", 3000));

Timeout is specified in milliseconds. If and operation takes longer then the timeout a java.util.concurrent.TimeoutException is returned to the user and the processing is short circuited as is the case when any IntraOp throws an exception.