From 857174b92b22a1cf3ab4f8bfb79743c6f4d6623d Mon Sep 17 00:00:00 2001 From: yux0 Date: Wed, 16 Mar 2022 21:24:09 -0700 Subject: [PATCH] Remove replication start event sanity check --- service/frontend/adminHandler.go | 5 ----- service/frontend/errors.go | 2 -- 2 files changed, 7 deletions(-) diff --git a/service/frontend/adminHandler.go b/service/frontend/adminHandler.go index 7ecef979e76..3e2f9b13444 100644 --- a/service/frontend/adminHandler.go +++ b/service/frontend/adminHandler.go @@ -1494,11 +1494,6 @@ func (adh *AdminHandler) validateGetWorkflowExecutionRawHistoryV2Request( return errInvalidEventQueryRange } - if (request.GetStartEventId() != common.EmptyEventID && request.GetStartEventVersion() == common.EmptyVersion) || - (request.GetStartEventId() == common.EmptyEventID && request.GetStartEventVersion() != common.EmptyVersion) { - return errInvalidStartEventCombination - } - return nil } diff --git a/service/frontend/errors.go b/service/frontend/errors.go index b47374335f9..5c0957a617d 100644 --- a/service/frontend/errors.go +++ b/service/frontend/errors.go @@ -65,8 +65,6 @@ var ( errInvalidPageSize = serviceerror.NewInvalidArgument("Invalid PageSize.") errInvalidPaginationToken = serviceerror.NewInvalidArgument("Invalid pagination token.") errInvalidFirstNextEventCombination = serviceerror.NewInvalidArgument("Invalid FirstEventId and NextEventId combination.") - errInvalidStartEventCombination = serviceerror.NewInvalidArgument("Invalid StartEventId and StartEventVersion combination.") - errInvalidEndEventCombination = serviceerror.NewInvalidArgument("Invalid EndEventId and EndEventVersion combination.") errInvalidVersionHistories = serviceerror.NewInvalidArgument("Invalid version histories.") errInvalidEventQueryRange = serviceerror.NewInvalidArgument("Invalid event query range.") errDLQTypeIsNotSupported = serviceerror.NewInvalidArgument("The DLQ type is not supported.")