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

[BUG] - Cannot do bulk delete because of too_long_frame_excepion #213

Closed
alucard001 opened this issue Feb 26, 2024 · 4 comments
Closed

[BUG] - Cannot do bulk delete because of too_long_frame_excepion #213

alucard001 opened this issue Feb 26, 2024 · 4 comments
Assignees
Labels

Comments

@alucard001
Copy link

alucard001 commented Feb 26, 2024

Description
Assume that I have over 500 indices in elasticsearch (ES), and I want to delete it all in bulk.

If I check the "Select all" checkbox on the left of "Name" column, the result will show that I have selected all those 500 indices, even if I just show 10 indices per page.

And when I choose "Delete 5xx indices", it will show this exception:

{"error":{"root_cause":[{"type":"too_long_frame_exception","reason":"An HTTP line is larger than 4096 bytes."}],"type":"too_long_frame_exception","reason":"An HTTP line is larger than 4096 bytes."},"status":400}

Environment (please include the following information):

  • Elasticsearch version: 6.5.4
  • Operating system: Linux
  • Browser + version: Chrome Version 121.0.6167.189 (Official Build) (64-bit)
  • Elasticvue version: 1.0.3
  • How are you running elasticvue? Browser extension

Expected behavior:
When I select "Select All", I would expect to select all items on that page only. If you want to distinguish, you can have 2 options: "Select this page" / "Select everything"

Additional context
Thanks for this amazing tool.

Why do yo have 500+ indices?
Just to let you know why I have 500+ indices: everyday I will create a backup of existing index, and create a brand new one, all by cronjob. And then I will move the alias from original one to this new one. Yet I leave it and did not touch this server for quite sometime. And one day I remember this task and come back to delete those backup indices, this bug exists.

@cars10
Copy link
Owner

cars10 commented Feb 26, 2024

Fixed in 1.0.4. Bulk requests will be sent in chunks of 16 indices - exactly like kibana does it.

@cars10 cars10 closed this as completed in e829dbd Feb 26, 2024
@alucard001
Copy link
Author

But the indices are still there and cannot be removed.
image

@cars10
Copy link
Owner

cars10 commented Feb 27, 2024

Sorry my answer was unclear. This was fixed in elasticvue 1.0.4 released yesterday.

@alucard001
Copy link
Author

Oh。 I'm sorry I did not understand it well. Thank you very much for your support. Case can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants