Select the product you need help with
- Internet Explorer
- Windows Phone
- More products
FIX: Availability group failover takes a long time if a database in the availability group contains a FileTable in SQL Server 2012
Article ID: 2746012
Microsoft distributes Microsoft SQL Server 2012 fixes as one downloadable file. Because the fixes are cumulative, each new release contains all the hotfixes and all the security fixes that were included with the previous SQL Server 2012 fix release.
Consider the following scenario:
Note This issue is more likely to occur when it has been a long time since the previous failover.
This issue occurs because the truncation operation for FSLOG records in the $FSLOG folder takes a long time. When a long time has passed since the previous failover, many FSLOG records have accumulated in the FSLOG$ folder on the secondary replica without being truncated. When a failover occurs, the secondary replica becomes the new primary replica, and the FSLOG$ folder must be truncated before the files in the FileTable folder can come online. In this situation, it takes a long time to clear millions of FSLOG records.
After you apply this hotfix, the truncation operation in FSLOG$ folder is enabled on secondary replicas.
Service pack information for SQL Server 2012To resolve this problem, obtain the latest service pack for SQL Server 2012. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/2755533/ )How to obtain the latest service pack for SQL Server 2012
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
To work around this issue, plan regular availability group failovers in order to minimize the accumulation of FSLOG records on the secondary replicas. For example, plan a weekly availability group failover.
For more information about how to use the FILESTREAM and FileTable features with AlwaysOn availability groups , go to the following MSDN website:
How to use FILESTREAM and FileTable with AlwaysOn availability groupsFor more information about the FileTables feature, go to the following MSDN website:
General information about the FileTables featureFor more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/824684/ )Description of the standard terminology that is used to describe Microsoft software updates