464
left := endEventId - startEventId
465
if !isNewRun && int64(len(xdcCacheValue.EventBlobs)) > left {
467
>
fmt.Sprintf("xdc cached events are truncated, want [%d, %d), got [%d, %d) from cache",
468
>
startEventId, endEventId, startEventId, xdcCacheValue.NextEventID),
469
>
tag.FirstEventVersion(eventVersion),
470
>
tag.WorkflowNamespaceID(workflowKey.NamespaceID),
471
>
tag.WorkflowID(workflowKey.WorkflowID),
472
>
tag.WorkflowRunID(workflowKey.RunID),
473
>
)
474
>
eventBlobs = append(eventBlobs, xdcCacheValue.EventBlobs[:left]...)
475
>
return eventBlobs, nil
476
>
}
477
eventBlobs = append(eventBlobs, xdcCacheValue.EventBlobs...)
478
startEventId = xdcCacheValue.NextEventID