Git Product home page Git Product logo

Comments (13)

erikdarlingdata avatar erikdarlingdata commented on May 19, 2024

I have a fix for this. Can you grab the version in the dev branch? Thanks.

from darlingdata.

BurtCrowne avatar BurtCrowne commented on May 19, 2024

I'll do that

from darlingdata.

BurtCrowne avatar BurtCrowne commented on May 19, 2024

Installed new version of SP

deleted the view: dbo.HumanEvents_Blocking;

ran
EXEC sp_HumanEvents @output_database_name = N'HumanEvents', @output_schema_name = N'dbo';

new version of view was created.

Query still fails!

from darlingdata.

erikdarlingdata avatar erikdarlingdata commented on May 19, 2024

Hm, weird. The fix is here. I definitely know what you're talking about.

84581a6#diff-bcf3f7d484f6222d3a4ba16693ba0bfe

If you can, make sure you've got the right view version by checking the definition. It should start like this:

    WITH pablo_blanco
      AS (
         SELECT DISTINCT
                b.event_time,
                b.object_id,
                b.transaction_id,
                b.monitor_loop,
                b.spid,
                b.ecid,
                b.activity
         FROM [dbo].keeper_HumanEvents_blocking AS b
         WHERE b.activity = N'blocking'

The most important thing being the where clause at the end

Then you should see this below:

                 FROM [dbo].keeper_HumanEvents_blocking AS b
                 JOIN pablo_blanco AS p
                     ON  p.event_time = b.event_time
                     AND p.object_id = b.object_id
                     AND p.monitor_loop = b.monitor_loop
                     AND p.spid <> b.spid
                 WHERE b.activity = N'blocked'

If you don't see those, you've got the wrong version. If you do see those, you're gonna have to hit me up with repro data so I can take a closer look.

Thanks!

from darlingdata.

BurtCrowne avatar BurtCrowne commented on May 19, 2024

As far as I can tell that matches. What should I send you?
The keeper_HumanEvents_blocking table has only 460 rows

PS: I'm just trying this out. No urgency here. But I like what you are doing!

from darlingdata.

BurtCrowne avatar BurtCrowne commented on May 19, 2024

Also, the changes as listed in your commit are in my version

from darlingdata.

erikdarlingdata avatar erikdarlingdata commented on May 19, 2024

Ah, okay, sorry about that.

If you can, send me the table data in an Excel file, just without the longer text data like query text and the blocked process report XML.

Thanks!

from darlingdata.

BurtCrowne avatar BurtCrowne commented on May 19, 2024

Here is the data attached
HumanEvents_sampledata.xlsx

from darlingdata.

erikdarlingdata avatar erikdarlingdata commented on May 19, 2024

Got it, thanks! I'll take a look soon.

from darlingdata.

erikdarlingdata avatar erikdarlingdata commented on May 19, 2024

First, you have some very weird blocking going on. If you look at:
SELECT * FROM keeper_HumanEvents_blocking ORDER BY id;
It's a bunch of crazy system stuff.

Second, I totally ate it on my recursive CTE. It worked fine on the blocking demos I have, but yours created an infinite loop. I don't see an easy way to fix that, and I don't want to keep hitting it.

There's a new version in the dev branch that creates a much simpler view with no recursion. It's not as cool as the recursive version for simpler blocking scenarios, but cool didn't get me very far anyway.

Thanks for letting me know about this.

from darlingdata.

BurtCrowne avatar BurtCrowne commented on May 19, 2024

Yeah, I was trying to figure out why my create database was failing. Turns out that the script I was running to find fragmentation in a database locked 'model'.

from darlingdata.

erikdarlingdata avatar erikdarlingdata commented on May 19, 2024

That'll teach you to go looking for fragmentation 😃

from darlingdata.

BurtCrowne avatar BurtCrowne commented on May 19, 2024

Its all using stackoverflow...just learning how stuff works.

Thanks for looking at this

from darlingdata.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.