mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-04-18 21:44:02 +03:00
fix(cmapi): MCOL-5133 remove has_active_nodes handler for cluster shutdown because TransactionManager has advance variant of this check
This commit is contained in:
parent
a60b278ee6
commit
6a57537cb1
@ -157,7 +157,13 @@ def active_operation():
|
||||
|
||||
@cherrypy.tools.register('before_handler', priority=82)
|
||||
def has_active_nodes():
|
||||
"""Check if there are any active nodes in the cluster."""
|
||||
"""Check if there are any active nodes in the cluster.
|
||||
|
||||
TODO: Remove in next releases due to never used.
|
||||
Now TransactionManager has this check inside.
|
||||
Before removing, have to check all API endpoints without transaction
|
||||
mechanics to potential use of this handler.
|
||||
"""
|
||||
active_nodes = get_active_nodes()
|
||||
|
||||
if len(active_nodes) == 0:
|
||||
@ -834,7 +840,6 @@ class ClusterController:
|
||||
@cherrypy.tools.json_in()
|
||||
@cherrypy.tools.json_out()
|
||||
@cherrypy.tools.validate_api_key() # pylint: disable=no-member
|
||||
@cherrypy.tools.has_active_nodes() # pylint: disable=no-member
|
||||
def put_shutdown(self):
|
||||
func_name = 'put_shutdown'
|
||||
log_begin(module_logger, func_name)
|
||||
|
Loading…
x
Reference in New Issue
Block a user