You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tephra.apache.org by "Andreas Neumann (JIRA)" <ji...@apache.org> on 2016/10/17 22:47:00 UTC
[jira] [Created] (TEPHRA-194) Transaction client should not retry
startShort() if an invalid timeout is given
Andreas Neumann created TEPHRA-194:
--------------------------------------
Summary: Transaction client should not retry startShort() if an invalid timeout is given
Key: TEPHRA-194
URL: https://issues.apache.org/jira/browse/TEPHRA-194
Project: Tephra
Issue Type: Bug
Components: client
Affects Versions: 0.9.0-incubating, 0.10.0-incubating
Reporter: Andreas Neumann
Assignee: Andreas Neumann
Fix For: 0.10.0-incubating
Currently, if an invalid timeout (negative, or too long) is given, the Tx manager throws an IllegalArgumentException. The thrift client will catch that and apply the retry strategy. However, in this case, retry is pointless, and if the strategy is, for example, exponential backoff, if introduces unneccessary load and latency.
The service should instead throw a meaningful exception that.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)