[
https://issues.apache.org/jira/browse/HIVE-29402?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Zhihua Deng updated HIVE-29402:
-------------------------------
Description:
The HMSHandler within the HiveMetastore(HMS) has evolved into a "GodClass",
currently encompassing thousands of lines of code and managing a wide range of
responsibilities, including core metadata persistence, complex security
auditing, and event notification.
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 responce to the client.
By this way the HMSHandler has a simpler routine, which makes it easier to
maintain and optimize in the future.
More can refer to the attached design document.
was:
In older versions, the HMSHandler becomes 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 responce to the client.
By this way the HMSHandler has a simpler routine, which makes it easier to
maintain and optimize in the future.
> Split HMSHandler
> ----------------
>
> Key: HIVE-29402
> URL: https://issues.apache.org/jira/browse/HIVE-29402
> Project: Hive
> Issue Type: Wish
> Reporter: Zhihua Deng
> Priority: Major
> Attachments: Split HMSHandler.pdf
>
>
> The HMSHandler within the HiveMetastore(HMS) has evolved into a "GodClass",
> currently encompassing thousands of lines of code and managing a wide range
> of responsibilities, including core metadata persistence, complex security
> auditing, and event notification.
> 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 responce to the client.
> By this way the HMSHandler has a simpler routine, which makes it easier to
> maintain and optimize in the future.
> More can refer to the attached design document.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)