Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • docs/pages-templates-selection-score
  • slashmanov/rapid-diffs-file-tree-toggle
  • pedropombeiro/523243/ensure_unique_id-on-runner-tables
  • 470699-present-data
  • 487363-move-maven-vreg-services-to-EE
  • duo-usecase-draft
  • sk/fix-rules-index
  • glql-crud
  • backfill-desired-sharding-key-large-table-deployment_merge_requests
  • ph/16123/mrRevertLink
  • pedropombeiro/504965/2-replace-ci_runner_machines-with-partitioned-table
  • 331741-backend
  • jmd/record-auto-explain-query-id-zero
  • graphql_custom_fields_argument_for_issues_and_work_items
  • axil-add-lynchee-to-lint-doc
  • 522883-notify-user-when-project-group-queued-for-deletion
  • morefice/schedule-deletion-extra-partitions-web-hook-log
  • axil-overview-okr-backup
  • 519111-add-project-ids-to-value-stream-stage-metrics-resolver
  • v17.7.6-ee protected
  • v17.8.4-ee protected
  • v17.9.1-ee protected
  • v17.8.3-ee protected
  • v17.7.5-ee protected
  • v17.9.0-ee protected
  • v17.9.0-rc42-ee protected
  • v17.6.5-ee protected
  • v17.7.4-ee protected
  • v17.8.2-ee protected
  • v17.6.4-ee protected
  • v17.7.3-ee protected
  • v17.8.1-ee protected
  • v17.8.0-ee protected
  • v17.7.2-ee protected
  • v17.8.0-rc42-ee protected
  • v17.5.5-ee protected
  • v17.6.3-ee protected
  • v17.7.1-ee protected
  • v17.7.0-ee protected
40 results

snippet_repository_spec.rb

  • Igor Drozdov's avatar
    51c0904a
    Make snippet creation resilient to replication lag · 51c0904a
    Igor Drozdov authored
    When a snippet is being created, it inserts a record in the
    database and then performs a Gitaly call to create Git data.
    
    The Gitaly call performs HTTP request for permission check and
    if replication lag takes place, those HTTP calls may try fetching
    data from a replica that is not up-to-date yet.
    
    This commit:
    
    - Sticks to primary before performing the Gitaly call
    - Make the internal API requests aware of the sticking
    
    Changelog: fixed
    Verified
    51c0904a
    History
    Make snippet creation resilient to replication lag
    Igor Drozdov authored
    When a snippet is being created, it inserts a record in the
    database and then performs a Gitaly call to create Git data.
    
    The Gitaly call performs HTTP request for permission check and
    if replication lag takes place, those HTTP calls may try fetching
    data from a replica that is not up-to-date yet.
    
    This commit:
    
    - Sticks to primary before performing the Gitaly call
    - Make the internal API requests aware of the sticking
    
    Changelog: fixed
Code owners
Assign users and groups as approvers for specific file changes. Learn more.