Pre-bootstrap validation tests failed: [Task for build 51012 failed with exception: Unknown column 'InnoDB' in 'where clause']

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Fixed
    • 5.14.3.1
    • Component/s: None
    • None

      Summary

      Connecting to MySQL database with ANSI_QUOTES enabled will trigger an Unknown column exception for 'InnoDB':

      2016-10-10 13:23:11,515 FATAL [localhost-startStop-1] [DefaultBootstrapManager] Pre-bootstrap upgrade tasks failed
      com.atlassian.upgrade.UpgradeException: Pre-bootstrap validation tests failed: [Task for build 51012 failed with exception: Unknown column 'InnoDB' in 'where clause']
      at com.atlassian.bamboo.setup.DefaultBootstrapManager.performPersistenceUpgrade(DefaultBootstrapManager.java:354)
      at com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager.init(DefaultAtlassianBootstrapManager.java:77)
      at com.atlassian.bamboo.setup.BootstrapLoaderListener.contextInitialized(BootstrapLoaderListener.java:118)
      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4842)
      at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5303)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
      at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1407)
      at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1397)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)
      

      ANSI_QUOTES

      Treat “"” as an identifier quote character (like the “`” quote character) and not as a string quote character. You can still use “`” to quote identifiers with this mode enabled. With ANSI_QUOTES enabled, you cannot use double quotation marks to quote literal strings, because it is interpreted as an identifier.

      Query being ran as apart of upgrade task 51012:

      SHOW TABLE STATUS FROM `%s` WHERE ENGINE != \"InnoDB\""
      

      How to Replicate

      • Install Bamboo 5.13.2 using MySQL with ANSI_QUOTES enabled

      Expected Behavior

      • Query will run as expected to complete upgrade

      Actual Behavior

      • Bamboo fails upgrade task with Unknown column 'InnoDB' in 'where clause'

      Diagnosis

      1. Please run the following queries to confirm ANSI_QUOTES are enabled:
        SELECT @@GLOBAL.sql_mode;
        SELECT @@SESSION.sql_mode;

      Workaround

      1. Remove ANSI_QUOTES from sql-mode in my.cnf

              Assignee:
              Unassigned
              Reporter:
              James Giles IV (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: