Project

General

Profile

Actions

Bug #80227

closed

Error message: Can't drop database 'functional_test_ft17d7b9a'; database doesn't exist

Added by Mark Watney over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Tests
Target version:
-
Start date:
2017-03-10
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

We sometimes (quite often) get error messages like this when executing tests using TYPO3’s Functional Testing framework:

Can't drop database 'functional_test_ft17d7b9a'; database doesn't exist

I wonder how this can happen – in `TYPO3\Components\TestingFramework\Core\Testbase::setUpTestDatabase()` there is this check:

if (in_array($databaseName, $schemaManager->listDatabases(), true)) {
    $schemaManager->dropDatabase($databaseName);
}

This is the stack trace:

There were 8 errors:

1) FES\Base\Tests\Functional\Service\SettingsServiceTest::canReturnFrameworkConfiguration
Doctrine\DBAL\Exception\DriverException: An exception occurred while executing 'DROP DATABASE functional_test_ft17d7b9a':

Can't drop database 'functional_test_ft17d7b9a'; database doesn't exist

/var/lib/jenkins/jobs/my-project/workspace/Web/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:115
/var/lib/jenkins/jobs/my-project/workspace/Web/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:128
/var/lib/jenkins/jobs/my-project/workspace/Web/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:1015
/var/lib/jenkins/jobs/my-project/workspace/Web/vendor/doctrine/dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php:1017
/var/lib/jenkins/jobs/my-project/workspace/Web/vendor/doctrine/dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php:337
/var/lib/jenkins/jobs/my-project/workspace/Web/typo3_src/components/testing_framework/Classes/Core/Testbase.php:499
/var/lib/jenkins/jobs/my-project/workspace/Web/typo3_src/components/testing_framework/Classes/Core/Functional/FunctionalTestCase.php:254
/var/lib/jenkins/jobs/my-project/workspace/Web/typo3conf/ext/fes_base/Tests/Functional/Service/SettingsServiceTest.php:29

Caused by
Doctrine\DBAL\Driver\Mysqli\MysqliException: Can't drop database 'functional_test_ft17d7b9a'; database doesn't exist

/var/lib/jenkins/jobs/my-project/workspace/Web/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/Mysqli/MysqliConnection.php:150
/var/lib/jenkins/jobs/my-project/workspace/Web/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:1012
/var/lib/jenkins/jobs/my-project/workspace/Web/vendor/doctrine/dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php:1017
/var/lib/jenkins/jobs/my-project/workspace/Web/vendor/doctrine/dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php:337
/var/lib/jenkins/jobs/my-project/workspace/Web/typo3_src/components/testing_framework/Classes/Core/Testbase.php:499
/var/lib/jenkins/jobs/my-project/workspace/Web/typo3_src/components/testing_framework/Classes/Core/Functional/FunctionalTestCase.php:254
/var/lib/jenkins/jobs/my-project/workspace/Web/typo3conf/ext/my_extension/Tests/Functional/Service/SettingsServiceTest.php:29

Are we doing something wrong or is this a bug?

Actions #1

Updated by Mark Watney over 7 years ago

  • Description updated (diff)
Actions #2

Updated by Christian Kuhn over 7 years ago

are you running multiple test instances in parallel?

Actions #3

Updated by Wouter Wolters over 7 years ago

  • Status changed from New to Needs Feedback
Actions #4

Updated by Riccardo De Contardi over 7 years ago

  • Status changed from Needs Feedback to Closed
  • Target version deleted (next-patchlevel)

No feedback within the last 90 days => closing this issue.

If you think that this is the wrong decision or experience the issue again or have more info about how to reproduce it, then please reopen it or open a new issue with a reference to this one. Thank you.

Actions

Also available in: Atom PDF