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

embedding the s3-writer returned object stats to the batch the CN will commit to TN. #12780

Merged
merged 18 commits into from
Nov 21, 2023

Conversation

gouhongshen
Copy link
Contributor

@gouhongshen gouhongshen commented Nov 16, 2023

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

issue #12696
#10371

What this PR does / why we need it:

  1. summary

in some cases, the CN will write S3 directly. after the writer is done, it has all the metadata of this object which can be reused later to avoid reloading object metadata from disk.

this PR enables the writer to construct an object stats when an object has been written down, and embedding these stats to the batch the CN will commit to TN.

and replaced part of the block info with this object stats in ranges.

@matrix-meow matrix-meow added size/M Denotes a PR that changes [100,499] lines and removed size/S Denotes a PR that changes [10,99] lines labels Nov 16, 2023
@gouhongshen gouhongshen marked this pull request as draft November 16, 2023 09:43
@matrix-meow matrix-meow added size/L Denotes a PR that changes [500,999] lines and removed size/M Denotes a PR that changes [100,499] lines labels Nov 18, 2023
@gouhongshen gouhongshen marked this pull request as ready for review November 19, 2023 09:08
@mergify mergify bot merged commit cceca63 into matrixorigin:main Nov 21, 2023
16 of 18 checks passed
gavinyue pushed a commit to gavinyue/matrixone that referenced this pull request Nov 30, 2023
…l commit to TN. (matrixorigin#12780)

1. summary

in some cases, the CN will write S3 directly. after the writer is done, it has all the metadata of this object which can be reused later to avoid reloading object metadata from disk.

this PR enables the writer to construct an `object stats` when an object has been written down, and embedding these `stats` to the batch the CN will commit to TN.

and replaced part of the block info with this object stats in ranges.

Approved by: @m-schen, @nnsgmsone, @LeftHandCold, @XuPeng-SH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement kind/feature size/L Denotes a PR that changes [500,999] lines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants