László Végh created HIVE-27406:
----------------------------------

             Summary: CompactionTxnHandler and TxnHandler cleanup
                 Key: HIVE-27406
                 URL: https://issues.apache.org/jira/browse/HIVE-27406
             Project: Hive
          Issue Type: Improvement
          Components: Hive
            Reporter: László Végh


Tech Debt elimination. Cleanup and standardize CompactionTxnHandler.java and 
TxnHandler.java considering the following items, but not limited to them:
 * Check for proper javadoc
 * Remove unnecessary logging, adjust log level properly
 * Consistent transaction handling:
 ** No rollback for selects
 ** Exception in case of update count mismatch (single row update returns 0 or 
>1 for updated rows)
 ** Review proper usage of RetrySemantics.* annotations
 * Common private template methods for 'infrastructure' code (same try-catch 
logic, connection handling, etc: possibly with spring-jdbc
 * Replace inline hardcoded and assembled SQL statements with parameterized 
constants.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to