From 650d33704b69aeb154027a61cfc50f398b9fbe39 Mon Sep 17 00:00:00 2001 From: Yu Xia Date: Thu, 17 Mar 2022 09:01:14 -0700 Subject: [PATCH] Remove replication start event sanity check (#2616) --- 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.")