Files
hse-2026/materials/11-consensus/seminar/media/payment-2pc-coordinator-down.svg
T

43 lines
2.9 KiB
XML
Raw Normal View History

2026-11-28 00:56:20 +03:00
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1024" height="300" viewBox="0 0 1024 300" role="img" aria-labelledby="title desc">
<title id="title">Координатор отключился после двух голосов yes</title>
<desc id="desc">Координатор получил yes от шарда Ани и от шарда магазина, затем отключился. Шард магазина не получил решения и не знает, успел ли координатор его записать.</desc>
<defs>
<marker id="arrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto">
<path d="M0 0 L10 5 L0 10 Z" fill="#245795"/>
</marker>
<g id="replicas" fill="#eaf2fc" stroke="#52749f" stroke-width="1.5">
<rect width="18" height="21" rx="3"/><rect x="23" width="18" height="21" rx="3"/><rect x="46" width="18" height="21" rx="3"/>
<path d="M4 8h10 M4 13h7 M27 8h10 M27 13h7 M50 8h10 M50 13h7"/>
</g>
</defs>
<style>
text { font-family: Arial, Helvetica, sans-serif; fill: #193456; text-anchor: middle; }
.heading { font-size: 24px; font-weight: 700; }
.body { font-size: 20px; }
.message { font: 20px Menlo, Consolas, monospace; }
.shard { fill: #f6f9fd; stroke: #82a4ce; stroke-width: 1.5; }
.edge { fill: none; stroke: #245795; stroke-width: 2.5; marker-end: url(#arrow); }
</style>
<rect width="1024" height="300" fill="#fff"/>
<rect x="339" y="12" width="346" height="75" rx="9" fill="#fff4f1" stroke="#bb6558" stroke-width="1.5"/>
<path d="M356 29l13 13 M369 29l-13 13" fill="none" stroke="#a43d30" stroke-width="3.5" stroke-linecap="round"/>
<text x="525" y="44" font-size="22" font-weight="700">Координатор отключился</text>
<text class="body" x="512" y="71">Успел записать решение?</text>
<path class="edge" d="M247 158 V54 H335"/>
<path class="edge" d="M777 158 V54 H689"/>
<text class="message" x="290" y="43">yes</text>
<text class="message" x="734" y="43">yes</text>
<rect class="shard" x="24" y="158" width="446" height="128" rx="9"/>
<rect class="shard" x="554" y="158" width="446" height="128" rx="9"/>
<text class="heading" x="247" y="191">Шард Ани</text>
<text class="body" x="247" y="222">Подтвердил готовность к списанию</text>
<text class="heading" x="777" y="191">Шард магазина</text>
<text class="body" x="777" y="222" font-weight="bold">Решение о зачислении не получено</text>
<path d="M25 239 H469 M555 239 H999" stroke="#adc2db" stroke-width="1.5"/>
<use xlink:href="#replicas" x="100" y="252"/>
<text class="body" x="284" y="269">Группа Raft · 3 реплики</text>
<use xlink:href="#replicas" x="630" y="252"/>
<text class="body" x="814" y="269">Группа Raft · 3 реплики</text>
</svg>