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

Add file error handling and structure handlers factory method #260

Merged
merged 29 commits into from
Jan 23, 2023

Conversation

Mike-CZ
Copy link
Collaborator

@Mike-CZ Mike-CZ commented Dec 15, 2022

No description provided.

Copy link
Collaborator

@HerbertJordan HerbertJordan left a comment

Choose a reason for hiding this comment

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

Added a few thoughts, but need to look through the changes more carefully when the suggestions have been processed.

I think we will have to add definitions of what error results mean for the state of the object that emitted the error. For instance, if a file operation fails, are subsequent operations allowed? Or in case a page pool fetch fails, can future get, flush, and close operations be trusted?

cpp/backend/common/file.cc Outdated Show resolved Hide resolved
cpp/backend/common/file.cc Outdated Show resolved Hide resolved
cpp/backend/common/file_test.cc Show resolved Hide resolved
cpp/backend/index/file/index.h Show resolved Hide resolved
cpp/backend/index/file/index.h Outdated Show resolved Hide resolved
cpp/backend/store/file/store.h Show resolved Hide resolved
@thaarok thaarok changed the title Add file rror handling Add file error handling Dec 16, 2022
Mike-CZ added 15 commits December 19, 2022 12:51
# Conflicts:
#	cpp/backend/common/file.cc
#	cpp/backend/common/file.h
#	cpp/backend/common/file_benchmark.cc
#	cpp/backend/common/file_test.cc
#	cpp/backend/common/page.h
#	cpp/backend/common/page_pool.h
#	cpp/backend/common/page_pool_benchmark.cc
#	cpp/backend/common/page_pool_test.cc
#	cpp/backend/index/file/index.h
#	cpp/backend/store/file/store.h
@Mike-CZ Mike-CZ changed the title Add file error handling Add file error handling and structure handlers errors Jan 15, 2023
@Mike-CZ Mike-CZ changed the title Add file error handling and structure handlers errors Add file error handling and structure handlers factory methods Jan 15, 2023
@Mike-CZ Mike-CZ changed the title Add file error handling and structure handlers factory methods Add file error handling and structure handlers factory method Jan 15, 2023
@Mike-CZ Mike-CZ marked this pull request as ready for review January 15, 2023 09:01
@Mike-CZ Mike-CZ requested a review from HerbertJordan January 15, 2023 09:01
Copy link
Collaborator

@HerbertJordan HerbertJordan left a comment

Choose a reason for hiding this comment

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

Started the review, and worked through the file.* changes so fare and submitting those changes since I noticed a new version being available.

cpp/backend/common/file.cc Outdated Show resolved Hide resolved
cpp/backend/common/file.cc Outdated Show resolved Hide resolved
cpp/backend/common/file.cc Outdated Show resolved Hide resolved
cpp/backend/common/file.cc Outdated Show resolved Hide resolved
cpp/backend/common/file.cc Outdated Show resolved Hide resolved
cpp/backend/common/file.cc Outdated Show resolved Hide resolved
cpp/backend/common/file.cc Outdated Show resolved Hide resolved
cpp/backend/common/file.cc Outdated Show resolved Hide resolved
cpp/backend/common/file.h Outdated Show resolved Hide resolved
cpp/backend/common/file.h Outdated Show resolved Hide resolved
cpp/backend/common/file_test.cc Show resolved Hide resolved
cpp/backend/common/page_pool_test.cc Outdated Show resolved Hide resolved
cpp/common/status_util.h Show resolved Hide resolved
cpp/common/status_util_test.cc Show resolved Hide resolved
cpp/backend/index/file/index.h Outdated Show resolved Hide resolved
cpp/backend/index/file/index.h Outdated Show resolved Hide resolved
cpp/backend/index/file/index.h Outdated Show resolved Hide resolved
cpp/backend/store/store_handler.h Outdated Show resolved Hide resolved
Mike-CZ added 4 commits January 18, 2023 21:45
# Conflicts:
#	cpp/backend/common/BUILD
#	cpp/backend/depot/BUILD
#	cpp/backend/index/BUILD
#	cpp/backend/index/leveldb/BUILD
#	cpp/backend/store/BUILD
#	cpp/common/BUILD
#	cpp/common/status_util.h
#	cpp/common/status_util_test.cc
#	cpp/state/BUILD
@Mike-CZ
Copy link
Collaborator Author

Mike-CZ commented Jan 23, 2023

Added list of things that needs to be done according to this PR.

@Mike-CZ Mike-CZ requested a review from HerbertJordan January 23, 2023 10:11
cpp/backend/common/file.cc Outdated Show resolved Hide resolved
cpp/backend/common/file.cc Outdated Show resolved Hide resolved
cpp/backend/common/file.cc Outdated Show resolved Hide resolved
cpp/backend/store/file/store.h Show resolved Hide resolved
cpp/common/fstream.h Outdated Show resolved Hide resolved
cpp/common/fstream.h Outdated Show resolved Hide resolved
@Mike-CZ Mike-CZ merged commit d7fec64 into master Jan 23, 2023
@Mike-CZ Mike-CZ deleted the mike/file_error_handling branch January 23, 2023 11:51
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.

2 participants