Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-4421

Assertion `total_ha < 15' fails in ha_init() on server startup with all engines enabled

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.0.2
    • Fix Version/s: 10.0.3, 5.5.32
    • Component/s: None
    • Labels:
      None

      Description

      I've built server with BUILD/compile-pentium-debug-max-no-ndb, which attempts to build pretty much everything, and on server startup I'm getting the assertion failure:

      mysqld: /data/bzr/10.0-tst/sql/handler.cc:630: int ha_init(): Assertion `total_ha < 15' failed.
      130423  3:32:36 [ERROR] mysqld got signal 6 ;

      #5  0x00007f93e7540b8b in __GI_abort () at abort.c:91
      #6  0x00007f93e75360ee in __assert_fail_base (fmt=<optimized out>, assertion=0xe9e9f6 "total_ha < 15", file=0xe9e5c0 "/data/bzr/10.0-tst/sql/handler.cc", line=<optimized out>, function=<optimized out>) at assert.c:94
      #7  0x00007f93e7536192 in __GI___assert_fail (assertion=0xe9e9f6 "total_ha < 15", file=0xe9e5c0 "/data/bzr/10.0-tst/sql/handler.cc", line=630, function=0xea05f7 "int ha_init()") at assert.c:103
      #8  0x00000000007ed83a in ha_init () at /data/bzr/10.0-tst/sql/handler.cc:630
      #9  0x000000000056ba69 in init_server_components () at /data/bzr/10.0-tst/sql/mysqld.cc:4677
      #10 0x000000000056c826 in mysqld_main (argc=11, argv=0x1e6f1d0) at /data/bzr/10.0-tst/sql/mysqld.cc:5196
      #11 0x0000000000563944 in main (argc=11, argv=0x7fffe8ee79d8) at /data/bzr/10.0-tst/sql/main.cc:25

      The problem seems straightforward, with Connect we have one too many engines. Actually, SHOW ENGINES shows 14, but maybe it also counts PARTITION which is not in SHOW ENGINES.
      The workaround is to skip at least one engine on server startup, e.g. run server with skip-plugin-connect or skip-plugin-federated, etc.

        Attachments

          Activity

            People

            Assignee:
            serg Sergei Golubchik
            Reporter:
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Git Integration