Skip to content

fix: do waitTask on all tasks before moving index#362

Merged
DevinCodes merged 12 commits intomasterfrom
fix/wait-task-atomic-reindex
Sep 16, 2021
Merged

fix: do waitTask on all tasks before moving index#362
DevinCodes merged 12 commits intomasterfrom
fix/wait-task-atomic-reindex

Conversation

@DevinCodes
Copy link
Copy Markdown
Contributor

@DevinCodes DevinCodes commented Sep 15, 2021

Q A
Bug fix? yes
New feature? no
BC breaks? no

Describe your change

This updates the SearchImport command to wait until all indexing operations are done before performing a moveIndex operation. This could prevent accidental loss of data.

@DevinCodes
Copy link
Copy Markdown
Contributor Author

@chloelbn have you seen this error in the CI before? 🤔

Copy link
Copy Markdown

@matthewbond matthewbond left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change looks great, for the CI errors, if I understand this change right: symfony/symfony#40986 then getOption will now sometimes return null, could this be why there are these errors in the CI?

@DevinCodes
Copy link
Copy Markdown
Contributor Author

@matthewbond You're right, fixed this in c2df2d4.

I was referring to the following error however:

Fatal error: Could not check compatibility between Symfony\Bridge\ProxyManager\LazyProxy\PhpDumper\LazyLoadingValueHolderGenerator::generate(ReflectionClass $originalClass, Zend\Code\Generator\ClassGenerator $classGenerator): void and ProxyManager\ProxyGenerator\LazyLoadingValueHolderGenerator::generate(ReflectionClass $originalClass, Laminas\Code\Generator\ClassGenerator $classGenerator), because class Zend\Code\Generator\ClassGenerator is not available in /home/circleci/project/vendor/symfony/proxy-manager-bridge/LazyProxy/PhpDumper/LazyLoadingValueHolderGenerator.php on line 33

It looks like this comes from the fact that v3.4 of Symfony is no longer supported. I've dropped support for the older version of Symfony in d618f45.

@DevinCodes
Copy link
Copy Markdown
Contributor Author

This issue mentions a fix: requiring the laminas/laminas-zendframework-bridge dependency. Added that in 3ab55be

@DevinCodes
Copy link
Copy Markdown
Contributor Author

@matthewbond should be good now 😄

Copy link
Copy Markdown

@matthewbond matthewbond left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@DevinCodes DevinCodes merged commit 5978ded into master Sep 16, 2021
@DevinCodes DevinCodes deleted the fix/wait-task-atomic-reindex branch September 16, 2021 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants