-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Implemented computation of segment replication stats at shard level #17055
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
Merged
Merged
Changes from 33 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
44a1134
Implemented computation of segment replication stats at shard level
vinaykpud 5d138e3
Updated style checks in the test
vinaykpud 18664d2
Updated changelog
vinaykpud 43d0798
Merge branch 'main' into node-stats
vinaykpud 3468164
fixed style issues
vinaykpud 4e693a5
Fix the failing integration test
vinaykpud 5a3d1ef
Fix stylecheck
vinaykpud a94240f
Fixed the comments for the initial revision
vinaykpud dd0406d
Updated to use System.nanoTime() for lag calculation
vinaykpud 1104c1f
Fixed the integration test for node stats
vinaykpud 59e2617
Merge branch 'main' into node-stats
vinaykpud 90b96a8
Modified the version in the ReplicationCheckpoint for backward compat…
vinaykpud 7f465a0
Added precomputation logic for the stats calculation
vinaykpud 23cedac
Merge branch 'main' into node-stats
vinaykpud 28f1cfc
Removed unwanted lines
vinaykpud f80791f
Clean up the maps when index closed
vinaykpud 29ffb01
Added a null check for the indexshard checkpoint
vinaykpud 4fe2f87
fix style checks
vinaykpud 5d1180f
Merge branch 'main' into node-stats
vinaykpud c838033
Updated version and added bwc for RemoteSegmentMetadata
vinaykpud 1fdd5d2
Upated the javadoc comments
vinaykpud 73efd49
Merge branch 'main' into node-stats
vinaykpud 85dd342
Address comments PR
vinaykpud 7252842
Merge branch 'main' into node-stats
vinaykpud c993370
Removed the latestReceivedCheckpoint map from SegmentReplicationTarge…
vinaykpud 6879f4c
Added granular locks for the concurrency of stats methods
vinaykpud 6ee1808
Style check fixes
vinaykpud 4e2b335
Merge branch 'main' into node-stats
vinaykpud e928e80
Changes to maintain atomicity
vinaykpud 04ba008
Merge branch 'main' into node-stats
vinaykpud 3d030d5
spotlessApply
vinaykpud fcc57bf
removed querying the remotestore when replication is in progress
vinaykpud 25fd006
Merge branch 'main' into node-stats
vinaykpud d8585f7
spotlessApply
vinaykpud File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
server/src/main/java/org/opensearch/common/io/IndexIOStreamHandlerFactory.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* The OpenSearch Contributors require contributions made to | ||
* this file be licensed under the Apache-2.0 license or a | ||
* compatible open source license. | ||
*/ | ||
|
||
package org.opensearch.common.io; | ||
|
||
/** | ||
* Interface for factory to provide handler implementation for type {@link T} | ||
* @param <T> The type of content to be read/written to stream | ||
* | ||
* @opensearch.internal | ||
*/ | ||
public interface IndexIOStreamHandlerFactory<T> { | ||
|
||
/** | ||
* Implements logic to provide handler based on the stream versions | ||
* @param version stream version | ||
* @return Handler for reading/writing content streams to/from - {@link T} | ||
*/ | ||
IndexIOStreamHandler<T> getHandler(int version); | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.