diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..35eb1dd
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/flink-connector-opensearch/pom.xml b/flink-connector-opensearch/pom.xml
index 49d20e0..e77ed82 100644
--- a/flink-connector-opensearch/pom.xml
+++ b/flink-connector-opensearch/pom.xml
@@ -36,7 +36,7 @@ under the License.
- 1.3.0
+ 2.3.0
diff --git a/flink-connector-opensearch/src/test/java/org/apache/flink/streaming/connectors/opensearch/OpensearchSinkTest.java b/flink-connector-opensearch/src/test/java/org/apache/flink/streaming/connectors/opensearch/OpensearchSinkTest.java
index 9d29b2e..9d039da 100644
--- a/flink-connector-opensearch/src/test/java/org/apache/flink/streaming/connectors/opensearch/OpensearchSinkTest.java
+++ b/flink-connector-opensearch/src/test/java/org/apache/flink/streaming/connectors/opensearch/OpensearchSinkTest.java
@@ -130,7 +130,6 @@ public void testItemFailureRethrownOnInvoke() throws Throwable {
OpType.INDEX,
new Failure(
"test",
- "_doc",
"1",
new Exception("artificial failure for record")))));
testHarness.open();
@@ -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"));
@@ -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(
@@ -216,7 +214,6 @@ public void testItemFailureRethrownOnCheckpointAfterFlush() throws Throwable {
OpType.INDEX,
new Failure(
"test",
- "_doc",
"2",
new Exception("artificial failure for record")))));
@@ -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));
@@ -398,7 +395,6 @@ public void testAtLeastOnceSink() throws Throwable {
OpType.INDEX,
new Failure(
"test",
- "_doc",
"1",
new Exception("artificial failure for record")))));
@@ -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"));
@@ -474,7 +470,6 @@ public void testDoesNotWaitForPendingRequestsIfFlushingDisabled() throws Excepti
OpType.INDEX,
new Failure(
"test",
- "_doc",
"1",
new Exception("artificial failure for record")))));
@@ -514,7 +509,7 @@ public void process(String element, RuntimeContext ctx, RequestIndexer indexer)
Map 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));
}
}
diff --git a/pom.xml b/pom.xml
index f76ad68..9fdc4fa 100644
--- a/pom.xml
+++ b/pom.xml
@@ -75,6 +75,23 @@ under the License.
flink-connector-opensearch-parent
+
+
+ decodable-mvn-releases-local
+ Decodable mvn Releases Local
+
+ https://decodable-671293015970.d.codeartifact.us-west-2.amazonaws.com/maven/decodable-mvn-releases-local
+
+
+
+ decodable-mvn-snapshots-local
+ Decodable mvn Snapshots Local
+
+ https://decodable-671293015970.d.codeartifact.us-west-2.amazonaws.com/maven/decodable-mvn-snapshots-local
+
+
+
+