MySQL 9.3.0
Source Code Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
mrs::monitored Namespace Reference

Classes

class  QueryRetryOnRO
 This class is dedicated for monitoring of generating timeouts. More...
 

Functions

std::string get_most_relevant_gtid (const std::vector< std::string > &gtids)
 
std::string get_session_tracked_gtids_for_metadata_response (collector::CountedMySQLSession *session, mrs::GtidManager *gtid_manager)
 This function is dedicated for getting GTIDs that are returned to the user in REST response. More...
 
void count_using_wait_at_ro_connection ()
 This function is dedicated for monitoring "asof/wait for gtid" executions on RO connection. More...
 
void count_using_wait_at_rw_connection ()
 This function is dedicated for monitoring "asof/wait for gtid" executions on RW connection. More...
 
void count_after_wait_timeout_switch_ro_to_rw ()
 This function is dedicated for monitoring "asof/wait for gtid" where MRS switched from RO to RW. More...
 
void throw_rest_error_asof_timeout_if_not_gtid_executed (mysqlrouter::MySQLSession *session, const mysqlrouter::sqlstring &gtid)
 This function is dedicated for monitoring of generated timeouts. More...
 
void throw_rest_error_asof_timeout ()
 This function is dedicated for monitoring of generated timeouts. More...
 

Function Documentation

◆ count_after_wait_timeout_switch_ro_to_rw()

void mrs::monitored::count_after_wait_timeout_switch_ro_to_rw ( )

This function is dedicated for monitoring "asof/wait for gtid" where MRS switched from RO to RW.

Function is extracted here, because it monitors usage count in concrete case.

◆ count_using_wait_at_ro_connection()

void mrs::monitored::count_using_wait_at_ro_connection ( )

This function is dedicated for monitoring "asof/wait for gtid" executions on RO connection.

Function is extracted here, because it monitors usage count in concrete case.

◆ count_using_wait_at_rw_connection()

void mrs::monitored::count_using_wait_at_rw_connection ( )

This function is dedicated for monitoring "asof/wait for gtid" executions on RW connection.

Function is extracted here, because it monitors usage count in concrete case.

◆ get_most_relevant_gtid()

std::string mrs::monitored::get_most_relevant_gtid ( const std::vector< std::string > &  gtids)

◆ get_session_tracked_gtids_for_metadata_response()

std::string mrs::monitored::get_session_tracked_gtids_for_metadata_response ( collector::CountedMySQLSession session,
mrs::GtidManager gtid_manager 
)

This function is dedicated for getting GTIDs that are returned to the user in REST response.

Function is extracted here, because it monitors usage count in concrete case.

◆ throw_rest_error_asof_timeout()

void mrs::monitored::throw_rest_error_asof_timeout ( )

This function is dedicated for monitoring of generated timeouts.

Function is extracted here, because it monitors usage count in concrete case.

◆ throw_rest_error_asof_timeout_if_not_gtid_executed()

void mrs::monitored::throw_rest_error_asof_timeout_if_not_gtid_executed ( mysqlrouter::MySQLSession session,
const mysqlrouter::sqlstring gtid 
)

This function is dedicated for monitoring of generated timeouts.

Function is extracted here, because it monitors usage count in concrete case.