summaryrefslogtreecommitdiff
path: root/storage/ndb/src/kernel/blocks/suma/Suma.txt
blob: eba031226ef74b63ff3a2e2dadd3604ea408df6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
Protocols involving SUMA:



USER                      SUMA                    UTIL
========================================================
CREATE_SUBID_REQ
------------------------->
                          UTIL_SEQUENCE
                          ---------------------->
                          <----------------------
CREATE_SUBID_CONF
<-------------------------
 



USER                      SUMA                    DICT
========================================================
SUB_CREATE_REQ
------------------------->
                          case SelectiveTableSnapshot:
                          GET_TABLEID
                          ---------------------->
                          <----------------------
SUB_CREATE_CONF
<-------------------------





USER                      SUMA                    DICT
========================================================
SUB_SYNC_REQ::MetaData
------------------------->
                          case DatabaseSnapshot:
                          LIST_TABLES
                          ---------------------->
                          <----------------------
for each table...
                          GET_TABINFO
                          ---------------------->
                          <----------------------
SUB_META_DATA                                     DIH
<-------------------------                       =======
                          DI_FCOUNT
                          ---------------------->
                          <----------------------
                          DI_GETPRIM
                          ---------------------->
                          <----------------------
..end for each table
SUB_SYNC_CONF
<-------------------------




USER                      SUMA                    LQH
========================================================
SUB_SYNC_REQ::TableData
------------------------->
for each table...
			  SCAN_FRAG_REQ
                          ---------------------->
			  ATTRINFO
                          ---------------------->
			  SCAN_FRAG_CONF
                          <----------------------
SUB_SYNC_CONTINUE
<-------------------------
------------------------->
			  SCAN_NEXTREQ
                          ---------------------->
...end for each table



??????????
			  SCAN_HBREP
                          <----------------------



USER                      SUMA 
===============================
SUB_START_REQ::MetaData
------------------------->
SUB_START_CONF
<-------------------------



USER                      SUMA                    TUP
========================================================
SUB_START_REQ::TableData
------------------------->
for each table...
                          CREATE_TRIG
                          ---------------------->
                          <----------------------
...end for each table
SUB_START_CONF
<-------------------------


USER                      SUMA                    XXX
========================================================
                          TRANSID_AI
                          <----------------------
SUB_TABLE_DATA
<-------------------------





USER                      SUMA                    XXX
========================================================
			  TRIG_ATTRINFO
                          <----------------------
			  FIRE_TRIG_ORD
                          <----------------------
SUB_TABLE_DATA
<-------------------------



USER                      SUMA                    XXX
========================================================
			  SUB_GCP_COMPLETE_REP
                          <----------------------
SUB_GCP_COMPLETE_REP
<-------------------------

for event only:
SUB_GCP_COMPLETE_ACK
------------------------->
			  when all subscribers have sent ACK on gci
			  send to all other suma's in node group:
			  SUB_GCP_COMPLETE_ACK
                          ---------------------->


USER                      SUMA 
===============================
SUB_STOP_REQ
------------------------->
SUB_STOP_CONF
<-------------------------



USER                      SUMA 
===============================
SUB_REMOVE_REQ
------------------------->
SUB_REMOVE_CONF
<-------------------------



MASTER SUMA		  RESTARTING SUMA
=========================================
INCL_NODEREQ
<---------------------------------------------------------
for each subscription...
SUB_CREATE_REQ
------------------------->...
<-------------------------
SUB_SYNC_REQ::MetaData
------------------------->...
<-------------------------
... end for each subscription


			  SUMA_START_ME (sent asynchronously in start phase 5 to all suma's in node group)
<-------------------------
			  ------------------------->

for each subscriber...
SUB_START_REQ (not before SUMA_START_ME)
------------------------->
<-------------------------
... end for each subscriber

SUMA_HANDOVER_REQ
------------------------->
			  SUMA_HANDOVER_CONF (to all suma's in node group)
<-------------------------
			  ------------------------->