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] [Segment Replication] Implementing cat/segment_replication API #6244

Merged
merged 4 commits into from
Feb 10, 2023

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport e455f56 from #5718.

* Initial Draft for adding segment_replication API

Signed-off-by: Rishikesh1159 <[email protected]>

* Adding bytes transfered in each segrep events and additional metrics.

Signed-off-by: Rishikesh1159 <[email protected]>

* Fix broken tests.

Signed-off-by: Rishikesh1159 <[email protected]>

* Fix compile errors

Signed-off-by: Rishikesh1159 <[email protected]>

* Adding Tests and gating logic behind feature flag.

Signed-off-by: Rishikesh1159 <[email protected]>

* Add java docs and enable query parameter detailed.

Signed-off-by: Rishikesh1159 <[email protected]>

* Add temporary documentation URL

Signed-off-by: Rishikesh1159 <[email protected]>

* Fixing failing tests.

Signed-off-by: Rishikesh1159 <[email protected]>

* Spotless Apply.

Signed-off-by: Rishikesh1159 <[email protected]>

* Fix media type copile check.

Signed-off-by: Rishikesh1159 <[email protected]>

* Revert previous changes and fix failing tests.

Signed-off-by: Rishikesh1159 <[email protected]>

* Apply spotless check.

Signed-off-by: Rishikesh1159 <[email protected]>

* Refactoring call to segmentreplicationstate.

Signed-off-by: Rishikesh1159 <[email protected]>

* spotless check

Signed-off-by: Rishikesh1159 <[email protected]>

* Changing invokation of segment replication shard and filtering API response by shard id

Signed-off-by: Rishikesh1159 <[email protected]>

* disable feature flag by default.

Signed-off-by: Rishikesh1159 <[email protected]>

* Apply spotless

Signed-off-by: Rishikesh1159 <[email protected]>

* Address comments on PR.

Signed-off-by: Rishikesh1159 <[email protected]>

* Fix gradle check failures

Signed-off-by: Rishikesh1159 <[email protected]>

* fix failing testSegment_ReplicationActionAction()

Signed-off-by: Rishikesh1159 <[email protected]>

* Exclude empty segment replication events in API response.

Signed-off-by: Rishikesh1159 <[email protected]>

* Apply spotless.

Signed-off-by: Rishikesh1159 <[email protected]>

* Address PR comments and add Integ Tests.

Signed-off-by: Rishikesh1159 <[email protected]>

* Fix failing testSegmentReplicationApiResponse().

Signed-off-by: Rishikesh1159 <[email protected]>

* Refactoring code.

Signed-off-by: Rishikesh1159 <[email protected]>

---------

Signed-off-by: Rishikesh1159 <[email protected]>
(cherry picked from commit e455f56)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@github-actions
Copy link
Contributor

github-actions bot commented Feb 8, 2023

Gradle Check (Jenkins) Run Completed with:

Signed-off-by: Rishikesh1159 <[email protected]>
@github-actions
Copy link
Contributor

github-actions bot commented Feb 8, 2023

Gradle Check (Jenkins) Run Completed with:

@github-actions
Copy link
Contributor

github-actions bot commented Feb 9, 2023

Gradle Check (Jenkins) Run Completed with:

@github-actions
Copy link
Contributor

github-actions bot commented Feb 9, 2023

Gradle Check (Jenkins) Run Completed with:

@codecov-commenter
Copy link

codecov-commenter commented Feb 9, 2023

Codecov Report

Merging #6244 (c6d6ae2) into 2.x (9f060b0) will decrease coverage by 0.04%.
The diff coverage is 33.01%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@             Coverage Diff              @@
##                2.x    #6244      +/-   ##
============================================
- Coverage     70.51%   70.47%   -0.04%     
- Complexity    59080    59116      +36     
============================================
  Files          4778     4785       +7     
  Lines        283188   283484     +296     
  Branches      41232    41259      +27     
============================================
+ Hits         199681   199782     +101     
- Misses        66813    67039     +226     
+ Partials      16694    16663      -31     
Impacted Files Coverage Δ
...es/replication/SegmentReplicationStatsRequest.java 0.00% <0.00%> (ø)
...ication/SegmentReplicationStatsRequestBuilder.java 0.00% <0.00%> (ø)
.../org/opensearch/client/support/AbstractClient.java 32.00% <0.00%> (-0.31%) ⬇️
.../indices/replication/SegmentReplicationSource.java 100.00% <ø> (ø)
...cation/TransportSegmentReplicationStatsAction.java 11.11% <11.11%> (ø)
...s/replication/SegmentReplicationStatsResponse.java 13.33% <13.33%> (ø)
...h/indices/replication/SegmentReplicationState.java 47.69% <25.35%> (-31.26%) ⬇️
...s/replication/SegmentReplicationTargetService.java 50.00% <41.66%> (-0.72%) ⬇️
...ces/replication/PrimaryShardReplicationSource.java 96.29% <50.00%> (-3.71%) ⬇️
...st/action/cat/RestCatSegmentReplicationAction.java 59.18% <59.18%> (ø)
... and 486 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 Feb 9, 2023

Gradle Check (Jenkins) Run Completed with:

  • RESULT: UNSTABLE ❕
  • TEST FAILURES:
      1 org.opensearch.cluster.allocation.AwarenessAllocationIT.testThreeZoneOneReplicaWithForceZoneValueAndLoadAwareness

@dreamer-89 dreamer-89 merged commit d81cd0a into 2.x Feb 10, 2023
@github-actions github-actions bot deleted the backport/backport-5718-to-2.x branch February 10, 2023 00:50
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.

4 participants