-
-
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
Allow migrations to be ran automatically. #745
Comments
@PhyxionNL yeah, I agree that ideally we would upgrade on the fly. Problem is that some upgrades require down time. So we need to figure out a way to handle that. Definitely something I want to do though. |
Alright, sounds good. I've just tried to migrate the data manually but it doesn't seem to have run correctly. None of the fixed status is migrated and all old events show this in Extended Data: Any ideas on how to address this? |
The migration does do something, |
What do the migration document look like in the migration elastic index? That should say if it completed or there were errors. Yeah the fixed label shouldn't be there unless it's regressed or fixed, that also shouldn't shown in extended data. I haven't noticed that in any of our events. |
The migration code does report SetStackStatus has run (with all successful Updates).
Furthermore, if the is_hidden etc on event level is no longer used, shouldn't these be removed? I cannot find that in the Migrations, but maybe I'm looking in the wrong place, I'm not that familiar with the code. |
Something seems off, can you try removing those migration documents and run again, Maybe they didn't run if there was no existing migration docs @ejsmith? No we didn't want to update events in any migration (hundreds of millions of them for no benefit), they will fall off over time. |
For items that are fixed:
|
Didn't mean to close it ^^ |
Was |
No, is_fixed isn't set on any stack as far as I could find (I'll do another sweep of the data tomorrow). I have modified the SetStackStatus script to this: Furthermore, I'm receiving this message when viewing old data, which seems odd as I'm running locally. Why are ' Recent Occurrences' now sorted backwards? This seems counterintuitive to me, as 'Recent' kinda says it all. I also miss the Exception Dashboard a bit 😊 |
Some of these exception stacks are regressed + hidden, I think that's the main cause for the remainders, I'll check again tomrrow. |
I have migrated everything now. The majority of the remaining issues indeed were because hidden was not prefered over regressed. This default migration behavior doesn't seem very logical to me as if you deliberately hide them then you most likely don't want to see them anymore. The resulting script for
May it be of use to some 😊 Or do you want this in a PR? The plan issue is only for events at "retention days" in the last couple of hours, so it seems to cut this off a bit too soon. Probably an existing bug but never noticed this before. Does that check even make sense if the organisation is on the unlimited plan? As long as the events exist it should show them. The sorting itself is fixed in 7.0.3 (maybe earlier), I had it first on 7.0.0 for migration. Glad to see the stats reappear on this version as well. As a bonus, if you want to clear out the is... fields on events, run this on /prod-events-v1-2020.10.*/_update_by_query: Depending on the number of events it takes some time... Repeat for each month of data. |
Yeah, if you want to add a pr that adds this |
Thanks for reporting this issue to us. Please let us know if we are missing anything. |
Maybe this shouldn't be closed still? An automatic update would be useful. |
For migrations |
@PhyxionNL I'm going to close this, as it really should be up to the user when to run data migrations. We've made it a one liner to run in 7.1 from a docker container now. For us, we would kick off a k8's pod todo the migration, but an end user might want to run it in process but that could take a very long time. We try to keep our web processes light, so having a job do it is a no brainer. Any feedback would be greatly appreciated on this and we can discus it more. |
So I'm still running 6.x branch and I'm wondering whether these upgrade instructions (https://github.com/exceptionless/Exceptionless/wiki/Upgrading) are automatically applied on upgrade. If not, it would be useful that this could be added. There are quite a few containers upgrading data automatically.
The text was updated successfully, but these errors were encountered: