346
// since getHistory func will not return empty history, so the below is safe
347
historyBlob = historyBlob[len(historyBlob)-1:]
349
>
history, _, err = api.GetHistory(
350
>
ctx,
351
>
shardContext,
352
>
namespaceName,
353
>
namespaceID,
354
>
execution,
355
>
lastFirstEventID,
356
>
nextEventID,
357
>
request.Request.GetMaximumPageSize(),
358
>
nil,
359
>
nil,
360
>
continuationToken.BranchToken,
361
>
persistenceVisibilityMgr,
362
>
)
363
>
if err != nil {
364
return nil, err
365
}
366
// GetHistory func will not return empty history. Log workflow details if that is not the case
367
>
if len(history.Events) == 0 {
api.go
368
dataLossErr := softassert.UnexpectedDataLoss(
369
shardContext.GetLogger(),