buffer.go ×2

Frontier kind: Code frontier

unlabeled · c_4c57c5fd638b

28 tests · 6 LOC · 1 file · introduces 0 tests · 6 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
2 ranges6 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
2 ranges6 lines · 1 file · Browse complete extent
All tests (intent)
28 testsBrowse complete intent

Neighbourhood graph

The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.

Introduced files, introduced tests, and structurally relevant concept specialization

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.

Introduced files, introduced tests, and structurally relevant concept specializationapi.go ×2 · 8 introduced LOCapi.go ×2workflow_task_completed_handler.go ×1 · 3 introduced LOCworkflow_task_completed_…workflow_task_completed_handler.go ×1 · 10 introduced LOCworkflow_task_completed_…Write_failed_on_normal_task_queue · 0 introduced LOCWrite_failed_on_normal_t…api.go ×4 · 29 introduced LOCapi.go ×4api.go ×1 · 4 introduced LOCapi.go ×1workflow_task_completed_handler.go ×1 · 8 introduced LOCworkflow_task_completed_…command_attr_validator.go ×1 · 5 introduced LOCcommand_attr_validator.g…workflow_task_completed_handler.go ×1 · 2 introduced LOCworkflow_task_completed_…workflow_task_completed_handler.go ×1 · 2 introduced LOCworkflow_task_completed_…workflow_task_completed_handler.go ×1 · 5 introduced LOCworkflow_task_completed_…update.go ×2 · 4 introduced LOCupdate.go ×2api.go ×3 · 18 introduced LOCapi.go ×3workflow_task_completed_handler.go ×1 · 8 introduced LOCworkflow_task_completed_…workflow_task_completed_handler.go ×1 · 12 introduced LOCworkflow_task_completed_…tags.go ×1 · 3 introduced LOCtags.go ×1mutable_state_impl.go ×1 · 4 introduced LOCmutable_state_impl.go ×1mutable_state_impl.go ×5 · 36 introduced LOCmutable_state_impl.go ×5TestRespondWorkflowTaskCompletedUpdateExecutionFailed · 0 introduced LOCTestRespondWorkflowTaskC…workflow_task_completed_handler.go ×1 · 2 introduced LOCworkflow_task_completed_…api.go ×3 · 14 introduced LOCapi.go ×3workflow_task_completed_handler.go ×1 · 1 introduced LOCworkflow_task_completed_…api.go ×8 · 62 introduced LOCapi.go ×8api.go ×3 · 4 introduced LOCapi.go ×3api.go ×1 · 5 introduced LOCapi.go ×1workflow_task_completed_handler.go ×1 · 2 introduced LOCworkflow_task_completed_…Buffer_lost_on_eviction_between_pages · 0 introduced LOCBuffer_lost_on_eviction_…Buffer_lost_when_an_intermediate_page_is_missing · 0 introduced LOCBuffer_lost_when_an_inte…api.go ×1 · 3 introduced LOCapi.go ×1context.go ×1 · 3 introduced LOCcontext.go ×1api.go ×1 · 2 introduced LOCapi.go ×1api.go ×1 · 5 introduced LOCapi.go ×1api.go ×1 · 2 introduced LOCapi.go ×1update.go ×1 · 3 introduced LOCupdate.go ×1update.go ×1 · 1 introduced LOCupdate.go ×1update.go ×2 · 2 introduced LOCupdate.go ×2fail_to_transition_to_stateCompleted_on_store_write_failure · 0 introduced LOCfail_to_transition_to_st…update.go ×2 · 6 introduced LOCupdate.go ×2update.go ×1 · 1 introduced LOCupdate.go ×1update.go ×1 · 1 introduced LOCupdate.go ×1TestBufferApplyAfterCancel · 0 introduced LOCTestBufferApplyAfterCanc…TestBufferCancelAfterApply · 0 introduced LOCTestBufferCancelAfterApp…buffer.go ×1 · 3 introduced LOCbuffer.go ×1TestOperatorServiceMetadata, TestWorkflowServiceMetadata · 0 introduced LOCTestOperatorServiceMetad…go.temporal.io/server/common/effect/buffer.go · 52 LOCeffect/buffer.gogo.temporal.io/server/common/log/tag/tags.go · 1039 LOCtag/tags.gogo.temporal.io/server/common/namespace/mutate.go · 85 LOCnamespace/mutate.gogo.temporal.io/server/common/namespace/namespace.go · 377 LOCnamespace/namespace.gogo.temporal.io/server/common/persistence/history_manager_util.go · 171 LOCpersistence/history_mana…go.temporal.io/server/common/testing/testvars/test_vars.go · 460 LOCtestvars/test_vars.gogo.temporal.io/server/service/history/api/command_attr_validator.go · 688 LOCapi/command_attr_validat…go.temporal.io/server/service/history/api/get_history_util.go · 639 LOCapi/get_history_util.gogo.temporal.io/server/service/history/api/respondworkflowtaskcompleted/api.go · 1173 LOCrespondworkflowtaskcompl…go.temporal.io/server/service/history/api/respondworkflowtaskcompleted/workflow_task_completed_handler.go · 1625 LOCrespondworkflowtaskcompl…go.temporal.io/server/service/history/shard/context_testutil.go · 243 LOCshard/context_testutil.g…go.temporal.io/server/service/history/workflow/context.go · 1480 LOCworkflow/context.gogo.temporal.io/server/service/history/workflow/mutable_state_impl.go · 9930 LOCworkflow/mutable_state_i…go.temporal.io/server/service/history/workflow/update/state.go · 59 LOCupdate/state.gogo.temporal.io/server/service/history/workflow/update/update.go · 851 LOCupdate/update.gogo.temporal.io/server/service/history/workflow/workflow_task_state_machine.go · 1602 LOCworkflow/workflow_task_s…TestOperatorServiceMetadata · introduced test · go.temporal.io/server/common/api/TestOperatorServiceMetadataTestOperatorServiceMetad…TestWorkflowServiceMetadata · introduced test · go.temporal.io/server/common/api/TestWorkflowServiceMetadataTestWorkflowServiceMetad…TestBufferApplyAfterCancel · introduced test · go.temporal.io/server/common/effect/TestBufferApplyAfterCancelTestBufferApplyAfterCanc…TestBufferCancelAfterApply · introduced test · go.temporal.io/server/common/effect/TestBufferCancelAfterApplyTestBufferCancelAfterApp…TestBufferRollbackOrder · introduced test · go.temporal.io/server/common/effect/TestBufferRollbackOrderTestBufferRollbackOrderTestRespondWorkflowTaskCompleted_StartChildWorkflow_ExceedsLimit · introduced test · go.temporal.io/server/service/history/TestEngine2Suite/TestRespondWorkflowTaskCompleted_StartChildWorkflow_ExceedsLimitTestRespondWorkflowTaskC…TestCancelTimer_RespondWorkflowTaskCompleted_NoStartTimer · introduced test · go.temporal.io/server/service/history/TestEngineSuite/TestCancelTimer_RespondWorkflowTaskCompleted_NoStartTimerTestCancelTimer_RespondW…TestRequestCancel_RespondWorkflowTaskCompleted_NotScheduled · introduced test · go.temporal.io/server/service/history/TestEngineSuite/TestRequestCancel_RespondWorkflowTaskCompleted_NotScheduledTestRequestCancel_Respon…TestRespondWorkflowTaskCompletedBadBinary · introduced test · go.temporal.io/server/service/history/TestEngineSuite/TestRespondWorkflowTaskCompletedBadBinaryTestRespondWorkflowTaskC…TestRespondWorkflowTaskCompletedBadCommandAttributes · introduced test · go.temporal.io/server/service/history/TestEngineSuite/TestRespondWorkflowTaskCompletedBadCommandAttributesTestRespondWorkflowTaskC…TestRespondWorkflowTaskCompletedCompleteWorkflowFailed · introduced test · go.temporal.io/server/service/history/TestEngineSuite/TestRespondWorkflowTaskCompletedCompleteWorkflowFailedTestRespondWorkflowTaskC…TestRespondWorkflowTaskCompletedConflictOnUpdate · introduced test · go.temporal.io/server/service/history/TestEngineSuite/TestRespondWorkflowTaskCompletedConflictOnUpdateTestRespondWorkflowTaskC…TestRespondWorkflowTaskCompletedFailWorkflowFailed · introduced test · go.temporal.io/server/service/history/TestEngineSuite/TestRespondWorkflowTaskCompletedFailWorkflowFailedTestRespondWorkflowTaskC…TestRespondWorkflowTaskCompletedSignalExternalWorkflowFailed_UnKnownNamespace · introduced test · go.temporal.io/server/service/history/TestEngineSuite/TestRespondWorkflowTaskCompletedSignalExternalWorkflowFailed_UnKnownNamespaceTestRespondWorkflowTaskC…TestRespondWorkflowTaskCompletedSingleActivityScheduledAttribute · introduced test · go.temporal.io/server/service/history/TestEngineSuite/TestRespondWorkflowTaskCompletedSingleActivityScheduledAttributeTestRespondWorkflowTaskC…TestRespondWorkflowTaskCompletedUpdateExecutionFailed · introduced test · go.temporal.io/server/service/history/TestEngineSuite/TestRespondWorkflowTaskCompletedUpdateExecutionFailedTestRespondWorkflowTaskC…TestRespondWorkflowTaskCompleted_WorkflowTaskHeartbeatTimeout · introduced test · go.temporal.io/server/service/history/TestEngineSuite/TestRespondWorkflowTaskCompleted_WorkflowTaskHeartbeatTimeoutTestRespondWorkflowTaskC…TestStarTimer_DuplicateTimerID · introduced test · go.temporal.io/server/service/history/TestEngineSuite/TestStarTimer_DuplicateTimerIDTestStarTimer_DuplicateT…GetHistory_failed · introduced test · go.temporal.io/server/service/history/api/respondworkflowtaskcompleted/TestWorkflowTaskCompletedHandlerSuite/TestUpdateWorkflow/GetHistory_failedGetHistory_failedWrite_failed_on_normal_task_queue · introduced test · go.temporal.io/server/service/history/api/respondworkflowtaskcompleted/TestWorkflowTaskCompletedHandlerSuite/TestUpdateWorkflow/Write_failed_on_normal_task_queueWrite_failed_on_normal_t…Write_failed_on_sticky_task_queue · introduced test · go.temporal.io/server/service/history/api/respondworkflowtaskcompleted/TestWorkflowTaskCompletedHandlerSuite/TestUpdateWorkflow/Write_failed_on_sticky_task_queueWrite_failed_on_sticky_t…Buffer_lost_on_eviction_between_pages · introduced test · go.temporal.io/server/service/history/api/respondworkflowtaskcompleted/TestWorkflowTaskCompletedHandlerSuite/TestWorkflowTaskCompletionPagination/Buffer_lost_on_eviction_between_pagesBuffer_lost_on_eviction_…Buffer_lost_when_an_intermediate_page_is_missing · introduced test · go.temporal.io/server/service/history/api/respondworkflowtaskcompleted/TestWorkflowTaskCompletedHandlerSuite/TestWorkflowTaskCompletionPagination/Buffer_lost_when_an_intermediate_page_is_missingBuffer_lost_when_an_inte…Empty_intermediate_page_is_rejected · introduced test · go.temporal.io/server/service/history/api/respondworkflowtaskcompleted/TestWorkflowTaskCompletedHandlerSuite/TestWorkflowTaskCompletionPagination/Empty_intermediate_page_is_rejectedEmpty_intermediate_page_…Pagination_request_rejected_when_pagination_is_disabled · introduced test · go.temporal.io/server/service/history/api/respondworkflowtaskcompleted/TestWorkflowTaskCompletedHandlerSuite/TestWorkflowTaskCompletionPagination/Pagination_request_rejected_when_pagination_is_disabledPagination_request_rejec…Per_workflow_buffer_overflow_terminates_the_workflow · introduced test · go.temporal.io/server/service/history/api/respondworkflowtaskcompleted/TestWorkflowTaskCompletedHandlerSuite/TestWorkflowTaskCompletionPagination/Per_workflow_buffer_overflow_terminates_the_workflowPer_workflow_buffer_over…fail_to_transition_to_stateCompleted_on_store_write_failure · introduced test · go.temporal.io/server/service/history/workflow/update/TestUpdateState/in_stateAccepted/fail_to_transition_to_stateCompleted_on_store_write_failurefail_to_transition_to_st…fail_to_transition_to_stateAdmitted_on_store_write_failure · introduced test · go.temporal.io/server/service/history/workflow/update/TestUpdateState/in_stateCreated/fail_to_transition_to_stateAdmitted_on_store_write_failurefail_to_transition_to_st…stateCompleted_on_store_write_failure · introduced test · go.temporal.io/server/service/history/workflow/update/TestUpdateState/in_stateSent/fail_to_transition_to_stateAccepted/stateCompleted_on_store_write_failurestateCompleted_on_store_…fail_to_transition_to_stateRejected_on_store_write_failure · introduced test · go.temporal.io/server/service/history/workflow/update/TestUpdateState/in_stateSent/fail_to_transition_to_stateRejected_on_store_write_failurefail_to_transition_to_st…Focused concept · buffer.go ×2 · 6 introduced LOCbuffer.go ×2

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

No tests are introduced at this concept. Its intent tests are introduced by other concepts.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

1 file ranked by introduced lines: 6 introduced LOC across 2 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/common/effect/buffer.go 6 introduced LOC · 2 ranges

Open complete file

41 // that they were added to this Buffer.
42 // It returns true if any effects were canceled.
43 > func (b *Buffer) Cancel(ctx context.Context) bool { buffer.go
44 > canceled := false
45 > b.effects = nil
46 > for i := len(b.cancels) - 1; i >= 0; i-- {
47 b.cancels[i](ctx)
48 canceled = true
49 }
50 > b.cancels = nil buffer.go
51 > return canceled
52 }