Blocking caused by Query Store. Unable to clear or disableOdd SQL Server hang when querying exec DMVsCan a...

Why did Shae (falsely) implicate Sansa?

How should I ship cards?

Simple Question About Conservation of Angular Momentum

if else in jq is not giving expected output

Run a command that requires sudo after a time has passed

How to write pow math?

What happens to someone who dies before their clone has matured?

Does an increasing sequence of reals converge if the difference of consecutive terms approaches zero?

The totem pole can be grouped into

How bad is a Computer Science course that doesn't teach Design Patterns?

Is the following statement true, false, or can't be determined? Why?

Contribution form

Why does Python copy numpy arrays where the length of the dimensions are the same?

Rigorous Geometric Proof That dA=rdrdθ?

Are there any rules or guidelines about the order of saving throws?

Are all aperiodic systems chaotic?

How to write a character overlapping another character

GPL - Is it required to post source code to the Public - when is a software released?

How to explain one side of Super Earth is smoother than the other side?

Can a planet be tidally unlocked?

Why is Shelob considered evil?

Why are recumbent bicycles and velomobiles illegal in UCI bicycle racing?

Why are energy weapons seen as more acceptable in children's shows than guns that fire bullets?

Taking an academic pseudonym?



Blocking caused by Query Store. Unable to clear or disable


Odd SQL Server hang when querying exec DMVsCan a maintenance workload after a SQL Server reboot cause SQL outage or issue when application load resumes?SPIDs stuck indefinitely in suspended stateRead Committed Snapshot Isolation vs Read Committed - pros and cons?Problems caused by SQL Server 2016 Query StoreNeed to intentionally create blocking processes for testingOpen Transaction Locking in SQL Server 2008R2Rollback taking foreverLots of short term blockings on SQL Server 2008-R2 databaseNever ending Query Store search













7















I recently updated our 2016 SQL Server to SP2 and the most recent CU (KB4458621) released in August 2018. Just in the last day or so, I noticed that I have some blocking going on. I can't kill the SPID b/c it isn't a user process. According to SP_WHO2, the command is "Query Store ASYN". I've tried purging the data and disabling the query store via Script and through the UI. Nothing seems to work and it just spins and then starts to cause more blocking. Is anyone else having this issue? Can anyone please help me figure out how to disable the query store successfully? SP_WhoIsActive @show_System_SPIDS = 1 results below (query store results only)



SP_WhoIsActive 1SP_WhoIsActive 2



UPDATE - This is now caused TempDB drive to fill up. Going to try a reboot in a few hours and see if that resolves the issue. Will keep you posted.



Thanks,
Nate










share|improve this question

























  • You are running SET QUERY_STORE = OFF but it is turned on again? I would trace and see if some other process is doing that.

    – Jacob H
    Sep 14 '18 at 13:48













  • I would think that statement would be immediate. However, it just spins while executing it and then starts to cause more blocking. So I end up canceling the query.

    – Nate
    Sep 14 '18 at 13:58











  • Any offline index rebuild in progress ? Also, find the lead blocker and try to kill it. We need more details - install sp_whoisactive.

    – Kin
    Sep 14 '18 at 14:16











  • There are no index rebuilds going on at the moment. I have SP_WhoIsActive installed, but that doesn't show these process SPIDS. Both the blocking SPID and the blocked SPID are Query Store commands.

    – Nate
    Sep 14 '18 at 14:24






  • 1





    run with @show_system_spids = 1.

    – Kin
    Sep 14 '18 at 14:31
















7















I recently updated our 2016 SQL Server to SP2 and the most recent CU (KB4458621) released in August 2018. Just in the last day or so, I noticed that I have some blocking going on. I can't kill the SPID b/c it isn't a user process. According to SP_WHO2, the command is "Query Store ASYN". I've tried purging the data and disabling the query store via Script and through the UI. Nothing seems to work and it just spins and then starts to cause more blocking. Is anyone else having this issue? Can anyone please help me figure out how to disable the query store successfully? SP_WhoIsActive @show_System_SPIDS = 1 results below (query store results only)



SP_WhoIsActive 1SP_WhoIsActive 2



UPDATE - This is now caused TempDB drive to fill up. Going to try a reboot in a few hours and see if that resolves the issue. Will keep you posted.



Thanks,
Nate










share|improve this question

























  • You are running SET QUERY_STORE = OFF but it is turned on again? I would trace and see if some other process is doing that.

    – Jacob H
    Sep 14 '18 at 13:48













  • I would think that statement would be immediate. However, it just spins while executing it and then starts to cause more blocking. So I end up canceling the query.

    – Nate
    Sep 14 '18 at 13:58











  • Any offline index rebuild in progress ? Also, find the lead blocker and try to kill it. We need more details - install sp_whoisactive.

    – Kin
    Sep 14 '18 at 14:16











  • There are no index rebuilds going on at the moment. I have SP_WhoIsActive installed, but that doesn't show these process SPIDS. Both the blocking SPID and the blocked SPID are Query Store commands.

    – Nate
    Sep 14 '18 at 14:24






  • 1





    run with @show_system_spids = 1.

    – Kin
    Sep 14 '18 at 14:31














7












7








7


1






I recently updated our 2016 SQL Server to SP2 and the most recent CU (KB4458621) released in August 2018. Just in the last day or so, I noticed that I have some blocking going on. I can't kill the SPID b/c it isn't a user process. According to SP_WHO2, the command is "Query Store ASYN". I've tried purging the data and disabling the query store via Script and through the UI. Nothing seems to work and it just spins and then starts to cause more blocking. Is anyone else having this issue? Can anyone please help me figure out how to disable the query store successfully? SP_WhoIsActive @show_System_SPIDS = 1 results below (query store results only)



SP_WhoIsActive 1SP_WhoIsActive 2



UPDATE - This is now caused TempDB drive to fill up. Going to try a reboot in a few hours and see if that resolves the issue. Will keep you posted.



Thanks,
Nate










share|improve this question
















I recently updated our 2016 SQL Server to SP2 and the most recent CU (KB4458621) released in August 2018. Just in the last day or so, I noticed that I have some blocking going on. I can't kill the SPID b/c it isn't a user process. According to SP_WHO2, the command is "Query Store ASYN". I've tried purging the data and disabling the query store via Script and through the UI. Nothing seems to work and it just spins and then starts to cause more blocking. Is anyone else having this issue? Can anyone please help me figure out how to disable the query store successfully? SP_WhoIsActive @show_System_SPIDS = 1 results below (query store results only)



SP_WhoIsActive 1SP_WhoIsActive 2



UPDATE - This is now caused TempDB drive to fill up. Going to try a reboot in a few hours and see if that resolves the issue. Will keep you posted.



Thanks,
Nate







sql-server sql-server-2016 blocking query-store






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 14 '18 at 18:59







Nate

















asked Sep 14 '18 at 13:41









NateNate

362




362













  • You are running SET QUERY_STORE = OFF but it is turned on again? I would trace and see if some other process is doing that.

    – Jacob H
    Sep 14 '18 at 13:48













  • I would think that statement would be immediate. However, it just spins while executing it and then starts to cause more blocking. So I end up canceling the query.

    – Nate
    Sep 14 '18 at 13:58











  • Any offline index rebuild in progress ? Also, find the lead blocker and try to kill it. We need more details - install sp_whoisactive.

    – Kin
    Sep 14 '18 at 14:16











  • There are no index rebuilds going on at the moment. I have SP_WhoIsActive installed, but that doesn't show these process SPIDS. Both the blocking SPID and the blocked SPID are Query Store commands.

    – Nate
    Sep 14 '18 at 14:24






  • 1





    run with @show_system_spids = 1.

    – Kin
    Sep 14 '18 at 14:31



















  • You are running SET QUERY_STORE = OFF but it is turned on again? I would trace and see if some other process is doing that.

    – Jacob H
    Sep 14 '18 at 13:48













  • I would think that statement would be immediate. However, it just spins while executing it and then starts to cause more blocking. So I end up canceling the query.

    – Nate
    Sep 14 '18 at 13:58











  • Any offline index rebuild in progress ? Also, find the lead blocker and try to kill it. We need more details - install sp_whoisactive.

    – Kin
    Sep 14 '18 at 14:16











  • There are no index rebuilds going on at the moment. I have SP_WhoIsActive installed, but that doesn't show these process SPIDS. Both the blocking SPID and the blocked SPID are Query Store commands.

    – Nate
    Sep 14 '18 at 14:24






  • 1





    run with @show_system_spids = 1.

    – Kin
    Sep 14 '18 at 14:31

















You are running SET QUERY_STORE = OFF but it is turned on again? I would trace and see if some other process is doing that.

– Jacob H
Sep 14 '18 at 13:48







You are running SET QUERY_STORE = OFF but it is turned on again? I would trace and see if some other process is doing that.

– Jacob H
Sep 14 '18 at 13:48















I would think that statement would be immediate. However, it just spins while executing it and then starts to cause more blocking. So I end up canceling the query.

– Nate
Sep 14 '18 at 13:58





I would think that statement would be immediate. However, it just spins while executing it and then starts to cause more blocking. So I end up canceling the query.

– Nate
Sep 14 '18 at 13:58













Any offline index rebuild in progress ? Also, find the lead blocker and try to kill it. We need more details - install sp_whoisactive.

– Kin
Sep 14 '18 at 14:16





Any offline index rebuild in progress ? Also, find the lead blocker and try to kill it. We need more details - install sp_whoisactive.

– Kin
Sep 14 '18 at 14:16













There are no index rebuilds going on at the moment. I have SP_WhoIsActive installed, but that doesn't show these process SPIDS. Both the blocking SPID and the blocked SPID are Query Store commands.

– Nate
Sep 14 '18 at 14:24





There are no index rebuilds going on at the moment. I have SP_WhoIsActive installed, but that doesn't show these process SPIDS. Both the blocking SPID and the blocked SPID are Query Store commands.

– Nate
Sep 14 '18 at 14:24




1




1





run with @show_system_spids = 1.

– Kin
Sep 14 '18 at 14:31





run with @show_system_spids = 1.

– Kin
Sep 14 '18 at 14:31










1 Answer
1






active

oldest

votes


















0














Based on your explanation, I believe this is related to KB4461562, and was resolved in the latest Cumulative Update 5.




FIX: Transactions and log truncation may be blocked when you use Query Store in SQL Server 2016 and 2017







share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "182"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f217629%2fblocking-caused-by-query-store-unable-to-clear-or-disable%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Based on your explanation, I believe this is related to KB4461562, and was resolved in the latest Cumulative Update 5.




    FIX: Transactions and log truncation may be blocked when you use Query Store in SQL Server 2016 and 2017







    share|improve this answer




























      0














      Based on your explanation, I believe this is related to KB4461562, and was resolved in the latest Cumulative Update 5.




      FIX: Transactions and log truncation may be blocked when you use Query Store in SQL Server 2016 and 2017







      share|improve this answer


























        0












        0








        0







        Based on your explanation, I believe this is related to KB4461562, and was resolved in the latest Cumulative Update 5.




        FIX: Transactions and log truncation may be blocked when you use Query Store in SQL Server 2016 and 2017







        share|improve this answer













        Based on your explanation, I believe this is related to KB4461562, and was resolved in the latest Cumulative Update 5.




        FIX: Transactions and log truncation may be blocked when you use Query Store in SQL Server 2016 and 2017








        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 4 hours ago









        Randolph WestRandolph West

        2,640215




        2,640215






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Database Administrators Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f217629%2fblocking-caused-by-query-store-unable-to-clear-or-disable%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            ORA-01691 (unable to extend lob segment) even though my tablespace has AUTOEXTEND onORA-01692: unable to...

            Always On Availability groups resolving state after failover - Remote harden of transaction...

            Circunscripción electoral de Guipúzcoa Referencias Menú de navegaciónLas claves del sistema electoral en...