Skip to content

'Memory exhausted' error after updating to 2.1.4 #354

@MakariosVar

Description

@MakariosVar

What steps will reproduce the problem?

I get a memory exhaust after updating the to 2.1.4.
After some research i can see that "prepareModels" method of the \yii\elasticsearch\ActiveDataProvider is using the 'getPagination'
after following the chain/workflow i ended up again to the starting point. It looks like an recursive error.

What's expected?

With the elastic-search service inactive i was geting an yii error like "Elasticsearch request failed: 7 - Failed to connect to 127.0.0.1 port 9200 after 0 ms: Connection refused" (wich is correct)

What do you get instead?

After updating im getting memory exhaust even if the service is alive and running.

Q A
Yii version 2.0.51
PHP version 7.4
Operating system Ubuntu

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions