-
Notifications
You must be signed in to change notification settings - Fork 164
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 missing protocol errors #7982
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -393,9 +393,11 @@ static const constexpr MapElem string_to_error_code[] = { | |
{"SyncConnectFailed", ErrorCodes::SyncConnectFailed}, | ||
{"SyncConnectTimeout", ErrorCodes::SyncConnectTimeout}, | ||
{"SyncInvalidSchemaChange", ErrorCodes::SyncInvalidSchemaChange}, | ||
{"SyncLocalClockBeforeEpoch", ErrorCodes::SyncLocalClockBeforeEpoch}, | ||
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. what does this error even mean? 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. It's an error I added. We use 2015-01-01 as epoch and count the milliseconds since then for the changesets' timestamp. This error is thrown when the local clock is set before that date. |
||
{"SyncPermissionDenied", ErrorCodes::SyncPermissionDenied}, | ||
{"SyncProtocolInvariantFailed", ErrorCodes::SyncProtocolInvariantFailed}, | ||
{"SyncProtocolNegotiationFailed", ErrorCodes::SyncProtocolNegotiationFailed}, | ||
{"SyncSchemaMigrationError", ErrorCodes::SyncSchemaMigrationError}, | ||
{"SyncServerPermissionsChanged", ErrorCodes::SyncServerPermissionsChanged}, | ||
{"SyncUserMismatch", ErrorCodes::SyncUserMismatch}, | ||
{"SyncWriteNotAllowed", ErrorCodes::SyncWriteNotAllowed}, | ||
|
@@ -407,6 +409,7 @@ static const constexpr MapElem string_to_error_code[] = { | |
{"TwilioError", ErrorCodes::TwilioError}, | ||
{"TypeMismatch", ErrorCodes::TypeMismatch}, | ||
{"UnexpectedPrimaryKey", ErrorCodes::UnexpectedPrimaryKey}, | ||
// UnknownError intentionally left out of list | ||
{"UnsupportedFileFormatVersion", ErrorCodes::UnsupportedFileFormatVersion}, | ||
{"UserAlreadyConfirmed", ErrorCodes::UserAlreadyConfirmed}, | ||
{"UserAppDomainMismatch", ErrorCodes::UserAppDomainMismatch}, | ||
|
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.
This was never added to the
string_to_error_code
array.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.
💯
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.
shouldn't the new errors be added to this map? and also assign error categories?
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.
I am reusing existing ErrorCode values and the two added to this list were already assigned error categories (they were just left off this list - I just verified the list and the only other one missing is
UnknownError
this seems to be intentional).