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

Remove warning message that regarding unknown event type #1300

Merged
merged 4 commits into from
Dec 4, 2023

Conversation

timl3136
Copy link
Member

What changed?
Remove warning message for unknown event type

Why?
It's creating too much warning log that overwhelm system

How did you test it?
Unit test

Potential risks
Only remove logger so no danger

default:
logger.Warn("unknown event type", zap.String("Event Type", event.GetEventType().String()))
// Do not fail to be forward compatible with new events
default: // Do not fail to be forward compatible with new events
Copy link
Member

Choose a reason for hiding this comment

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

you can remove default case since it's no-op

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

@@ -468,10 +468,6 @@ func estimateHistorySize(logger *zap.Logger, event *s.HistoryEvent) int {
sum += len(event.SignalExternalWorkflowExecutionInitiatedEventAttributes.Control)
sum += len(event.SignalExternalWorkflowExecutionInitiatedEventAttributes.Input)
}

default:
logger.Warn("unknown event type", zap.String("Event Type", event.GetEventType().String()))
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe it could be useful to have this log with Debug level?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good idea, let me change that to debug level logs

@timl3136 timl3136 merged commit 16c678e into cadence-workflow:master Dec 4, 2023
@timl3136 timl3136 deleted the history-size-patch branch December 4, 2023 22:56
timl3136 added a commit that referenced this pull request Dec 5, 2023
…on (#1300)

What changed?
Change warning message for unknown event type to debug level

Why?
It's creating too much warning log that overwhelm system

How did you test it?
Unit test

Potential risks
Only remove logger so no danger
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.

3 participants