none
without deleting metadata and replica files sync is not done from azure blob to local RRS feed

  • Question

  • Hi i have download code from http://code.msdn.microsoft.com/Release/ProjectReleases.aspx?ProjectName=sync&ReleaseId=3638 .
    But i have changed the direction of syn from blob to local using the following code

     SyncOrchestrator orchestrator = new SyncOrchestrator();
                        orchestrator.LocalProvider =fileSyncProvider;
                        orchestrator.RemoteProvider = azureProvider;
                        orchestrator.Direction = SyncDirectionOrder.Download;
                        orchestrator.Synchronize();

    First time when i run this code the sync is correctly done by creating the metadata and replica files in the following directory:
    C:\--\--\AppData\Local\AzureSyncConsole

    Then i delete the one file from the local path and again run this code then it simply  prints message  "synchronization complete" without doing any sync. But when i delete metadata and replica files from local and again run the code then it again doing sync correctly.

     I want to say that local delete does not get propagated without deleting the metadata and the replica files?

    Plz any one who can resolve this bug urgently?

    Regards,
    Zafar.

    Tuesday, February 2, 2010 11:13 AM

Answers

  • Your app is doing download (from Azure to Local) right?  So any change on the local store won't propagate to the Azure blob.

    Your prefer to let this app to sync changes from the local store to Azure blob, you need to specify Upload or DownloadAndUpload.

    Thanks.
    Leo Zhou ------ This posting is provided "AS IS" with no warranties, and confers no rights.
    • Marked as answer by Zafar Mehdi Tuesday, February 9, 2010 9:18 AM
    Monday, February 8, 2010 11:48 PM
    Answerer
  • Hi Zafar

    If you want your local changes to be propagated as well as the changes you make in your azure side you need to modify your code as follows:

    from:
     SyncOrchestrator orchestrator = new SyncOrchestrator();
                        orchestrator.LocalProvider =fileSyncProvider;
                        orchestrator.RemoteProvider = azureProvider;
                        orchestrator.Direction = SyncDirectionOrder.Download;
                        orchestrator.Synchronize();

    to:
     SyncOrchestrator orchestrator = new SyncOrchestrator();
                        orchestrator.LocalProvider =fileSyncProvider;
                        orchestrator.RemoteProvider = azureProvider;
                        orchestrator.Direction = SyncDirectionOrder.DownloadAndUpload; //or SyncDirectionOrder.UploadAndDownload
                        orchestrator.Synchronize();

    Regards,


    Maria del Mar Alvarez Rohena Microsoft Sync Framework
    • Marked as answer by Zafar Mehdi Tuesday, February 9, 2010 9:18 AM
    Tuesday, February 9, 2010 1:50 AM

All replies

  • Your app is doing download (from Azure to Local) right?  So any change on the local store won't propagate to the Azure blob.

    Your prefer to let this app to sync changes from the local store to Azure blob, you need to specify Upload or DownloadAndUpload.

    Thanks.
    Leo Zhou ------ This posting is provided "AS IS" with no warranties, and confers no rights.
    • Marked as answer by Zafar Mehdi Tuesday, February 9, 2010 9:18 AM
    Monday, February 8, 2010 11:48 PM
    Answerer
  • Hi Zafar

    If you want your local changes to be propagated as well as the changes you make in your azure side you need to modify your code as follows:

    from:
     SyncOrchestrator orchestrator = new SyncOrchestrator();
                        orchestrator.LocalProvider =fileSyncProvider;
                        orchestrator.RemoteProvider = azureProvider;
                        orchestrator.Direction = SyncDirectionOrder.Download;
                        orchestrator.Synchronize();

    to:
     SyncOrchestrator orchestrator = new SyncOrchestrator();
                        orchestrator.LocalProvider =fileSyncProvider;
                        orchestrator.RemoteProvider = azureProvider;
                        orchestrator.Direction = SyncDirectionOrder.DownloadAndUpload; //or SyncDirectionOrder.UploadAndDownload
                        orchestrator.Synchronize();

    Regards,


    Maria del Mar Alvarez Rohena Microsoft Sync Framework
    • Marked as answer by Zafar Mehdi Tuesday, February 9, 2010 9:18 AM
    Tuesday, February 9, 2010 1:50 AM
  • Hi thanx for every one yah i have solved this issue.

    thanx again

    Regards,
    Zafar
    Tuesday, February 9, 2010 9:18 AM
  • I am using peer to peer SQL sync. I need only Download sync. However when I delete any row from the local on sync they do not come back!

    this.LocalProvider = localProvider;
    this.RemoteProvider = remoteProvider;
    this.Direction = SyncDirectionOrder.Download;  

    I do not want to propagate the modifications to the server. The remote database is the master one and I have series of peers that needs to be updated according to the remote. By chance if I delete all the rows from any of these peers those data will never come back from the remote!

    Please advise.

     

    Friday, August 13, 2010 12:38 PM