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] [Segment Replication] Rejected_requests are not reported correctly by _cat/segment_replication API #7275

Closed
Rishikesh1159 opened this issue Apr 21, 2023 · 0 comments
Labels
bug Something isn't working distributed framework

Comments

@Rishikesh1159
Copy link
Member

Describe the bug
The rejected_requests column of _cat/segment_replication API is not reporting accurate metrics. The value of rejected_requests is always being 0 even though segment replication backpressure is triggered and rejecting requests

curl -X GET "localhost:9200/_cat/segment_replication?v"
shardId    target_node target_host checkpoints_behind bytes_behind current_lag last_completed_lag rejected_requests
[test6][0] runTask-0   127.0.0.1   0                  0b           0s          10ms               0

To Reproduce
Steps to reproduce the behavior:
-> Index documents into cluster continuously until Segment Replication backpressure mechanism is triggered.
-> Call the GET "_cat/segment_replication" API and check for the rejected_requests count per shard.
-> The value of rejected_requests is always being 0 and not getting updated.

Expected behavior
As Segment Replication backpressure mechanism is triggered and index requests are rejected, we should update the rejected_requests value in the _cat/segment_replication API.

Plugins
Please list all plugins currently enabled.

Screenshots
If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

  • OS: [e.g. iOS]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@Rishikesh1159 Rishikesh1159 added bug Something isn't working untriaged labels Apr 21, 2023
@Rishikesh1159 Rishikesh1159 changed the title [BUG] [Segment Replication] The rejected_requests are not reported correctly by _cat/segment_replication API [BUG] [Segment Replication] Rejected_requests are not reported correctly by _cat/segment_replication API Apr 22, 2023
@mch2 mch2 closed this as completed May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working distributed framework
Projects
None yet
Development

No branches or pull requests

2 participants