We are using merge replication with SQL Server 2014 as the subscriber and SQL Server 2016 as the publisher and distributor. Most of the subscriptions are functioning normally. We are having an issue with some subscribers. The scenario usually involves a user on Windows 7 not replicating for a few days or attempting to replicate a large amount of data. The upload request and uploading of chunks is abnormally slow and then the merge process crashes.
Here are our standard settings:
- DownloadWriteChangesPerBatch 1000
- DownloadReadChangesPerBatch 1000
- DownloadGenerationsPerBatch 1000
- UploadGenerationsPerBatch 1000
- UploadReadChangesPerBatch 1000
- UploadWriteChangesPerBatch 1000
We have tried using:
- MaxDownloadChanges 100
- MaxUploadChanges 100
- ParallelUploadDownload 100
We have also tried maxing out QueryTimeout and InternetTimeout and lowering the upload and download generations per batch, to no avail. The subscriber does not even seem to be trying to contact the distributor.
These are from the replmerg log. The sentence in French can be translated as “The connection with the server was interrupted abnormally”:
DatabaseReconciler , 2018/06/15 15:56:38.179, 5012, 7739, S2, :T:,100,0,0,28780,625b297f-eeec-4ee3-9866-3044b57228ce,,,,,
DatabaseReconciler , 2018/06/15 15:56:38.179, 5012, 7739, S2, :T:,100,0,0,28781,1e8e2d28-542b-4083-855e-89e430a5294f,,,,,
DatabaseReconciler , 2018/06/15 15:56:38.179, 5012, 7729, S2, :T:,30,0,0,28814,28814,44095f3f-d332-4fa2-a1fe-18178721383a,26,,,,
DatabaseReconciler , 2018/06/15 15:56:38.179, 5012, 7729, S2, :T:,30,0,0,28815,28815,7a614b51-47f9-4684-b50b-a0b2459c92e1,441,,,,
DatabaseReconciler , 2018/06/15 15:56:38.179, 5012, 7729, S2, :T:,30,0,0,28816,28816,c86e95cf-602c-49ce-b7f8-3aeac82c8feb,13,,,,
DatabaseReconciler , 2018/06/15 15:56:38.179, 5012, 7729, S2, :T:,30,0,0,28817,28817,2cfa371d-4344-4f50-af6a-0e8f58216765,13,,,,
DatabaseReconciler , 2018/06/15 15:56:38.179, 5012, 7729, S2, :T:,30,0,0,28818,28818,44c64b16-208b-4f3e-8db2-1f91e2fd9b17,8,,,,
DatabaseReconciler , 2018/06/15 15:56:38.179, 5012, 7729, S2, :T:,30,0,0,28819,28819,cab0897b-0177-4814-8639-8ba26493144f,98,,,,
DatabaseReconciler , 2018/06/15 15:56:38.179, 5012, 7729, S2, :T:,30,0,0,28820,28820,0b36c10e-20b6-41c5-80a4-342fe5b712c7,3,,,,
DatabaseReconciler , 2018/06/15 15:56:38.179, 5012, 7729, S2, :T:,30,0,0,28821,28821,98572695-ed9c-492c-958b-e1cd4c59c00a,3,,,,
DatabaseReconciler , 2018/06/15 15:57:06.097, 5012, 25578, S2,
INFO: [WEBSYNC_PROTOCOL] Sending client ReconcilerPhase
WebSyncReconcilerPhase_LastRegularUpload
WinHttpClient , 2018/06/15 15:57:06.216, 5012, 1205, S2,
INFO: Exchange ID = CD83B244-6A64-4714-BACE-AA0533688A02.
WinHttpClient , 2018/06/15 15:59:13.095, 5012, 2514, S1,
ERROR: CWinHttpClient::WriteDataFromBufferToWinHttp: WinHttpWriteData failed, got error 12030.
WinHttpClient , 2018/06/15 15:59:13.185, 5012, 2578, S1,
ERROR: CWinHttpClient: La connexion avec le serveur a été interrompue anormalement, 12030
WinHttpClient , 2018/06/15 15:59:13.185, 5012, 2530, S1,
ERROR: ErrNo = 0x80042efe, ErrSrc = <null>, ErrType = 10, ErrStr = La connexion avec le serveur a été interrompue anormalement
Again, the sentence in French can be translated as “The connection with the server was interrupted abnormally”:
WinHttpClient , 2018/06/15 15:31:10.916, 4520, 2514, S1,
ERROR: CWinHttpClient::WriteDataFromBufferToWinHttp: WinHttpWriteData failed, got error 12030.
WinHttpClient , 2018/06/15 15:31:10.916, 4520, 2578, S1,
ERROR: CWinHttpClient: La connexion avec le serveur a été interrompue anormalement, 12030
WinHttpClient , 2018/06/15 15:31:10.916, 4520, 2530, S1,
ERROR: ErrNo = 0x80042efe, ErrSrc = <null>, ErrType = 10, ErrStr = La connexion avec le serveur a été interrompue anormalement
WinHttpClient , 2018/06/15 15:31:10.916, 4520, 2530, S1,
ERROR: ErrNo = 0x80042efe, ErrSrc = <null>, ErrType = 10, ErrStr = Request message processing failed during Web synchronization. When troubleshooting, restart the Merge Agent with a higher value for -HistoryVerboseLevel and check both Merge Agent and Web synchronization output log files for errors.
DatabaseReconciler , 2018/06/15 15:31:11.038, 4520, 20433, S2, :T:,110,0,6,,,,,,,
DatabaseReconciler , 2018/06/15 15:31:11.038, 4520, 20440, S2,
INFO: Session Highlights: FAIL, WEBSYNC_CLIENT,
DatabaseReconciler , 2018/06/15 15:31:11.038, 4520, 25025, S1,
ERROR: Failed to upload supportability data to the publisher.
CReconcilerTask , 2018/06/15 15:31:11.154, 4520, 692, S1,
INFO: =============== ENDING OF MERGE =================
Any help would be appreciated. Thanks.
Edit:
We installed SSMS on the client's computer and have noted that the latest lines in the MSmerge_genhistory table have a pubid = null.