372
func (e *DeserializationError) IsTerminalTaskError() bool { return true }
373
374
>
func (t *serializerImpl) ShardInfoToBlob(info *persistencespb.ShardInfo) (*commonpb.DataBlob, error) {
serializer.go
375
>
return encodeBlob(info, t.encodingType)
376
>
}
377
378
>
func (t *serializerImpl) ShardInfoFromBlob(data *commonpb.DataBlob) (*persistencespb.ShardInfo, error) {
serializer.go
379
>
shardInfo := &persistencespb.ShardInfo{}
380
>
err := Decode(data, shardInfo)
381
>
382
>
if err != nil {
383
return nil, err
384
}
385
386
>
if shardInfo.GetReplicationDlqAckLevel() == nil {
serializer.go
387
shardInfo.ReplicationDlqAckLevel = make(map[string]int64)
388
}
389
391
shardInfo.QueueStates = make(map[int32]*persistencespb.QueueState)
392
}
393
>
for _, queueState := range shardInfo.QueueStates {
serializer.go
394
if queueState.ReaderStates == nil {
395
queueState.ReaderStates = make(map[int64]*persistencespb.QueueReaderState)