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

[Backport 0.5-nexus] Write metadata cache data to mappings _meta with refresh time update (#805) #840

Conversation

seankao-az
Copy link
Collaborator

Description

Manually backport #805

Related Issues

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.

…pensearch-project#805)

* [0.5-nexus] Write mock metadata cache data to mappings _meta (opensearch-project#744)

* write mock metadata cache data to mappings _meta

Signed-off-by: Sean Kao <seankao@amazon.com>

* Enable write to cache by default

Signed-off-by: Sean Kao <seankao@amazon.com>

* bugfix: _meta.latestId missing when create index

Signed-off-by: Sean Kao <seankao@amazon.com>

* set and unset config in test suite

Signed-off-by: Sean Kao <seankao@amazon.com>

* fix: use member flintSparkConf

Signed-off-by: Sean Kao <seankao@amazon.com>

---------

Signed-off-by: Sean Kao <seankao@amazon.com>

* default metadata cache write disabled

Signed-off-by: Sean Kao <seankao@amazon.com>

* remove string literal "external" in index builder

Signed-off-by: Sean Kao <seankao@amazon.com>

* track refreshInterval and lastRefreshTime

Signed-off-by: Sean Kao <seankao@amazon.com>

* add last refresh timestamps to metadata log entry

Signed-off-by: Sean Kao <seankao@amazon.com>

* update metadata cache test case: should pass

Signed-off-by: Sean Kao <seankao@amazon.com>

* move to spark package; get refresh interval

Signed-off-by: Sean Kao <seankao@amazon.com>

* parse refresh interval

Signed-off-by: Sean Kao <seankao@amazon.com>

* minor syntax fix on FlintSpark.createIndex

Signed-off-by: Sean Kao <seankao@amazon.com>

* strategize cache writer interface

Signed-off-by: Sean Kao <seankao@amazon.com>

* update refresh timestamps in FlintSpark

Signed-off-by: Sean Kao <seankao@amazon.com>

* add test cases

Signed-off-by: Sean Kao <seankao@amazon.com>

* IT test for refresh timestamp update

Signed-off-by: Sean Kao <seankao@amazon.com>

* add doc for spark conf

Signed-off-by: Sean Kao <seankao@amazon.com>

* change mock table name

Signed-off-by: Sean Kao <seankao@amazon.com>

* add IT test at FlintSpark level

Signed-off-by: Sean Kao <seankao@amazon.com>

* test with external scheduler

Signed-off-by: Sean Kao <seankao@amazon.com>

* refactor refreshIndex method; add test for modes

Signed-off-by: Sean Kao <seankao@amazon.com>

* fix typo

Signed-off-by: Sean Kao <seankao@amazon.com>

* fix failed test caused by refactoring

Signed-off-by: Sean Kao <seankao@amazon.com>

* rename method; add comment

Signed-off-by: Sean Kao <seankao@amazon.com>

---------

Signed-off-by: Sean Kao <seankao@amazon.com>
(cherry picked from commit a07f88f)
@dai-chen
Copy link
Collaborator

Please check CI failure.

@seankao-az
Copy link
Collaborator Author

CI failure is the same caused by external scheduler test cases fail in nexus branch

@seankao-az seankao-az merged commit c3b1da4 into opensearch-project:0.5-nexus Oct 30, 2024
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants