You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "László Végh (Jira)" <ji...@apache.org> on 2023/06/02 12:39:00 UTC

[jira] [Created] (HIVE-27406) CompactionTxnHandler and TxnHandler cleanup

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)