microsoft / microsoft/sql-server-samples

Database copy won't be deleted

Aperta
#333 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Lingua principale
PowerShell
Stelle
11.2k
Fork
9.1k
Merge medio
2g 7h
PR unite (30g)
14

Descrizione

Hi,
I set up the ExportSqlDbToStorage job and ExportSqlDbBlobRetention job to be automatically run ever night. Sometime the copy of the database won't be deleted after the entire job was done.
It happens several times that 'ExportSqlDbToStorage' job just restarted by itself while copying or exporting and left the copied database in the storage, and then I have to manually delete the database copy by myself. This happens 3-5 time every month. If the job restart, the new created database copy will be deleted successfully after export, since the old copy wasn't in the array anymore, it won't get deleted.
I am not sure what cause the job to restart, sometime it will show an error saying 'unable to connect to the server', sometime there is no error or warning. Any ideas? Thanks.
2017-11-15 11_36_28-

--The ExportSqlDbToStorage job is azure-automation-automated-export/AutoExport.ps1
https://github.com/Microsoft/sql-server-samples/blob/master/samples/manage/azure-automation-automated-export/AutoExport.ps1

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia da azure-automation-automated-export/AutoExport.ps1, concentrandoti sui job ExportSqlDbToStorage e ExportSqlDbBlobRetention e sul modo in cui vengono tracciati i database copiati dopo un riavvio. Riproduci o traccia i percorsi segnalati relativi al riavvio e agli errori di connessione; il lavoro è completato quando un’esportazione interrotta o riavviata non lascia una copia orfana del database nello storage.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
azure, powershell, sql
Ambito
cloud, databases, devops
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.