Skip to content

[MS-572] EventDownSyncRequest/EventUpSyncRequest events error type changed to just class name#805

Merged
alex-vt merged 2 commits into
mainfrom
task/MS-572-event-sync-simple-error-type
Jul 10, 2024
Merged

[MS-572] EventDownSyncRequest/EventUpSyncRequest events error type changed to just class name#805
alex-vt merged 2 commits into
mainfrom
task/MS-572-event-sync-simple-error-type

Conversation

@alex-vt
Copy link
Copy Markdown
Contributor

@alex-vt alex-vt commented Jul 10, 2024

The errorType in EventDownSyncRequestEvent and EventUpSyncRequestEvent used to contain the stack trace, which was excessive for logging at the backend.

@cla-bot cla-bot Bot added the ... label Jul 10, 2024
// Track a case when event stream is closed due to a parser error,
// but the exception is handled gracefully and channel is closed correctly.
errorType = it.toString()
errorType = it.javaClass.simpleName
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Maybe you can add a test to prevent regression if someone updates this code (and same for the EventUpSyncTask)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@ybourgery Makes sense, added.

@alex-vt alex-vt requested a review from ybourgery July 10, 2024 13:59
@alex-vt alex-vt force-pushed the task/MS-572-event-sync-simple-error-type branch from 485c97a to a6cf137 Compare July 10, 2024 15:42
@BurningAXE
Copy link
Copy Markdown
Contributor

We have already released a candidate for 2024.1.4. If this is not urgent I suggest you retarget it to main.

@alex-vt alex-vt changed the base branch from release/2024.1.4 to release/2024.1.3 July 10, 2024 16:17
@alex-vt alex-vt changed the base branch from release/2024.1.3 to main July 10, 2024 16:20
@alex-vt alex-vt force-pushed the task/MS-572-event-sync-simple-error-type branch from a6cf137 to 544a55c Compare July 10, 2024 16:45
@sonarqubecloud
Copy link
Copy Markdown

@alex-vt alex-vt merged commit 7e86f55 into main Jul 10, 2024
@alex-vt alex-vt deleted the task/MS-572-event-sync-simple-error-type branch July 10, 2024 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants