{"id":950,"date":"2009-02-23T10:15:00","date_gmt":"2009-02-23T10:15:00","guid":{"rendered":"\/blogs\/paul\/post\/A-little-known-sign-of-impending-doom-error-825.aspx"},"modified":"2017-06-20T12:15:56","modified_gmt":"2017-06-20T19:15:56","slug":"a-little-known-sign-of-impending-doom-error-825","status":"publish","type":"post","link":"https:\/\/www.sqlskills.com\/blogs\/paul\/a-little-known-sign-of-impending-doom-error-825\/","title":{"rendered":"A little-known sign of impending doom: error 825"},"content":{"rendered":"<p style=\"text-align: justify;\">There are two pretty well-known I\/O errors &#8211; 823, and 824 &#8211; but there&#8217;s also one called 825 which most DBAs do*not* know about, and definitely should.<\/p>\n<p style=\"text-align: justify;\">From SQL Server 2005 onwards, if you ever see an 823 or 824, SQL Server has actually tried that I\/O a total of 4 times before it finally declares a lost cause and surfaces the high-severity I\/O error to the connection&#8217;s console, killing the connection into the bargain. The idea behind this read-retry logic came from Exchange, where adding the logic reduced the amount of immediate downtime that customers experienced. While in concept this was something I agreed with at the time, I didn&#8217;t agree with the way it was implemented.<\/p>\n<p style=\"text-align: justify;\">If the I\/O continues to fail, then the 823\/824 is surfaced &#8211; that&#8217;s fine. But what if the I\/O succeeds on one of the retries? No high-severity error is raised, and the query completes, blissfully unaware that anything untoward happened. However, something *did* go badly wrong &#8211; the I\/O subsystem failed to read 8KB of data correctly until the read was attempted again. Basically, the I\/O subsystem had a problem, which luckily wasn&#8217;t fatal *this time*. And that&#8217;s what I don&#8217;t like &#8211; the I\/O subsystem went wrong but there are no flashing lights and alarm bells that fire for the DBA, as with an 823 or 824. If read-retry is required to get a read to complete, the only notification of this is a severity-10 informational message in the error log &#8211; error 825. It looks like this:<\/p>\n<pre class=\"brush: plain; gutter: false; title: ; toolbar: true; wrap-lines: true; notranslate\" title=\"\">\r\nMsg 825, Level 10, State 2, Line 1.\r\nA read of the file \u2018D:\\SQLskills\\TestReadRetry.mdf\u2019 at offset 0\u00d70000017653C000 succeeded after failing 2 time(s) with error: incorrect checksum (expected: 0\u00d74a224f20; actual: 0\u00d72216ee12). Additional messages in the SQL Server error log and system event log may provide more detail. This error condition threatens database integrity and must be corrected. Complete a full database consistency check (DBCC CHECKDB). This error can be caused by many factors; for more information, see SQL Server Books Online.\r\n<\/pre>\n<p style=\"text-align: justify;\">What this message is really saying is that your I\/O subsystem is going wrong and you must do something about it. And unless you&#8217;re regularly scanning the error log looking for these, you&#8217;ll be none-the-wiser.<\/p>\n<p style=\"text-align: justify;\">So &#8211; my recommendation is that you add a specific Agent alert for error 825, along with your other alerts (see\u00a0<a href=\"https:\/\/www.sqlskills.com\/blogs\/paul\/easy-monitoring-of-high-severity-errors-create-agent-alerts\/\" target=\"_blank\" rel=\"noopener noreferrer\">this blog post<\/a>).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are two pretty well-known I\/O errors &#8211; 823, and 824 &#8211; but there&#8217;s also one called 825 which most DBAs do*not* know about, and definitely should. From SQL Server 2005 onwards, if you ever see an 823 or 824, SQL Server has actually tried that I\/O a total of 4 times before it finally [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30,31,52,53,85],"tags":[],"class_list":["post-950","post","type-post","status-publish","format-standard","hentry","category-corruption","category-database-maintenance","category-involuntary-dba","category-io-subsystems","category-sql-agent"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>A little-known sign of impending doom: error 825 - Paul S. Randal<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.sqlskills.com\/blogs\/paul\/a-little-known-sign-of-impending-doom-error-825\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"A little-known sign of impending doom: error 825 - Paul S. Randal\" \/>\n<meta property=\"og:description\" content=\"There are two pretty well-known I\/O errors &#8211; 823, and 824 &#8211; but there&#8217;s also one called 825 which most DBAs do*not* know about, and definitely should. From SQL Server 2005 onwards, if you ever see an 823 or 824, SQL Server has actually tried that I\/O a total of 4 times before it finally [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sqlskills.com\/blogs\/paul\/a-little-known-sign-of-impending-doom-error-825\/\" \/>\n<meta property=\"og:site_name\" content=\"Paul S. Randal\" \/>\n<meta property=\"article:published_time\" content=\"2009-02-23T10:15:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-06-20T19:15:56+00:00\" \/>\n<meta name=\"author\" content=\"Paul Randal\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Paul Randal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/a-little-known-sign-of-impending-doom-error-825\/\",\"url\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/a-little-known-sign-of-impending-doom-error-825\/\",\"name\":\"A little-known sign of impending doom: error 825 - Paul S. Randal\",\"isPartOf\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/#website\"},\"datePublished\":\"2009-02-23T10:15:00+00:00\",\"dateModified\":\"2017-06-20T19:15:56+00:00\",\"author\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/ffcec826c18782e1e0adf173826a7fce\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/a-little-known-sign-of-impending-doom-error-825\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.sqlskills.com\/blogs\/paul\/a-little-known-sign-of-impending-doom-error-825\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/a-little-known-sign-of-impending-doom-error-825\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"A little-known sign of impending doom: error 825\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/#website\",\"url\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/\",\"name\":\"Paul S. Randal\",\"description\":\"In Recovery...\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/ffcec826c18782e1e0adf173826a7fce\",\"name\":\"Paul Randal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0b6a266bba2f088f2551ef529293001bd73bf026bc1908b9866728c062beeeb6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0b6a266bba2f088f2551ef529293001bd73bf026bc1908b9866728c062beeeb6?s=96&d=mm&r=g\",\"caption\":\"Paul Randal\"},\"sameAs\":[\"http:\/\/3.209.169.194\/blogs\/paul\"],\"url\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/author\/paul\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"A little-known sign of impending doom: error 825 - Paul S. Randal","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.sqlskills.com\/blogs\/paul\/a-little-known-sign-of-impending-doom-error-825\/","og_locale":"en_US","og_type":"article","og_title":"A little-known sign of impending doom: error 825 - Paul S. Randal","og_description":"There are two pretty well-known I\/O errors &#8211; 823, and 824 &#8211; but there&#8217;s also one called 825 which most DBAs do*not* know about, and definitely should. From SQL Server 2005 onwards, if you ever see an 823 or 824, SQL Server has actually tried that I\/O a total of 4 times before it finally [&hellip;]","og_url":"https:\/\/www.sqlskills.com\/blogs\/paul\/a-little-known-sign-of-impending-doom-error-825\/","og_site_name":"Paul S. Randal","article_published_time":"2009-02-23T10:15:00+00:00","article_modified_time":"2017-06-20T19:15:56+00:00","author":"Paul Randal","twitter_misc":{"Written by":"Paul Randal","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/a-little-known-sign-of-impending-doom-error-825\/","url":"https:\/\/www.sqlskills.com\/blogs\/paul\/a-little-known-sign-of-impending-doom-error-825\/","name":"A little-known sign of impending doom: error 825 - Paul S. Randal","isPartOf":{"@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/#website"},"datePublished":"2009-02-23T10:15:00+00:00","dateModified":"2017-06-20T19:15:56+00:00","author":{"@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/ffcec826c18782e1e0adf173826a7fce"},"breadcrumb":{"@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/a-little-known-sign-of-impending-doom-error-825\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sqlskills.com\/blogs\/paul\/a-little-known-sign-of-impending-doom-error-825\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/a-little-known-sign-of-impending-doom-error-825\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sqlskills.com\/blogs\/paul\/"},{"@type":"ListItem","position":2,"name":"A little-known sign of impending doom: error 825"}]},{"@type":"WebSite","@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/#website","url":"https:\/\/www.sqlskills.com\/blogs\/paul\/","name":"Paul S. Randal","description":"In Recovery...","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sqlskills.com\/blogs\/paul\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/ffcec826c18782e1e0adf173826a7fce","name":"Paul Randal","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0b6a266bba2f088f2551ef529293001bd73bf026bc1908b9866728c062beeeb6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0b6a266bba2f088f2551ef529293001bd73bf026bc1908b9866728c062beeeb6?s=96&d=mm&r=g","caption":"Paul Randal"},"sameAs":["http:\/\/3.209.169.194\/blogs\/paul"],"url":"https:\/\/www.sqlskills.com\/blogs\/paul\/author\/paul\/"}]}},"_links":{"self":[{"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/posts\/950","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/comments?post=950"}],"version-history":[{"count":0,"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/posts\/950\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/media?parent=950"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/categories?post=950"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/tags?post=950"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}