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

[Backport 2.x] Added timing data and more granular stages to SegmentReplicationState #4367

Merged
merged 2 commits into from
Sep 1, 2022

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport a2ba3a8 from #4222

…#4222)

* Added timing data and more granular stages to SegmentReplicationState

This change introduces instrumentation logging that measures the latency of the various stages of segment replication as seen by each replica. Logs have also been added to the source node for checkpoint publishing and checkpoint metadata responses. All logging is currently at the TRACE level.

Signed-off-by: Kartik Ganesh <[email protected]>

* Fixing SegmentReplicationTarget tests

Signed-off-by: Kartik Ganesh <[email protected]>

* Incorporated PR feedback

Signed-off-by: Kartik Ganesh <[email protected]>

* Fixing SegmentReplicationTargetService tests

Signed-off-by: Kartik Ganesh <[email protected]>

Signed-off-by: Kartik Ganesh <[email protected]>
(cherry picked from commit a2ba3a8)
@opensearch-trigger-bot opensearch-trigger-bot bot requested review from a team and reta as code owners September 1, 2022 07:09
@github-actions
Copy link
Contributor

github-actions bot commented Sep 1, 2022

Gradle Check (Jenkins) Run Completed with:

@codecov-commenter
Copy link

Codecov Report

Merging #4367 (bb95bf5) into 2.x (f98340e) will decrease coverage by 0.10%.
The diff coverage is 71.42%.

❗ Current head bb95bf5 differs from pull request most recent head ad7af9c. Consider uploading reports for the commit ad7af9c to get more accurate results

@@             Coverage Diff              @@
##                2.x    #4367      +/-   ##
============================================
- Coverage     70.62%   70.51%   -0.11%     
+ Complexity    56959    56900      -59     
============================================
  Files          4572     4572              
  Lines        273744   273816      +72     
  Branches      40150    40152       +2     
============================================
- Hits         193318   193089     -229     
- Misses        64301    64572     +271     
- Partials      16125    16155      +30     
Impacted Files Coverage Δ
...eplication/checkpoint/PublishCheckpointAction.java 23.63% <7.14%> (-7.32%) ⬇️
...s/replication/SegmentReplicationTargetService.java 66.66% <27.27%> (-6.07%) ⬇️
...h/indices/replication/SegmentReplicationState.java 79.10% <90.32%> (+6.37%) ⬆️
...s/replication/SegmentReplicationSourceHandler.java 89.85% <100.00%> (+2.13%) ⬆️
...s/replication/SegmentReplicationSourceService.java 63.46% <100.00%> (+6.64%) ⬆️
.../indices/replication/SegmentReplicationTarget.java 89.58% <100.00%> (+0.69%) ⬆️
...pensearch/client/cluster/RemoteConnectionInfo.java 0.00% <0.00%> (-75.00%) ⬇️
...a/org/opensearch/client/cluster/SniffModeInfo.java 0.00% <0.00%> (-62.50%) ⬇️
...a/org/opensearch/client/cluster/ProxyModeInfo.java 0.00% <0.00%> (-57.90%) ⬇️
...adcast/BroadcastShardOperationFailedException.java 55.55% <0.00%> (-44.45%) ⬇️
... and 492 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 1, 2022

Gradle Check (Jenkins) Run Completed with:

@mch2 mch2 merged commit b202fd1 into 2.x Sep 1, 2022
@mch2 mch2 deleted the backport/backport-4222-to-2.x branch September 1, 2022 17:44
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.

5 participants