Skip to content

Conversation

@spaces-X
Copy link
Contributor

@spaces-X spaces-X commented Jun 1, 2020

Ignore broken disks from storage_root_path:

  • add read and write check for each dir in storage_root_path and ignore broken disks.
  • add AutoDeallocator.h to manage the lifecycle of allocated data by malloc or posix_memalign.
  • rewrite DataDir::_read_and_write_test_file function.

@morningman
Copy link
Contributor

Hi @spaces-X, Could you create an issue to describe what problem you try to solve?

@spaces-X
Copy link
Contributor Author

spaces-X commented Jun 1, 2020

Hi @spaces-X, Could you create an issue to describe what problem you try to solve?

Done issue

Copy link
Contributor

@morningman morningman left a comment

Choose a reason for hiding this comment

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

Could you please update the document of this config ignore_broken_disk, both English and Chinese:

docs/zh-CN/administrator-guide/config/be_config.md
docs/en/administrator-guide/config/be_config.md

Thank you!

@morningman morningman added the area/config Issues or PRs related to configuration label Jun 1, 2020
Copy link
Contributor Author

@spaces-X spaces-X left a comment

Choose a reason for hiding this comment

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

Could you please update the document of this config ignore_broken_disk, both English and Chinese:

docs/zh-CN/administrator-guide/config/be_config.md
docs/en/administrator-guide/config/be_config.md

Thank you!

Done!

kangkaisen
kangkaisen previously approved these changes Jun 2, 2020
Copy link
Contributor

@kangkaisen kangkaisen left a comment

Choose a reason for hiding this comment

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

+1, LGTM

@kangkaisen kangkaisen added the approved Indicates a PR has been approved by one committer. label Jun 2, 2020
@spaces-X
Copy link
Contributor Author

spaces-X commented Jun 3, 2020

Could I merge this pr to master?
Or what should I do next?

@morningman
Copy link
Contributor

Could I merge this pr to master?
Or what should I do next?

Hi, you don't need to do anything. This pr will be merged after being approved for a period of time,
about a day, in case some other reviews have review comments.

@spaces-X
Copy link
Contributor Author

spaces-X commented Jun 3, 2020

Could I merge this pr to master?
Or what should I do next?

Hi, you don't need to do anything. This pr will be merged after being approved for a period of time,
about a day, in case some other reviews have review comments.

Pull Request for my first time.
Thanks a lot.

@chaoyli chaoyli linked an issue Jun 3, 2020 that may be closed by this pull request
@chaoyli chaoyli self-assigned this Jun 3, 2020
@spaces-X spaces-X requested a review from chaoyli June 3, 2020 12:08
@morningman
Copy link
Contributor

Compilation failed. Did you miss util/auto_deallocator.h?

@morningman morningman removed the approved Indicates a PR has been approved by one committer. label Jun 3, 2020
@spaces-X
Copy link
Contributor Author

spaces-X commented Jun 3, 2020

auto_deallocator

sorry, i forgot to remove that line

@spaces-X
Copy link
Contributor Author

spaces-X commented Jun 4, 2020

Compilation failed. Did you miss util/auto_deallocator.h?

Hi, i have removed the redundant include line, and rebuild it successfully in my machine.
How to handle with the remaining requested changes created by reviewer 'chaoyli', which have already been changed.

@morningman
Copy link
Contributor

Hi @chaoyli, Any more comment?

@chaoyli chaoyli merged commit ed9022a into apache:master Jun 5, 2020
morningman pushed a commit to morningman/doris that referenced this pull request Jun 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/config Issues or PRs related to configuration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ignore broken disks in the storage_data_path

4 participants