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

[FLINK-30537] Update Opensearch dependency to version 2.3 #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion flink-connector-opensearch/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ under the License.

<!-- Allow users to pass custom connector versions -->
<properties>
<opensearch.version>1.3.0</opensearch.version>
<opensearch.version>2.3.0</opensearch.version>
</properties>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ public void testItemFailureRethrownOnInvoke() throws Throwable {
OpType.INDEX,
new Failure(
"test",
"_doc",
"1",
new Exception("artificial failure for record")))));
testHarness.open();
Expand Down Expand Up @@ -169,7 +168,6 @@ public void testItemFailureRethrownOnCheckpoint() throws Throwable {
OpType.INDEX,
new Failure(
"test",
"_doc",
"1",
new Exception("artificial failure for record")))));
testHarness.processElement(new StreamRecord<>("msg"));
Expand Down Expand Up @@ -207,7 +205,7 @@ public void testItemFailureRethrownOnCheckpointAfterFlush() throws Throwable {
1,
OpType.INDEX,
new IndexResponse(
new ShardId("test", "-", 0), "_doc", "1", 0, 0, 1, true))));
new ShardId("test", "-", 0), "1", 0, 0, 1, true))));

responses.add(
createResponse(
Expand All @@ -216,7 +214,6 @@ public void testItemFailureRethrownOnCheckpointAfterFlush() throws Throwable {
OpType.INDEX,
new Failure(
"test",
"_doc",
"2",
new Exception("artificial failure for record")))));

Expand Down Expand Up @@ -335,7 +332,7 @@ public void testBulkFailureRethrownOnOnCheckpointAfterFlush() throws Throwable {
1,
OpType.INDEX,
new IndexResponse(
new ShardId("test", "-", 0), "_doc", "1", 0, 0, 1, true))));
new ShardId("test", "-", 0), "1", 0, 0, 1, true))));

// Let the whole bulk request fail
responses.add(response -> response.setStatusCode(500));
Expand Down Expand Up @@ -398,7 +395,6 @@ public void testAtLeastOnceSink() throws Throwable {
OpType.INDEX,
new Failure(
"test",
"_doc",
"1",
new Exception("artificial failure for record")))));

Expand All @@ -408,7 +404,7 @@ public void testAtLeastOnceSink() throws Throwable {
2,
OpType.INDEX,
new IndexResponse(
new ShardId("test", "-", 0), "_doc", "2", 0, 0, 1, true))));
new ShardId("test", "-", 0), "2", 0, 0, 1, true))));

testHarness.processElement(new StreamRecord<>("msg"));

Expand Down Expand Up @@ -474,7 +470,6 @@ public void testDoesNotWaitForPendingRequestsIfFlushingDisabled() throws Excepti
OpType.INDEX,
new Failure(
"test",
"_doc",
"1",
new Exception("artificial failure for record")))));

Expand Down Expand Up @@ -514,7 +509,7 @@ public void process(String element, RuntimeContext ctx, RequestIndexer indexer)
Map<java.lang.String, Object> json = new HashMap<>();
json.put("data", element);

indexer.add(Requests.indexRequest().index("index").type("type").id("id").source(json));
indexer.add(Requests.indexRequest().index("index").id("id").source(json));
}
}

Expand Down