retry.go ×1

Frontier kind: Code frontier

unlabeled · c_33a6470126af

51 tests · 68 LOC · 3 files · introduces 0 tests · 2 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
1 range2 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
19 ranges68 lines · 3 files · Browse complete extent
All tests (intent)
51 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 specializationmetric_client.go ×3 · 18 introduced LOCmetric_client.go ×3TestConcurrentlyCreateAndAppendBranches · 0 introduced LOCTestConcurrentlyCreateAn…TestConcurrentlyCreateAndAppendBranches · 0 introduced LOCTestConcurrentlyCreateAn…TestConcurrentlyCreateAndAppendBranches · 0 introduced LOCTestConcurrentlyCreateAn…TestConcurrentlyCreateAndAppendBranches · 0 introduced LOCTestConcurrentlyCreateAn…TestConcurrentlyCreateAndAppendBranches · 0 introduced LOCTestConcurrentlyCreateAn…TestConcurrentlyCreateAndAppendBranches · 0 introduced LOCTestConcurrentlyCreateAn…TestConcurrentlyCreateAndAppendBranches · 0 introduced LOCTestConcurrentlyCreateAn…TestNamespaceReplicationDLQ · 0 introduced LOCTestNamespaceReplication…namespace_replication_queue.go ×1 · 5 introduced LOCnamespace_replication_qu…TestConcurrentUpdateNamespace · 0 introduced LOCTestConcurrentUpdateName…TestConcurrentUpdateNamespace · 0 introduced LOCTestConcurrentUpdateName…TestConcurrentUpdateNamespace · 0 introduced LOCTestConcurrentUpdateName…TestRenameNamespaceWithNameConflict · 0 introduced LOCTestRenameNamespaceWithN…TestRenameNamespaceWithNameConflict · 0 introduced LOCTestRenameNamespaceWithN…TestCASFailureUpdateNamespace · 0 introduced LOCTestCASFailureUpdateName…TestRenameNamespaceWithNameConflict · 0 introduced LOCTestRenameNamespaceWithN…TestCASFailureUpdateNamespace · 0 introduced LOCTestCASFailureUpdateName…TestNamespaceReplicationQueue · 0 introduced LOCTestNamespaceReplication…TestCASFailureUpdateNamespace · 0 introduced LOCTestCASFailureUpdateName…persistence_test_base.go ×1 · 3 introduced LOCpersistence_test_base.go…TestConcurrentUpdateNamespace · 0 introduced LOCTestConcurrentUpdateName…TestCASFailureUpdateNamespace · 0 introduced LOCTestCASFailureUpdateName…TestRenameNamespaceWithNameConflict · 0 introduced LOCTestRenameNamespaceWithN…TestConcurrentUpdateNamespace · 0 introduced LOCTestConcurrentUpdateName…TestUpdateNamespaceNotFound · 0 introduced LOCTestUpdateNamespaceNotFo…TestUpdateNamespaceNotFound · 0 introduced LOCTestUpdateNamespaceNotFo…TestUpdateNamespaceNotFound · 0 introduced LOCTestUpdateNamespaceNotFo…TestRenameNamespaceWithNameConflict · 0 introduced LOCTestRenameNamespaceWithN…TestCASFailureUpdateNamespace · 0 introduced LOCTestCASFailureUpdateName…TestConcurrentUpdateNamespace · 0 introduced LOCTestConcurrentUpdateName…TestUpdateNamespaceNotFound · 0 introduced LOCTestUpdateNamespaceNotFo…TestRenameNamespaceWithNameConflict · 0 introduced LOCTestRenameNamespaceWithN…TestCASFailureUpdateNamespace · 0 introduced LOCTestCASFailureUpdateName…metadata_persistence_v2.go ×4 · 111 introduced LOCmetadata_persistence_v2.…TestConcurrentUpdateNamespace · 0 introduced LOCTestConcurrentUpdateName…TestUpdateNamespaceNotFound · 0 introduced LOCTestUpdateNamespaceNotFo…TestCASFailureUpdateNamespace · 0 introduced LOCTestCASFailureUpdateName…TestRenameNamespaceWithNameConflict · 0 introduced LOCTestRenameNamespaceWithN…metadata_store.go ×1 · 2 introduced LOCmetadata_store.go ×1metadata_store.go ×1 · 2 introduced LOCmetadata_store.go ×1TestUpdateNamespaceNotFound · 0 introduced LOCTestUpdateNamespaceNotFo…metadata.go ×1 · 2 introduced LOCmetadata.go ×1metadata.go ×1 · 6 introduced LOCmetadata.go ×1history_v2_persistence.go ×5 · 136 introduced LOChistory_v2_persistence.g…metadata.go ×1 · 2 introduced LOCmetadata.go ×1metadata_persistence_v2.go ×2 · 138 introduced LOCmetadata_persistence_v2.…metadata_persistence_v2.go ×1 · 93 introduced LOCmetadata_persistence_v2.…metadata_persistence_v2.go ×1 · 98 introduced LOCmetadata_persistence_v2.…TestAcquireShardNonOwnershipLostErrorIsRetried · 0 introduced LOCTestAcquireShardNonOwner…NewClusterMetadataPersistenceRetryableClient · 0 introduced LOCNewClusterMetadataPersis…NewExecutionPersistenceRetryableClient · 0 introduced LOCNewExecutionPersistenceR…NewMetadataPersistenceRetryableClient · 0 introduced LOCNewMetadataPersistenceRe…NewShardPersistenceRetryableClient · 0 introduced LOCNewShardPersistenceRetry…data_interfaces_mock.go ×2 · 11 introduced LOCdata_interfaces_mock.go …store_mock.go ×2 · 10 introduced LOCstore_mock.go ×2persistence_retryable_clients.go ×1 · 9 introduced LOCpersistence_retryable_cl…flag_off_caps_at_2_attempts · 0 introduced LOCflag_off_caps_at_2_attem…TestThrottleRetryContext · 0 introduced LOCTestThrottleRetryContextTestRetryFailed · 0 introduced LOCTestRetryFailedretry.go ×1 · 1 introduced LOCretry.go ×1retry.go ×1 · 2 introduced LOCretry.go ×1retry.go ×2 · 2 introduced LOCretry.go ×2retry.go ×2 · 2 introduced LOCretry.go ×2retry.go ×1 · 1 introduced LOCretry.go ×1retry.go ×2 · 11 introduced LOCretry.go ×2retrypolicy.go ×2 · 10 introduced LOCretrypolicy.go ×2retrypolicy.go ×1 · 4 introduced LOCretrypolicy.go ×1retrypolicy.go ×1 · 8 introduced LOCretrypolicy.go ×1retrypolicy.go ×3 · 19 introduced LOCretrypolicy.go ×3time_source.go ×1 · 3 introduced LOCtime_source.go ×1time_source.go ×1 · 3 introduced LOCtime_source.go ×1TestOperatorServiceMetadata, TestWorkflowServiceMetadata · 0 introduced LOCTestOperatorServiceMetad…go.temporal.io/server/api/persistence/v1/executions.pb.go · 5768 LOCv1/executions.pb.gogo.temporal.io/server/api/persistence/v1/namespaces.pb.go · 560 LOCv1/namespaces.pb.gogo.temporal.io/server/client/history/client_gen.go · 1548 LOChistory/client_gen.gogo.temporal.io/server/client/history/metric_client.go · 119 LOChistory/metric_client.gogo.temporal.io/server/common/backoff/retry.go · 207 LOCbackoff/retry.gogo.temporal.io/server/common/backoff/retrypolicy.go · 347 LOCbackoff/retrypolicy.gogo.temporal.io/server/common/clock/time_source.go · 56 LOCclock/time_source.gogo.temporal.io/server/common/log/tag/tags.go · 1039 LOCtag/tags.gogo.temporal.io/server/common/persistence/cassandra/metadata_store.go · 519 LOCcassandra/metadata_store…go.temporal.io/server/common/persistence/data_interfaces_mock.go · 1462 LOCpersistence/data_interfa…go.temporal.io/server/common/persistence/history_manager.go · 1139 LOCpersistence/history_mana…go.temporal.io/server/common/persistence/mock/store_mock.go · 1698 LOCmock/store_mock.gogo.temporal.io/server/common/persistence/namespace_replication_queue.go · 331 LOCpersistence/namespace_re…go.temporal.io/server/common/persistence/persistence-tests/history_v2_persistence.go · 840 LOCpersistence-tests/histor…go.temporal.io/server/common/persistence/persistence-tests/metadata_persistence_v2.go · 2360 LOCpersistence-tests/metada…go.temporal.io/server/common/persistence/persistence-tests/persistence_test_base.go · 448 LOCpersistence-tests/persis…go.temporal.io/server/common/persistence/persistence_retryable_clients.go · 1262 LOCpersistence/persistence_…go.temporal.io/server/common/persistence/sql/metadata.go · 291 LOCsql/metadata.gogo.temporal.io/server/service/frontend/workflow_handler.go · 7521 LOCfrontend/workflow_handle…flag_off_caps_at_2_attempts · introduced test · go.temporal.io/server/common/TestCreateHistoryClientRetryPolicy_ThrottleRetryContext/flag_off_caps_at_2_attemptsflag_off_caps_at_2_attem…TestOperatorServiceMetadata · introduced test · go.temporal.io/server/common/api/TestOperatorServiceMetadataTestOperatorServiceMetad…TestWorkflowServiceMetadata · introduced test · go.temporal.io/server/common/api/TestWorkflowServiceMetadataTestWorkflowServiceMetad…TestRetryFailed · introduced test · go.temporal.io/server/common/backoff/TestRetrySuite/TestRetryFailedTestRetryFailedTestThrottleRetryContext · introduced test · go.temporal.io/server/common/backoff/TestRetrySuite/TestThrottleRetryContextTestThrottleRetryContextTestNewRealClock_Now · introduced test · go.temporal.io/server/common/clock/TestNewRealClock_NowTestNewRealClock_NowNewClusterMetadataPersistenceRetryableClient · introduced test · go.temporal.io/server/common/persistence/TestPersistence_RetryDataLossErrors/NewClusterMetadataPersistenceRetryableClientNewClusterMetadataPersis…NewExecutionPersistenceRetryableClient · introduced test · go.temporal.io/server/common/persistence/TestPersistence_RetryDataLossErrors/NewExecutionPersistenceRetryableClientNewExecutionPersistenceR…NewMetadataPersistenceRetryableClient · introduced test · go.temporal.io/server/common/persistence/TestPersistence_RetryDataLossErrors/NewMetadataPersistenceRetryableClientNewMetadataPersistenceRe…NewNexusEndpointPersistenceRetryableClient( · introduced test · go.temporal.io/server/common/persistence/TestPersistence_RetryDataLossErrors/NewNexusEndpointPersistenceRetryableClient(NewNexusEndpointPersiste…NewQueuePersistenceRetryableClient( · introduced test · go.temporal.io/server/common/persistence/TestPersistence_RetryDataLossErrors/NewQueuePersistenceRetryableClient(NewQueuePersistenceRetry…NewShardPersistenceRetryableClient · introduced test · go.temporal.io/server/common/persistence/TestPersistence_RetryDataLossErrors/NewShardPersistenceRetryableClientNewShardPersistenceRetry…NewTaskPersistenceRetryableClient · introduced test · go.temporal.io/server/common/persistence/TestPersistence_RetryDataLossErrors/NewTaskPersistenceRetryableClientNewTaskPersistenceRetrya…TestConcurrentlyCreateAndAppendBranches · introduced test · go.temporal.io/server/common/persistence/tests/TestCassandraHistoryV2Persistence/TestConcurrentlyCreateAndAppendBranchesTestConcurrentlyCreateAn…TestCASFailureUpdateNamespace · introduced test · go.temporal.io/server/common/persistence/tests/TestCassandraMetadataPersistenceV2/TestCASFailureUpdateNamespaceTestCASFailureUpdateName…TestConcurrentUpdateNamespace · introduced test · go.temporal.io/server/common/persistence/tests/TestCassandraMetadataPersistenceV2/TestConcurrentUpdateNamespaceTestConcurrentUpdateName…TestRenameNamespaceCassandra · introduced test · go.temporal.io/server/common/persistence/tests/TestCassandraMetadataPersistenceV2/TestRenameNamespaceCassandraTestRenameNamespaceCassa…TestRenameNamespaceWithNameConflict · introduced test · go.temporal.io/server/common/persistence/tests/TestCassandraMetadataPersistenceV2/TestRenameNamespaceWithNameConflictTestRenameNamespaceWithN…TestConcurrentlyCreateAndAppendBranches · introduced test · go.temporal.io/server/common/persistence/tests/TestMySQLHistoryV2PersistenceSuite/TestConcurrentlyCreateAndAppendBranchesTestConcurrentlyCreateAn…TestCASFailureUpdateNamespace · introduced test · go.temporal.io/server/common/persistence/tests/TestMySQLMetadataPersistenceSuiteV2/TestCASFailureUpdateNamespaceTestCASFailureUpdateName…TestConcurrentUpdateNamespace · introduced test · go.temporal.io/server/common/persistence/tests/TestMySQLMetadataPersistenceSuiteV2/TestConcurrentUpdateNamespaceTestConcurrentUpdateName…TestRenameNamespaceWithNameConflict · introduced test · go.temporal.io/server/common/persistence/tests/TestMySQLMetadataPersistenceSuiteV2/TestRenameNamespaceWithNameConflictTestRenameNamespaceWithN…TestUpdateNamespaceNotFound · introduced test · go.temporal.io/server/common/persistence/tests/TestMySQLMetadataPersistenceSuiteV2/TestUpdateNamespaceNotFoundTestUpdateNamespaceNotFo…TestConcurrentlyCreateAndAppendBranches · introduced test · go.temporal.io/server/common/persistence/tests/TestPGX/TestPostgreSQLHistoryV2PersistenceSuite/TestConcurrentlyCreateAndAppendBranchesTestConcurrentlyCreateAn…TestCASFailureUpdateNamespace · introduced test · go.temporal.io/server/common/persistence/tests/TestPGX/TestPostgreSQLMetadataPersistenceSuiteV2/TestCASFailureUpdateNamespaceTestCASFailureUpdateName…TestConcurrentUpdateNamespace · introduced test · go.temporal.io/server/common/persistence/tests/TestPGX/TestPostgreSQLMetadataPersistenceSuiteV2/TestConcurrentUpdateNamespaceTestConcurrentUpdateName…TestRenameNamespaceWithNameConflict · introduced test · go.temporal.io/server/common/persistence/tests/TestPGX/TestPostgreSQLMetadataPersistenceSuiteV2/TestRenameNamespaceWithNameConflictTestRenameNamespaceWithN…TestUpdateNamespaceNotFound · introduced test · go.temporal.io/server/common/persistence/tests/TestPGX/TestPostgreSQLMetadataPersistenceSuiteV2/TestUpdateNamespaceNotFoundTestUpdateNamespaceNotFo…TestNamespaceReplicationDLQ · introduced test · go.temporal.io/server/common/persistence/tests/TestPGX/TestPostgreSQLQueuePersistence/TestNamespaceReplicationDLQTestNamespaceReplication…TestNamespaceReplicationQueue · introduced test · go.temporal.io/server/common/persistence/tests/TestPGX/TestPostgreSQLQueuePersistence/TestNamespaceReplicationQueueTestNamespaceReplication…TestConcurrentlyCreateAndAppendBranches · introduced test · go.temporal.io/server/common/persistence/tests/TestPGXSP/TestPostgreSQLHistoryV2PersistenceSuite/TestConcurrentlyCreateAndAppendBranchesTestConcurrentlyCreateAn…TestCASFailureUpdateNamespace · introduced test · go.temporal.io/server/common/persistence/tests/TestPGXSP/TestPostgreSQLMetadataPersistenceSuiteV2/TestCASFailureUpdateNamespaceTestCASFailureUpdateName…TestConcurrentUpdateNamespace · introduced test · go.temporal.io/server/common/persistence/tests/TestPGXSP/TestPostgreSQLMetadataPersistenceSuiteV2/TestConcurrentUpdateNamespaceTestConcurrentUpdateName…TestRenameNamespaceWithNameConflict · introduced test · go.temporal.io/server/common/persistence/tests/TestPGXSP/TestPostgreSQLMetadataPersistenceSuiteV2/TestRenameNamespaceWithNameConflictTestRenameNamespaceWithN…TestUpdateNamespaceNotFound · introduced test · go.temporal.io/server/common/persistence/tests/TestPGXSP/TestPostgreSQLMetadataPersistenceSuiteV2/TestUpdateNamespaceNotFoundTestUpdateNamespaceNotFo…TestNamespaceReplicationDLQ · introduced test · go.temporal.io/server/common/persistence/tests/TestPGXSP/TestPostgreSQLQueuePersistence/TestNamespaceReplicationDLQTestNamespaceReplication…TestNamespaceReplicationQueue · introduced test · go.temporal.io/server/common/persistence/tests/TestPGXSP/TestPostgreSQLQueuePersistence/TestNamespaceReplicationQueueTestNamespaceReplication…TestConcurrentlyCreateAndAppendBranches · introduced test · go.temporal.io/server/common/persistence/tests/TestPQ/TestPostgreSQLHistoryV2PersistenceSuite/TestConcurrentlyCreateAndAppendBranchesTestConcurrentlyCreateAn…TestCASFailureUpdateNamespace · introduced test · go.temporal.io/server/common/persistence/tests/TestPQ/TestPostgreSQLMetadataPersistenceSuiteV2/TestCASFailureUpdateNamespaceTestCASFailureUpdateName…TestConcurrentUpdateNamespace · introduced test · go.temporal.io/server/common/persistence/tests/TestPQ/TestPostgreSQLMetadataPersistenceSuiteV2/TestConcurrentUpdateNamespaceTestConcurrentUpdateName…TestRenameNamespaceWithNameConflict · introduced test · go.temporal.io/server/common/persistence/tests/TestPQ/TestPostgreSQLMetadataPersistenceSuiteV2/TestRenameNamespaceWithNameConflictTestRenameNamespaceWithN…TestUpdateNamespaceNotFound · introduced test · go.temporal.io/server/common/persistence/tests/TestPQ/TestPostgreSQLMetadataPersistenceSuiteV2/TestUpdateNamespaceNotFoundTestUpdateNamespaceNotFo…TestConcurrentlyCreateAndAppendBranches · introduced test · go.temporal.io/server/common/persistence/tests/TestSQLiteFileHistoryV2PersistenceSuite/TestConcurrentlyCreateAndAppendBranchesTestConcurrentlyCreateAn…TestCASFailureUpdateNamespace · introduced test · go.temporal.io/server/common/persistence/tests/TestSQLiteFileMetadataPersistenceSuiteV2/TestCASFailureUpdateNamespaceTestCASFailureUpdateName…TestConcurrentUpdateNamespace · introduced test · go.temporal.io/server/common/persistence/tests/TestSQLiteFileMetadataPersistenceSuiteV2/TestConcurrentUpdateNamespaceTestConcurrentUpdateName…TestRenameNamespaceWithNameConflict · introduced test · go.temporal.io/server/common/persistence/tests/TestSQLiteFileMetadataPersistenceSuiteV2/TestRenameNamespaceWithNameConflictTestRenameNamespaceWithN…TestUpdateNamespaceNotFound · introduced test · go.temporal.io/server/common/persistence/tests/TestSQLiteFileMetadataPersistenceSuiteV2/TestUpdateNamespaceNotFoundTestUpdateNamespaceNotFo…TestConcurrentlyCreateAndAppendBranches · introduced test · go.temporal.io/server/common/persistence/tests/TestSQLiteHistoryV2PersistenceSuite/TestConcurrentlyCreateAndAppendBranchesTestConcurrentlyCreateAn…TestCASFailureUpdateNamespace · introduced test · go.temporal.io/server/common/persistence/tests/TestSQLiteMetadataPersistenceSuiteV2/TestCASFailureUpdateNamespaceTestCASFailureUpdateName…TestConcurrentUpdateNamespace · introduced test · go.temporal.io/server/common/persistence/tests/TestSQLiteMetadataPersistenceSuiteV2/TestConcurrentUpdateNamespaceTestConcurrentUpdateName…TestRenameNamespaceWithNameConflict · introduced test · go.temporal.io/server/common/persistence/tests/TestSQLiteMetadataPersistenceSuiteV2/TestRenameNamespaceWithNameConflictTestRenameNamespaceWithN…TestUpdateNamespaceNotFound · introduced test · go.temporal.io/server/common/persistence/tests/TestSQLiteMetadataPersistenceSuiteV2/TestUpdateNamespaceNotFoundTestUpdateNamespaceNotFo…TestAcquireShardNonOwnershipLostErrorIsRetried · introduced test · go.temporal.io/server/service/history/shard/TestShardContextSuite/TestAcquireShardNonOwnershipLostErrorIsRetriedTestAcquireShardNonOwner…TestNewServerWithJSONEncoding · introduced test · go.temporal.io/server/temporal/TestNewServerWithJSONEncodingTestNewServerWithJSONEnc…Focused concept · retry.go ×1 · 2 introduced LOCretry.go ×1

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: 2 introduced LOC across 1 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/common/backoff/retry.go 2 introduced LOC · 1 range

Open complete file

72
73 if next = r.NextBackOff(err); next == done {
74 > return err retry.go
75 > }
76
77 if err == ctx.Err() || !isRetryable(err) {