Skip to content

Conversation

@dataroaring
Copy link
Contributor

@dataroaring dataroaring commented Apr 24, 2022

Proposed changes

Issue Number: close #xxx

Problem Summary:

We should keep at least one validated image file and edit log. #9011 achieve the goal by running loadImage just after the image file is generated, then we keep an image file generated just now. It works too. However, we should assure the newly generated file is flushed to disk, actually it is hard due to cache on disk itself especially if a power off happened.

Because I wrote the code yesterday, and noted by @caiconghui today that #9011 did the similar job. So I send out the code for discussing.

Describe the overview of changes.

Checklist(Required)

  1. Does it affect the original behavior: (Yes/No/I Don't know)
  2. Has unit tests been added: (Yes/No/No Need)
  3. Has document been added or modified: (Yes/No/No Need)
  4. Does it need to update dependencies: (Yes/No)
  5. Are there any changes that cannot be rolled back: (Yes/No)

Further comments

If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...

Copy link
Contributor

@lide-reed lide-reed left a comment

Choose a reason for hiding this comment

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

LGTM, it's really a nice way to keep validated image rather than last image that may be corrupt.

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Apr 25, 2022
@github-actions
Copy link
Contributor

PR approved by at least one committer and no changes requested.

@github-actions
Copy link
Contributor

PR approved by anyone and no changes requested.

@lide-reed lide-reed merged commit 687421b into apache:master Apr 25, 2022
weizhengte pushed a commit to weizhengte/incubator-doris that referenced this pull request Apr 25, 2022
* rename ImageSeq to LatestImageSeq in Storage

* keep at least one validated image file

(cherry picked from commit 687421b)
weizhengte pushed a commit to weizhengte/incubator-doris that referenced this pull request Apr 26, 2022
* rename ImageSeq to LatestImageSeq in Storage

* keep at least one validated image file

(cherry picked from commit 687421b)
@morningman morningman added dev/1.0.1-deprecated should be merged into dev-1.0.1 branch dev/merged-1.0.1-deprecated PR has been merged into dev-1.0.1 and removed dev/1.0.1-deprecated should be merged into dev-1.0.1 branch labels Apr 26, 2022
morningman pushed a commit that referenced this pull request Apr 26, 2022
* rename ImageSeq to LatestImageSeq in Storage

* keep at least one validated image file
Kikyou1997 pushed a commit to Kikyou1997/incubator-doris that referenced this pull request May 9, 2022
* rename ImageSeq to LatestImageSeq in Storage

* keep at least one validated image file
@lide-reed lide-reed added the usercase Important user case type label label May 13, 2022
starocean999 pushed a commit to starocean999/incubator-doris that referenced this pull request May 19, 2022
* rename ImageSeq to LatestImageSeq in Storage

* keep at least one validated image file
englefly pushed a commit to englefly/incubator-doris that referenced this pull request May 23, 2022
* rename ImageSeq to LatestImageSeq in Storage

* keep at least one validated image file
@dataroaring dataroaring deleted the image branch September 12, 2024 03:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. dev/merged-1.0.1-deprecated PR has been merged into dev-1.0.1 reviewed usercase Important user case type label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants