Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create too_many_open files errors #2785

Closed
4 tasks
curquiza opened this issue Sep 19, 2022 · 9 comments · Fixed by #3263
Closed
4 tasks

Create too_many_open files errors #2785

curquiza opened this issue Sep 19, 2022 · 9 comments · Fixed by #3263
Labels
breaking change The related changes are breaking for the users contribution accepted This issue accepts external contributions error handler Issues related to the returned errors in Meilisearch impacts cloud This issue involves changes for the Meilisearch's cloud team impacts docs This issue involves changes in the Meilisearch's documentation impacts integrations This issue involves changes in the Meilisearch's integrations milli Related to the milli workspace v1.0.0 PRs/issues solved in v1.0.0 released on 2023-02-06
Milestone

Comments

@curquiza
Copy link
Member

curquiza commented Sep 19, 2022

When Meilisearch opens too many FDs, you get the following error

{
    "message": "An internal error has occurred. `Too many open files`.",
    "code": "internal",
    "type": "internal",
    "link": "https://docs.meilisearch.com/errors#internal"
}

We want to replace

  • the code (not type) internal by too_many_open_files
  • the link #internal by #too_many_open_files

TODO

  • Implement changes in Milli
  • Release a Milli version containing these changes
  • Bump this new Milli version in Meilisearch and merge it into main
  • Update the associated specification

Impacted teams

Pinging every teams that might use this, @meilisearch/docs-team (a related issue) and @meilisearch/integration-team
Also @meilisearch/cloud-team I don't know if you would be impacted by this change

@curquiza curquiza added milli Related to the milli workspace impacts docs This issue involves changes in the Meilisearch's documentation impacts integrations This issue involves changes in the Meilisearch's integrations contribution accepted This issue accepts external contributions impacts cloud This issue involves changes for the Meilisearch's cloud team missing usage in PRD Description of the feature usage is missing in the PRD hacktoberfest labels Sep 19, 2022
@curquiza curquiza added this to the v0.30.0 milestone Sep 19, 2022
@curquiza curquiza added the breaking change The related changes are breaking for the users label Sep 19, 2022
@semi-infiknight
Copy link

please assign me this issue

@curquiza
Copy link
Member Author

curquiza commented Sep 26, 2022

Hello @semi-infiknight

Thanks for your interest in this project 🔥 You are definitely more than welcome to open a PR for this!

FYI, we prefer not assigning people to our issues because sometimes people ask to be assigned and never come back, which discourages the volunteer contributors from opening a PR to fix this issue.
We will accept and merge the first PR that fixes correctly and well implements the issue following our contributing guidelines.

We are looking forward to reviewing your PR 😊

@Rutam21
Copy link

Rutam21 commented Oct 1, 2022

@curquiza @irevoire Can you help me with finding the place where this change needs to be done? Thanks.

@irevoire
Copy link
Member

irevoire commented Oct 3, 2022

Hey @Rutam21,

I think you'll need to add a variant in the Code to represent the error.
And then in the MilliError enum you should look for every variant that can output a TooManyOpenFiles error and map it to the code you created before 👍

@curquiza
Copy link
Member Author

Moving this to v1 milestones, we will not have the time to fix it for v0.30.0

@brunoocasali
Copy link
Member

@curquiza This is not a breaking change anymore based on the decision here meilisearch/engine-team#38 right?

@curquiza
Copy link
Member Author

It is still breaking because before people used the internal code to get this error, now they have to use too_many_open_files

The meilisearch/engine-team#38 PR is about warning people using strong languages that would expect a specific and exhaustive list of types (here all the code). Indeed, if we add a new one in a new context (so not breaking) they will have their code broken because this new type is not expected. They have to include an unknown type in the exhaustive list they are expected to retrieve.

@brunoocasali
Copy link
Member

Ah, ok, so it is because it is an "update/change", not a "creation", correct?

Because the issue name gave me the sensation that something new would be introduced, but yeah, carefully reading the content + your message made me get it :)

@curquiza
Copy link
Member Author

Exactly. There is a nuance. In error handler, creation can also be a modification 😊

@meili-bot meili-bot added the v1.0.0 PRs/issues solved in v1.0.0 released on 2023-02-06 label Feb 7, 2023
@curquiza curquiza removed the missing usage in PRD Description of the feature usage is missing in the PRD label Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change The related changes are breaking for the users contribution accepted This issue accepts external contributions error handler Issues related to the returned errors in Meilisearch impacts cloud This issue involves changes for the Meilisearch's cloud team impacts docs This issue involves changes in the Meilisearch's documentation impacts integrations This issue involves changes in the Meilisearch's integrations milli Related to the milli workspace v1.0.0 PRs/issues solved in v1.0.0 released on 2023-02-06
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants