97
func (e *CacheImpl) validateKey(key EventKey) bool {
98
if len(key.NamespaceID) == 0 || len(key.WorkflowID) == 0 || len(key.RunID) == 0 || key.EventID < common.FirstEventID {
99
>
// This is definitely a bug, but just warn and don't crash so we can find anywhere this happens.
cache.go
100
>
e.logger.Warn("one or more ids is invalid in event cache",
101
>
tag.WorkflowID(key.WorkflowID),
102
>
tag.WorkflowRunID(key.RunID),
103
>
tag.WorkflowNamespaceID(key.NamespaceID.String()),
104
>
tag.WorkflowEventID(key.EventID))
105
>
return false
106
>
}
107
return true
108
}