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

Limit URL size in Elasticsearch index delete request #3375

Merged
merged 12 commits into from
Nov 12, 2021

Conversation

jkandasa
Copy link
Member

@jkandasa jkandasa commented Nov 3, 2021

Signed-off-by: Jeeva Kandasamy jkandasa@gmail.com

Which problem is this PR solving?

Signed-off-by: Jeeva Kandasamy <jkandasa@gmail.com>
@jkandasa jkandasa requested a review from a team as a code owner November 3, 2021 09:21
@jkandasa
Copy link
Member Author

jkandasa commented Nov 3, 2021

@pavolloffay can you please review this PR?

@pavolloffay pavolloffay changed the title limit es index delete request url length Limit URL size in Elasticsearch index delete request Nov 3, 2021
pavolloffay
pavolloffay previously approved these changes Nov 3, 2021
Copy link
Member

@pavolloffay pavolloffay left a comment

Choose a reason for hiding this comment

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

It would be great if you could add as well integration test for this to https://github.com/jaegertracing/jaeger/blob/master/plugin/storage/integration/es_index_cleaner_test.go

@jkandasa
Copy link
Member Author

jkandasa commented Nov 7, 2021

It would be great if you could add as well integration test for this to https://github.com/jaegertracing/jaeger/blob/master/plugin/storage/integration/es_index_cleaner_test.go

@pavolloffay I do not see an option to create indices with past creation_time.
Can you guide me to get those? Thanks!

@codecov
Copy link

codecov bot commented Nov 8, 2021

Codecov Report

Merging #3375 (1c5dfee) into master (745587a) will increase coverage by 0.04%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3375      +/-   ##
==========================================
+ Coverage   96.45%   96.49%   +0.04%     
==========================================
  Files         260      260              
  Lines       15199    15215      +16     
==========================================
+ Hits        14660    14682      +22     
+ Misses        455      450       -5     
+ Partials       84       83       -1     
Impacted Files Coverage Δ
pkg/es/client/index_client.go 92.81% <100.00%> (+0.09%) ⬆️
cmd/query/app/static_handler.go 95.80% <0.00%> (ø)
pkg/config/tlscfg/cert_watcher.go 94.73% <0.00%> (+2.10%) ⬆️
cmd/collector/app/server/zipkin.go 70.73% <0.00%> (+12.19%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 745587a...1c5dfee. Read the comment docs.

Signed-off-by: Jeeva Kandasamy <jkandasa@gmail.com>
Signed-off-by: Jeeva Kandasamy <jkandasa@gmail.com>
@jkandasa
Copy link
Member Author

jkandasa commented Nov 8, 2021

@pavolloffay I have added additional unit tests to cover the es index delete functionality

@pavolloffay
Copy link
Member

@pavolloffay I do not see an option to create indices with past creation_time.
Can you guide me to get those? Thanks!

IIRC that is not required to test this feature.

@pavolloffay pavolloffay merged commit 9d4d4cd into jaegertracing:master Nov 12, 2021
@pavolloffay
Copy link
Member

thanks @jkandasa for the contribution

@jkandasa jkandasa deleted the fix_index_cleaner branch November 12, 2021 10:51
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.

es index deletion failed with too_long_frame_exception
2 participants