From b4b0ecc2d5c0d2ccaee487aad1afabf4c624101d Mon Sep 17 00:00:00 2001 From: Valentin Silvestre Date: Thu, 5 Oct 2023 14:53:17 +0200 Subject: [PATCH 1/5] docs : doctrine instability in long-running runtime --- docs/known-issues.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/known-issues.md b/docs/known-issues.md index 282bfd5c9..77ff5e1d0 100644 --- a/docs/known-issues.md +++ b/docs/known-issues.md @@ -38,3 +38,8 @@ The following extensions are known not to be compatible with FrankenPHP: | Name | Reason | Alternatives | | ----------------------------------------------------------- | --------------- | -------------------------------------------------------------------------------------------------------------------- | | [imap](https://www.php.net/manual/en/imap.installation.php) | Not thread-safe | [javanile/php-imap2](https://github.com/javanile/php-imap2), [webklex/php-imap](https://github.com/Webklex/php-imap) | + +## Doctrine issue + +Running Symfony with a long-running runtime that leaves worker threads alive, such as swoole, roadrunner and frankenphp regularly leads to exceptions being thrown when fetching many entities (~100) with doctrine, every few requests. The worker restart itself when these exceptions are thrown. +[This issue is discussed here](https://github.com/symfony/symfony/issues/51661). From 9f1cf1238c0a00c712078715890f20fd39510f02 Mon Sep 17 00:00:00 2001 From: Valentin Silvestre Date: Thu, 5 Oct 2023 15:12:35 +0200 Subject: [PATCH 2/5] add suggestions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Kévin Dunglas --- docs/known-issues.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/known-issues.md b/docs/known-issues.md index 77ff5e1d0..ded16e197 100644 --- a/docs/known-issues.md +++ b/docs/known-issues.md @@ -41,5 +41,5 @@ The following extensions are known not to be compatible with FrankenPHP: ## Doctrine issue -Running Symfony with a long-running runtime that leaves worker threads alive, such as swoole, roadrunner and frankenphp regularly leads to exceptions being thrown when fetching many entities (~100) with doctrine, every few requests. The worker restart itself when these exceptions are thrown. +Running Symfony with a long-running runtime that leaves worker threads alive, such as the worker mode of FrankenPHP, Swoole or Roadrunner regularly leads to exceptions being thrown when fetching many entities (~100) with doctrine, every few requests. The worker restarts itself when these exceptions are thrown. [This issue is discussed here](https://github.com/symfony/symfony/issues/51661). From ddff11840994f3228583b75f9ff8be1c7982a266 Mon Sep 17 00:00:00 2001 From: Valentin Silvestre Date: Thu, 5 Oct 2023 15:12:46 +0200 Subject: [PATCH 3/5] add title suggestions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Kévin Dunglas --- docs/known-issues.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/known-issues.md b/docs/known-issues.md index ded16e197..207f2c27d 100644 --- a/docs/known-issues.md +++ b/docs/known-issues.md @@ -39,7 +39,7 @@ The following extensions are known not to be compatible with FrankenPHP: | ----------------------------------------------------------- | --------------- | -------------------------------------------------------------------------------------------------------------------- | | [imap](https://www.php.net/manual/en/imap.installation.php) | Not thread-safe | [javanile/php-imap2](https://github.com/javanile/php-imap2), [webklex/php-imap](https://github.com/Webklex/php-imap) | -## Doctrine issue +## Doctrine ORM Issues Running Symfony with a long-running runtime that leaves worker threads alive, such as the worker mode of FrankenPHP, Swoole or Roadrunner regularly leads to exceptions being thrown when fetching many entities (~100) with doctrine, every few requests. The worker restarts itself when these exceptions are thrown. [This issue is discussed here](https://github.com/symfony/symfony/issues/51661). From c43273a1ea5674690e6b1f5cc5c82befe13ec2ba Mon Sep 17 00:00:00 2001 From: Valentin Silvestre Date: Thu, 5 Oct 2023 15:13:50 +0200 Subject: [PATCH 4/5] change link to symfony issue MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Kévin Dunglas --- docs/known-issues.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/known-issues.md b/docs/known-issues.md index 207f2c27d..abf7a1cb9 100644 --- a/docs/known-issues.md +++ b/docs/known-issues.md @@ -42,4 +42,4 @@ The following extensions are known not to be compatible with FrankenPHP: ## Doctrine ORM Issues Running Symfony with a long-running runtime that leaves worker threads alive, such as the worker mode of FrankenPHP, Swoole or Roadrunner regularly leads to exceptions being thrown when fetching many entities (~100) with doctrine, every few requests. The worker restarts itself when these exceptions are thrown. -[This issue is discussed here](https://github.com/symfony/symfony/issues/51661). +[This issue is discussed on the Symfony bug tracker](https://github.com/symfony/symfony/issues/51661). From 0b9a588f4ef39d8ad4d625fc60c4c3c97382530c Mon Sep 17 00:00:00 2001 From: Valentin Silvestre Date: Thu, 5 Oct 2023 15:15:51 +0200 Subject: [PATCH 5/5] uppercase for Doctrine Co-authored-by: Jacob Dreesen --- docs/known-issues.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/known-issues.md b/docs/known-issues.md index abf7a1cb9..bb2e5a741 100644 --- a/docs/known-issues.md +++ b/docs/known-issues.md @@ -41,5 +41,5 @@ The following extensions are known not to be compatible with FrankenPHP: ## Doctrine ORM Issues -Running Symfony with a long-running runtime that leaves worker threads alive, such as the worker mode of FrankenPHP, Swoole or Roadrunner regularly leads to exceptions being thrown when fetching many entities (~100) with doctrine, every few requests. The worker restarts itself when these exceptions are thrown. +Running Symfony with a long-running runtime that leaves worker threads alive, such as the worker mode of FrankenPHP, Swoole or Roadrunner regularly leads to exceptions being thrown when fetching many entities (~100) with Doctrine, every few requests. The worker restarts itself when these exceptions are thrown. [This issue is discussed on the Symfony bug tracker](https://github.com/symfony/symfony/issues/51661).