Zhihua Deng created HIVE-29402:
----------------------------------

             Summary: Decouple the complex operation from HMSHandler
                 Key: HIVE-29402
                 URL: https://issues.apache.org/jira/browse/HIVE-29402
             Project: Hive
          Issue Type: Wish
            Reporter: Zhihua Deng


In older versions, the HMSHandler is a "God Object" that handled everything 
from Thrift requests and authorization to file system operations and raw 
database transactions.

To decouple these operations from HMSHandler, HIVE-27224 introduces the 
AbstractOperationHandler, where a handler can deal with a specific request, it 
handles the file system operations, transactions and notifying the listener 
reacting to this request only, the HMSHandler takes care of the rest, such as 
audit, exception and the respond to the client.

By this way the HMSHandler has a simpler routine, which makes it easier to 
maintain and optimize in the future.



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

Reply via email to