# Federated engine status?

**URL:** <https://forums.percona.com/t/federated-engine-status/5121>\
**Category:** Percona Server for MySQL 5.7\
**Created:** [September 30, 2016, 10:21am UTC](https://forums.percona.com/t/federated-engine-status/5121 "2016-09-30T10:21:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bugi](https://avatars.discourse-cdn.com/v4/letter/b/4af34b/32.png) [@bugi](https://forums.percona.com/u/bugi)\
**Post date:** [September 30, 2016, 10:21am UTC](https://forums.percona.com/t/federated-engine-status/5121/1 "2016-09-30T10:21:58Z")

</div>

How does the federated engine in Percona 5.7 compare to the one in MariaDB?

Federated in mariadb 5.5 works fine for my case, but I recall mysql 5.1’s federated crashing a lot. I’m preparing an upgrade to a more recent mysql, and whether we choose percona or mariadb hinges largely on this question.

---

<div class="post-metadata">

**Author:** ![George\_Lorch](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/george_lorch/32/1108_2.png) [@George\_Lorch](https://forums.percona.com/u/George_Lorch)\
**Post date:** [September 30, 2016, 7:36pm UTC](https://forums.percona.com/t/federated-engine-status/5121/2 "2016-09-30T19:36:45Z")

</div>

A quick git diff between PS 5.5 and 5.7 on ha\_federated.cc shows very few changes (well, none that I could see) that are not directly related to changes to server code (performance schema, etc…). So I believe that unless MariaDB has done any work to the federated engine, it should be relatively the same across PS 5.5, 5.6, 5.7 and MariaDB 5.5 and 10.x.

---

<div class="post-metadata">

**Author:** ![bugi](https://avatars.discourse-cdn.com/v4/letter/b/4af34b/32.png) [@bugi](https://forums.percona.com/u/bugi)\
**Post date:** [October 3, 2016, 12:22pm UTC](https://forums.percona.com/t/federated-engine-status/5121/3 "2016-10-03T12:22:07Z")

</div>

Thank you for the response.

MariaDB uses the FederatedX engine when a user calls for Federated. That’s an effort by the authors of Federated to address shortcomings of that engine.  
[LIST]  
[_]So this in mariadb: [url][https://github.com/MariaDB/server/tree/10.1/storage/federatedx/[/url]](https://github.com/MariaDB/server/tree/10.1/storage/federatedx/%5B/url%5D)  
[_]and this in percona: [url][https://github.com/percona/percona-server/tree/5.7/storage/federated/[/url]](https://github.com/percona/percona-server/tree/5.7/storage/federated/%5B/url%5D)  
[\*]and in percona’s 5.1 tree: [url][https://github.com/percona/percona-server/tree/5.1/Percona-Server/storage/federated/[/url]](https://github.com/percona/percona-server/tree/5.1/Percona-Server/storage/federated/%5B/url%5D)  
[/LIST] The federated engines used in mariadb and percona are much different, enough so that it seems pointless to compare their code.

One could simply compare the 5.1 code with the 5.7 code, but I’m not familiar enough with mysql code to judge it in any kind of detail. I do see it’s changed quite a bit (diffstat below). How much of that is 5.1-\>5.7 drift and how much is fixing the crashes and other misery that was in 5.1’s Federated?

```auto
$ diff -u ha_federated.cc-5.1 ha_federated.cc-5.7 |diffstat
ha_federated.cc-5.7 | 502 +++++++++++++++++++++++++++-------------------------
1 file changed, 268 insertions(+), 234 deletions(-)

```

Or, is there a list of bugs that’ve been addressed in Federated over the years?
