Skip to content

Commit

Permalink
Shard lost Owner ship to preserve the owner host (uber#367)
Browse files Browse the repository at this point in the history
  • Loading branch information
sivakku authored Oct 4, 2017
1 parent 81e51c6 commit 3455967
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/history/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ func (h *Handler) convertError(err error) error {
case *persistence.ShardOwnershipLostError:
shardID := err.(*persistence.ShardOwnershipLostError).ShardID
info, err := h.hServiceResolver.Lookup(string(shardID))
if err != nil {
if err == nil {
return createShardOwnershipLostError(h.GetHostInfo().GetAddress(), info.GetAddress())
}
return createShardOwnershipLostError(h.GetHostInfo().GetAddress(), "")
Expand Down

0 comments on commit 3455967

Please sign in to comment.