Class RemoteStoreTestUtils
java.lang.Object
org.opensearch.test.RemoteStoreTestUtils
Utilities for remote store related operations used across one or more tests.
-
Method Summary
Modifier and TypeMethodDescriptionstatic InputStreamcreateMetadataFileBytes(Map<String, String> segmentFilesMap, org.opensearch.indices.replication.checkpoint.ReplicationCheckpoint replicationCheckpoint, org.apache.lucene.index.SegmentInfos segmentInfos) Prepares metadata file bytes with header and footergetDummyMetadata(String prefix, int commitGeneration)
-
Method Details
-
createMetadataFileBytes
public static InputStream createMetadataFileBytes(Map<String, String> segmentFilesMap, org.opensearch.indices.replication.checkpoint.ReplicationCheckpoint replicationCheckpoint, org.apache.lucene.index.SegmentInfos segmentInfos) throws IOExceptionPrepares metadata file bytes with header and footer- Parameters:
segmentFilesMap- : actual metadata content- Returns:
- ByteArrayIndexInput: metadata file bytes with header and footer
- Throws:
IOException- IOException
-
getDummyMetadata
-