@@ -21,7 +21,6 @@ import (
2121 "time"
2222
2323 apd "github.com/cockroachdb/apd/v3"
24- "github.com/cockroachdb/cockroach/pkg/backup/backuppb"
2524 "github.com/cockroachdb/cockroach/pkg/base"
2625 "github.com/cockroachdb/cockroach/pkg/cloud/externalconn"
2726 "github.com/cockroachdb/cockroach/pkg/clusterversion"
@@ -41,7 +40,6 @@ import (
4140 "github.com/cockroachdb/cockroach/pkg/kv/kvclient/rangecache"
4241 "github.com/cockroachdb/cockroach/pkg/kv/kvclient/rangefeed"
4342 "github.com/cockroachdb/cockroach/pkg/kv/kvclient/rangefeed/rangefeedcache"
44- "github.com/cockroachdb/cockroach/pkg/kv/kvpb"
4543 "github.com/cockroachdb/cockroach/pkg/kv/kvserver/kvserverbase"
4644 "github.com/cockroachdb/cockroach/pkg/kv/kvserver/protectedts"
4745 "github.com/cockroachdb/cockroach/pkg/multitenant"
@@ -1863,67 +1861,6 @@ type SchemaTelemetryTestingKnobs struct {
18631861// ModuleTestingKnobs implements the base.ModuleTestingKnobs interface.
18641862func (* SchemaTelemetryTestingKnobs ) ModuleTestingKnobs () {}
18651863
1866- // BackupRestoreTestingKnobs contains knobs for backup and restore behavior.
1867- //
1868- // TODO (msbutler): move these to backup
1869- type BackupRestoreTestingKnobs struct {
1870- // AfterBackupChunk is called after each chunk of a backup is completed.
1871- AfterBackupChunk func ()
1872-
1873- // AfterBackupCheckpoint if set will be called after a BACKUP-CHECKPOINT
1874- // is written.
1875- AfterBackupCheckpoint func ()
1876-
1877- // AfterLoadingCompactionManifestOnResume is run once the backup manifest has been
1878- // loaded/created on the resumption of a compaction job.
1879- AfterLoadingCompactionManifestOnResume func (manifest * backuppb.BackupManifest )
1880-
1881- // CaptureResolvedTableDescSpans allows for intercepting the spans which are
1882- // resolved during backup planning, and will eventually be backed up during
1883- // execution.
1884- CaptureResolvedTableDescSpans func ([]roachpb.Span )
1885-
1886- // RunAfterSplitAndScatteringEntry allows blocking the RESTORE job after a
1887- // single RestoreSpanEntry has been split and scattered.
1888- RunAfterSplitAndScatteringEntry func (ctx context.Context )
1889-
1890- // RunAfterProcessingRestoreSpanEntry allows blocking the RESTORE job after a
1891- // single RestoreSpanEntry has been processed and added to the SSTBatcher.
1892- RunAfterProcessingRestoreSpanEntry func (ctx context.Context , entry * execinfrapb.RestoreSpanEntry ) error
1893-
1894- // RunAfterExportingSpanEntry allows blocking the BACKUP job after a single
1895- // span has been exported.
1896- RunAfterExportingSpanEntry func (ctx context.Context , response * kvpb.ExportResponse )
1897-
1898- // BackupMonitor is used to overwrite the monitor used by backup during
1899- // testing. This is typically the bulk mem monitor if not
1900- // specified here.
1901- BackupMemMonitor * mon.BytesMonitor
1902-
1903- RestoreDistSQLRetryPolicy * retry.Options
1904-
1905- RunBeforeRestoreFlow func () error
1906-
1907- RunAfterRestoreFlow func () error
1908-
1909- BackupDistSQLRetryPolicy * retry.Options
1910-
1911- RunBeforeBackupFlow func () error
1912-
1913- RunAfterBackupFlow func () error
1914-
1915- RunAfterRetryIteration func (err error ) error
1916-
1917- RunAfterRestoreProcDrains func ()
1918-
1919- RunBeforeResolvingCompactionDest func () error
1920- }
1921-
1922- var _ base.ModuleTestingKnobs = & BackupRestoreTestingKnobs {}
1923-
1924- // ModuleTestingKnobs implements the base.ModuleTestingKnobs interface.
1925- func (* BackupRestoreTestingKnobs ) ModuleTestingKnobs () {}
1926-
19271864// StreamingTestingKnobs contains knobs for streaming behavior.
19281865type StreamingTestingKnobs struct {
19291866 // RunAfterReceivingEvent allows blocking the stream ingestion processor after
0 commit comments