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

[Star tree] Star tree merge changes #14652

Merged
merged 6 commits into from
Jul 24, 2024

Conversation

bharath-techie
Copy link
Contributor

@bharath-techie bharath-techie commented Jul 4, 2024

Description

Star tree merge changes.

  • Instead of constructing the star tree by again scanning through all the segment docs, we will use the already aggregated star tree doc values from the segments.

  • We will take the non star rows of the dimension fields from the aggregated doc values and construct the star tree

For example, consider the following segments with star tree aggregated documents ,

Segment 1 : [ we will take 0 - 3 ]

DocId Hour Day Status Count_Status
0 1 1 200 2
1 1 1 300 1
2 2 1 300 1
3 2 2 200 2
4 -1 1 200 2
... ... ... ... ...
12 -1 2 -1 2
13 -1 -1 -1 6

Segment 2 : [ we will take 0 - 2 ]

DocId Hour Day Status Count_Status
0 1 1 200 2
1 1 1 300 1
2 2 1 300 1
3 -1 1 200 2
4 -1 2 200 2
... ... ... ... ...
10 -1 1 -1 2
11 -1 -1 -1 6

Merged segment initial star tree documents : [ initially just form the records ]

DocId Hour Day Status Count_Status
0 1 1 200 2
1 1 1 300 1
2 2 1 300 1
3 2 2 200 2
0 1 1 200 2
1 1 1 300 1
2 2 1 300 1

From here on we'll sort the documents, aggregate the documents and construct the star tree , similar to the flush flow.

Related Issues

Resolves #14626

Check List

  • Functionality includes testing.
  • API changes companion pull request created, if applicable.
  • Public documentation issue/PR created, if applicable.

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.

Copy link
Contributor

github-actions bot commented Jul 4, 2024

❌ Gradle check result for 948419f: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@bharath-techie bharath-techie force-pushed the star_onheap_merge branch 2 times, most recently from 1784c9b to 6f5befd Compare July 4, 2024 13:07
Copy link
Contributor

github-actions bot commented Jul 4, 2024

❌ Gradle check result for 1784c9b: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@github-actions github-actions bot added enhancement Enhancement or improvement to existing feature or request Indexing:Performance labels Jul 4, 2024
@bharath-techie bharath-techie self-assigned this Jul 4, 2024
Copy link
Contributor

✅ Gradle check result for c55460f: SUCCESS

Signed-off-by: Bharathwaj G <bharath78910@gmail.com>
Copy link
Contributor

❌ Gradle check result for bdbe58e: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Copy link
Contributor

✅ Gradle check result for 21f9ff0: SUCCESS

Signed-off-by: Bharathwaj G <bharath78910@gmail.com>
Copy link
Contributor

❕ Gradle check result for a1957f7: UNSTABLE

Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure.

@sachinpkale sachinpkale merged commit 312de99 into opensearch-project:main Jul 24, 2024
31 of 38 checks passed
harshavamsi pushed a commit to harshavamsi/OpenSearch that referenced this pull request Aug 20, 2024
---------

Signed-off-by: Bharathwaj G <bharath78910@gmail.com>
wdongyu pushed a commit to wdongyu/OpenSearch that referenced this pull request Aug 22, 2024
---------

Signed-off-by: Bharathwaj G <bharath78910@gmail.com>
@bharath-techie bharath-techie added the backport 2.x Backport to 2.x branch label Aug 23, 2024
opensearch-trigger-bot bot pushed a commit that referenced this pull request Aug 23, 2024
---------

Signed-off-by: Bharathwaj G <bharath78910@gmail.com>
(cherry picked from commit 312de99)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
sachinpkale pushed a commit that referenced this pull request Aug 24, 2024
---------


(cherry picked from commit 312de99)

Signed-off-by: Bharathwaj G <bharath78910@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>
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 enhancement Enhancement or improvement to existing feature or request Indexing:Performance skip-changelog v2.16.0 Issues and PRs related to version 2.16.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Star tree] Star tree merge changes
4 participants