Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

De 5143 #31

Closed
wants to merge 2 commits into from
Closed
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
6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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
17 changes: 17 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,23 @@ under the License.
<flink.parent.artifactId>flink-connector-opensearch-parent</flink.parent.artifactId>
</properties>

<distributionManagement>
<repository>
<id>decodable-mvn-releases-local</id>
<name>Decodable mvn Releases Local</name>
<url>
https://decodable-671293015970.d.codeartifact.us-west-2.amazonaws.com/maven/decodable-mvn-releases-local
</url>
</repository>
<snapshotRepository>
<id>decodable-mvn-snapshots-local</id>
<name>Decodable mvn Snapshots Local</name>
<url>
https://decodable-671293015970.d.codeartifact.us-west-2.amazonaws.com/maven/decodable-mvn-snapshots-local
</url>
</snapshotRepository>
</distributionManagement>

<dependencies>
<!-- Root dependencies for all projects -->

Expand Down