[MCOL-4851] Fix CMAPI tests and related things. Created: 2021-08-30  Updated: 2021-12-10  Resolved: 2021-11-12

Status: Closed
Project: MariaDB ColumnStore
Component/s: cmapi
Affects Version/s: cmapi-1.5
Fix Version/s: cmapi-1.6

Type: Task Priority: Major
Reporter: Alan Mologorsky Assignee: Roman
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to MCOL-4850 Refactor CMAPI to meet PEP-8 styleguide Stalled
Sprint: 2021-12, 2021-13, 2021-14, 2021-15

 Description   
  • Improve and fix cmapi tests (exclude failover) to stabilize output.
  • fix code style in places when code changed to meet PEP-8
  • add and improve docstrings
  • fix methods, classes and functions related to broken tests
  • fix founded bugs in related code:
    • passing arguments while calling get_current_config_root in NodeConfig.apply_config
    • method of getting a dispatcher_name in NodeConfig.apply_config
    • in code imports in NodeConfig.apply_config
    • file open using context manager in NodeConfig.apply_config
    • copy default cmapi config if system config doesn't exist
    • unused argument in cmapi_server.helpers.get_version function
    • DBRM.__send_command naming to DBRM._send_command
    • DBRM.__send_command to parse GETREADONLY response in a right way
    • MySocket.myreceive_to_magic to read response one byte at a time
    • unused open() in endpoints.ClusterController
    • dbrm.DBRM._send_command logic
    • add CMAPI_DEFAULT_CONF const to cmapi_server._main_
    • add CMAPI_DEFAULT_CONF const to cmapi_server._main_
    • rem useless mtehod set_cluster_mode from NodeConfig in mcs_node_control/models/node_config.py

Generated at Thu Feb 08 02:53:29 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.