Sha256: ce8ced842f0ab109521254f1bc2432184ecf77df5e2638a14fd2fba55f1dd67a

Contents?: true

Size: 772 Bytes

Versions: 5

Compression:

Stored size: 772 Bytes

Contents

@startuml{seq.png}

actor Client
participant Rails
participant "Connection pool" as cp
participant "<size:10>active_recode_mysql_xverify</size>" as armx
participant MySQL

Client -> Rails : Request
activate Rails
Rails -> MySQL : Query
activate MySQL
group neg
  Rails <-- MySQL : <font color=red>"read-only" error happen!</font>
  deactivate MySQL
  Client <-- Rails : <font color=red>Error</font>
  deactivate Rails
end

Client -> Rails : Request
activate Rails
Rails -> cp : checkout
activate cp
cp -> armx : active?
activate armx
armx -> MySQL : Fetch "innodb_read_only"
activate MySQL
armx <-- MySQL : "ON"
deactivate MySQL
cp <-- armx : false
deactivate armx
cp --> MySQL : reconnect!
activate MySQL
deactivate MySQL
Rails <-- cp : Connection
deactivate cp

@enduml

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
active_record_mysql_xverify-0.4.0 seq.wsd
active_record_mysql_xverify-0.3.0 seq.wsd
active_record_mysql_xverify-0.2.2 seq.wsd
active_record_mysql_xverify-0.2.1 seq.wsd
active_record_mysql_xverify-0.2.0 seq.wsd