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

Support DataStream APIs #416

Merged
merged 4 commits into from
Mar 28, 2023

Conversation

tanqiuliu
Copy link
Contributor

Description

  • Added data stream APIs (CreateDataStream, DeleteDataStream, GetDataStream, DataStreamsStats)
  • Allowed specifying timestamp_field for dataStream in PutIndexTemplate
  • Added integration tests for data stream APIs

Issues Resolved

#402

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

…ts, and support specified data stream timestamp field in PutIndexTemplate.

Signed-off-by: Tanqiu Liu <liutanqiu@gmail.com>
Signed-off-by: Tanqiu Liu <liutanqiu@gmail.com>
@tanqiuliu
Copy link
Contributor Author

The test failures are all because of the following test

org.opensearch.client.opensearch.integTest.restclient.AggregationRequestIT > testDateRangeAggregation FAILED
    org.opensearch.client.opensearch._types.OpenSearchException at AggregationRequestIT.java:94

This is not relevant to the changes in this PR. The same test failure also appeared in previous PRs: link1, link2.

When I try to reproduce the issue in local, it seems to be an intermittent issue which appears once among ten runs. It failed due to exception when search an index:

Request failed: [search_phase_execution_exception] all shards failed

I am not quite sure about the root cause.

@reta
Copy link
Collaborator

reta commented Mar 26, 2023

I am not quite sure about the root cause.

That's the flaky one sadly, #407

reta
reta previously approved these changes Mar 27, 2023
VachaShah
VachaShah previously approved these changes Mar 27, 2023
Copy link
Collaborator

@VachaShah VachaShah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you @tanqiuliu for adding this feature!

Can we also add this to the USER_GUIDE?

Signed-off-by: Tanqiu Liu <liutanqiu@gmail.com>
@tanqiuliu tanqiuliu dismissed stale reviews from VachaShah and reta via 6cbb2a8 March 28, 2023 04:07
@@ -214,6 +214,53 @@ DeleteIndexRequest deleteIndexRequest = new DeleteRequest.Builder().index(index)
DeleteIndexResponse deleteIndexResponse = client.indices().delete(deleteIndexRequest);
```

## Data Stream API
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry one more comment: can you add the new section to TOC as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added

Signed-off-by: Tanqiu Liu <liutanqiu@gmail.com>
@VachaShah VachaShah merged commit 876d379 into opensearch-project:main Mar 28, 2023
@VachaShah VachaShah added the backport 2.x Backport to 2.x branch label Mar 28, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Mar 28, 2023
* Add CreateDataStream, GetDataStream, DeleteDataStream, DataStreamsStats, and support specified data stream timestamp field in PutIndexTemplate.

Signed-off-by: Tanqiu Liu <liutanqiu@gmail.com>

* Add change log for data stream changes

Signed-off-by: Tanqiu Liu <liutanqiu@gmail.com>

* Add data stream into user guide

Signed-off-by: Tanqiu Liu <liutanqiu@gmail.com>

* add data stream to TOC of user guide

Signed-off-by: Tanqiu Liu <liutanqiu@gmail.com>

---------

Signed-off-by: Tanqiu Liu <liutanqiu@gmail.com>
(cherry picked from commit 876d379)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
dblock pushed a commit that referenced this pull request Apr 3, 2023
* Add CreateDataStream, GetDataStream, DeleteDataStream, DataStreamsStats, and support specified data stream timestamp field in PutIndexTemplate.



* Add change log for data stream changes



* Add data stream into user guide



* add data stream to TOC of user guide



---------


(cherry picked from commit 876d379)

Signed-off-by: Tanqiu Liu <liutanqiu@gmail.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@BrendonFaleiro BrendonFaleiro mentioned this pull request Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Backport to 2.x branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants