-
Notifications
You must be signed in to change notification settings - Fork 111
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
Notimplemented handling #2108
Merged
Merged
Notimplemented handling #2108
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
f104c7e
Implement logic for handling NotImplemented exception for RealiableSt…
G-D-Petrov b37fe82
Enhance error logging for UnsupportedOperation and NotImplementedExce…
G-D-Petrov b18b325
Address PR comments
G-D-Petrov efddc77
Fix path to s3 mock in reliable storage lock test
G-D-Petrov 561cf27
Fix include paths for S3 mock clients in reliable storage lock tests
G-D-Petrov f97c134
Rename E_NOT_IMPLEMENTED to E_NOT_IMPLEMENTED_BY_STORAGE
G-D-Petrov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,6 +86,7 @@ inline std::unordered_map<ErrorCategory, const char*> get_error_category_names() | |
ERROR_CODE(5020, E_UNEXPECTED_S3_ERROR) \ | ||
ERROR_CODE(5021, E_S3_RETRYABLE) \ | ||
ERROR_CODE(5022, E_ATOMIC_OPERATION_FAILED) \ | ||
ERROR_CODE(5023, E_NOT_IMPLEMENTED) \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: This sounds a bit like something that we did not implement yet. It's more that the storage (PURE) does not support it. |
||
ERROR_CODE(5030, E_UNEXPECTED_AZURE_ERROR) \ | ||
ERROR_CODE(5050, E_MONGO_BULK_OP_NO_REPLY) \ | ||
ERROR_CODE(5051, E_UNEXPECTED_MONGO_ERROR) \ | ||
|
@@ -181,6 +182,7 @@ using UnsortedDataException = ArcticSpecificException<ErrorCode::E_UNSORTED_DATA | |
using UserInputException = ArcticCategorizedException<ErrorCategory::USER_INPUT>; | ||
using CompatibilityException = ArcticCategorizedException<ErrorCategory::COMPATIBILITY>; | ||
using CodecException = ArcticCategorizedException<ErrorCategory::CODEC>; | ||
using NotImplementedException = ArcticSpecificException<ErrorCode::E_NOT_IMPLEMENTED>; | ||
|
||
template<ErrorCode error_code> | ||
[[noreturn]] void throw_error(const std::string& msg) { | ||
|
@@ -242,6 +244,11 @@ template<> | |
throw ArcticSpecificException<ErrorCode::E_UNSORTED_DATA>(msg); | ||
} | ||
|
||
template<> | ||
[[noreturn]] inline void throw_error<ErrorCode::E_NOT_IMPLEMENTED>(const std::string& msg) { | ||
throw ArcticSpecificException<ErrorCode::E_NOT_IMPLEMENTED>(msg); | ||
} | ||
|
||
} | ||
|
||
namespace fmt { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes for NFS backed storages were made to make testing easier and to add the same general behavior as for S3 storages.
This can be reverted, if needed.