-
-
Notifications
You must be signed in to change notification settings - Fork 516
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New stack count is incorrect #746
Comments
It happens via a terms aggregation in the event controller https://github.com/exceptionless/Exceptionless/blob/master/src/Exceptionless.Web/Controllers/EventController.cs#L289-L308 If you turn up the logging to |
I'll give it try next week or so. Now that some more data has arrived, it says NEW STACKS 2, but the error/new page shows 4 stacks. It seems to show the same stacks as the frequent pages. Maybe there's a difference between how those two are determined? In Firefox I can see stack_frequent and stack_new correctly requested but they both seem to return the same data. The first_occurrence/last_occurrence in Elastic is correctly set for the stacks (I already verified this). |
It shouldn't be, it should be doing an aggregation across events. I guess you could see this if a stack is missing or has been soft deleted (we account for soft deletes). Can you run the cleanup job if you are running your jobs out of process. |
Were you able to narrow this down any further? |
I'll see if I can squeeze some testing in today, otherwise it'll be later this week. It seems to me like stack_frequent and stack_new are returning exactly the same data. |
So I ran the cleanup and I now have 15 stacks and 10 new stacks (instead of 15 and 11), but new stacks page still returns 15 stacks. The data that it's returning is exactly the same as the frequent page; the only difference is the order in which the data is returned. What is considered a "new" stack? I have some stacks there that are 4 months old, surely that's no longer new? |
The stack was created during the time filter. If you are looking at all time I think they would be all new? |
What do you mean with this? I always have "All Time" selected, but I thought maybe there's a difference with the how new is counted above the graph vs what's actually retrieved. All the type/error/new pages do for me is reorder the stacks based on First column. |
Like if you just created an instance and you have 4 months of data. If you are viewing all 4 months of data in the dashboard then all would be new. However if you were looking at say 1 week with a filter, new would be only those stacks created in the last week. |
Ah, alright, but how would those numbers ever be different from normal/frequent stacks then? If I ignore a stack, or fix it, they do not show up there either. |
They probably won't. It's running the same queries for all dashboards. We may need to tweak each dashboard |
Then I'm still wondering why there's a discrepancy in the numbers. { I assume these are the numbers are used on the dashboard? They're 20 normal / 14 new for me. I can't really find where these numbers are calculated but it seems to me that that's not calculated properly (the normal ones are). |
Sorry for the late reply, are you still seeing this in the latest releases? Yes, these come from an elasticsearch terms aggregation that is passed to the controller via the |
Yes, I still have the same problem. For one project, I have 6 stacks and 2 new stacks in the header, but new stacks shows all six. It happens with all projects. Some also show STACKS: X, NEW STACKS: 0, but then NEW STACKS page shows all X. |
Is there any chance you could attach or send us the 6 stacks in question and then let us know how many events match those stacks and just some quick meta about those events. As well as the exact query you are seeing sent to the server for these. You can remove any sensitive information and attach here or send them to me on discord that would be a huge help (or if you could try creating some unit tests and submit a pr based on what you are seeing that would be amazing). |
How do I go about copying the useful information/stacks? I can copy the responses of /events?filter=project:asdf+type:error+(status:open+OR+status:regressed)&limit=15&mode=stack_frequent&offset=60m and also the /count responses although I'm not sure how useful that count info is. The /events requests both return the same data but in a different order. |
The |
? |
I updated my previous comment for more clarity. |
@PhyxionNL I'm really sorry it's taken so long to dig into this and get it resolved, we didn't forget about this. I'm in the process of creating some tests around the data you submitted just to ensure there are no issues as there could be a bug with how we are resolving new stacks on the dashboard. We changed this up when we moved to a status filter. We used to go off of the |
@niemyjski No problem, did these tests and my zip help track down the problem? |
We are still digging into it but yes your data did help, feel free to remove the attachment above. It's returning more stacks then it should and we're going to dig into it. |
* #746 - Add more test coverage for resolving new stack counts * Fixed some bugs with test data builder * Update deps. Some k8s updates. * Progress on new stack filter issue. * More progress * Don't apply retention filter to stack id filter when inverted * Got the main test passing. Not sure if the other failures are correct or not. * Fixed one failing unit test * Some minor changes * Disable AD Windows build warnings #493 * Added ability to generate many events using TotalOccurrences * Refactored how additional events are created. * Added new test for posting null session identity name * WIP - Event Stack Filter Tests * Update Deps * Fixed some build messages * Fix issue with message bus broker async fire and forget. * Working on stack inverting issues * Update ES docker to 7.12 * Progress in stack filter refactor * Fix a couple tests * Fixing more tests * Fix remaining tests. Update repos. * Remove repos and parser projects * Update deps / respond to feedback Co-authored-by: Blake Niemyjski <[email protected]>
@PhyxionNL Can you please confirm this is fixed in 7.1. If not, please let me know and we'll reopen this. Sorry for the delay. |
Can be reopened, it's still not fixed. With 7.1.1 I have new stacks showing "40" here while there are "59" in total. |
Also, on frequent pages I no longer get pagination buttons with All Time as it only loads in a super small amount. If I select "Last 30 Days" I get a lot more content (and pagination) than with All Time. Which doesn't seem logical to me. |
@niemyjski Any feedback on the All Time bug above? This is not working properly at all since 7.1. It's such a strange bug, but I've noticed that if search for * -status:fixed -status:ignored then everything shows up as it should be. |
I haven't had time to look into this and have not experienced this myself in any of our accounts. Is there any chance, you could join our discord and we can talk about this further? |
Yes, will do :) |
"NEW STACKS 1" is shown, but the error/new page shows 2 stacks (2 regressed). How is this calculated?
The text was updated successfully, but these errors were encountered: