Zoltan Haindrich created HIVE-17991:
---------------------------------------
Summary: Remove CommandNeedRetryException
Key: HIVE-17991
URL: https://issues.apache.org/jira/browse/HIVE-17991
Project: Hive
Issue Type: Improvement
Reporter: Zoltan Haindrich
* only really used in clidriver (via an infinite loop)
[here|https://github.com/apache/hive/blob/master/cli/src/java/org/apache/hadoop/hive/cli/CliDriver.java#L307]
* only 1 thing depends on the value of trycount; I think we can remove it
[GlobalLimitOptimizer|https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/optimizer/GlobalLimitOptimizer.java#L78]
* there are a few loops which have pre-set trycount to 1
[example|https://github.com/apache/hive/blob/master/hcatalog/streaming/src/java/org/apache/hive/hcatalog/streaming/HiveEndPoint.java#L497]
* other catches are exception repackagings
I think it would be better to remove it.
for more info:
{code}
git grep -C10 'catch.*CommandNeedRetryException'
git grep -i gettrycount
{code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)