News for hackers. Stuff that matters.
Re:Gitlab Epic Issue Relationships Deleted by sarki_247 on Wednesday December 15, 2021 @06:43AM (#29564639)
GitLab team member here, most of the affected relationships have been restored. If you are still affected, please let us know in the incident issue: https://gitlab.com/gitlab-com/gl-infra/production/-/issues/6...
Re:Gitlab Epic Issue Relationships Deleted by m4tthumphrey on Wednesday December 15, 2021 @08:39AM (#29565721)
Getting an eye into how the Gitlab team are working to resolve this is mind boggling (in a good way!) Just look at everything going on in this issue: https://gitlab.com/gitlab-com/gl-infra/production/-/issues/6...
Re:Gitlab Epic Issue Relationships Deleted by vesinisa on Wednesday December 15, 2021 @06:39AM (#29564602)
Seems like they have it mostly resolved, the releationships were restored from a backup 3 hours prior to the incident, and they are working to restore the data for the 313 (sic.) items still affected: https://gitlab.com/gitlab-org/gitlab/-/issues/348547
Re:Gitlab Epic Issue Relationships Deleted by ta20200710 on Wednesday December 15, 2021 @08:28AM (#29565574)
What is "(sic)" about "they are working to restore the data for the 313 items still affected"?
Re:Gitlab Epic Issue Relationships Deleted by vesinisa on Thursday December 16, 2021 @03:23AM (#29576213)
Sorry - I meant "as cited", i.e. there were exactly 313 items still requiring attention (presumably number of links that were created between the last backup and the incident.) This is a very low number, bordering on something you could fix by hand or at least a small script.

This is actually what they did, apparently: https://gitlab.com/gitlab-org/gitlab/-/issues/348547#note_77...

Re:Gitlab Epic Issue Relationships Deleted by slimsag on Wednesday December 15, 2021 @06:44AM (#29564646)
I am curious, how frequently does GitLab backup their DB? 3 hours seems pretty recent
Re:Gitlab Epic Issue Relationships Deleted by dikei on Wednesday December 15, 2021 @06:46AM (#29564654)
I would expected them to have point-in-time recovery, especially from the last time when they accidentally dropped the production database.
Re:Gitlab Epic Issue Relationships Deleted by raffraffraff on Wednesday December 15, 2021 @07:50AM (#29565260)
Worst case in 2021 should be a daily full backup + transaction logs. That's enough to get you point in time recovery.

On AWS, EBS snapshots are incremental (I didn't know that until studying for AWS certification), so you could schedule a snapshot every 5 minutes if you wanted.

Looking at the timeline, I'm just gonna repeat something I said in another thread this week: it's easy to underestimate how long it takes to do basically anything with a few hundred GB of important data.

Re:Gitlab Epic Issue Relationships Deleted by Aeolun on Wednesday December 15, 2021 @08:06AM (#29565382)
Found this out recently when my 250GB database had to roll back a transaction and was stuck for hours :/

Restoring a new database from the AWS snapshot and transaction logs was literally faster.

Re:Gitlab Epic Issue Relationships Deleted by dspillett on Wednesday December 15, 2021 @08:16AM (#29565471)
For a full backup of a huge DB a three-hour window is pretty small, but I doubt that is what is happening here.

A far more common setup is regular full backups, often daily though sometimes more/less frequent, with much smaller transaction log backups at high frequency, perhaps every 15 minutes, between. That way you lose at most what has happened since the last log backup, and you can restore to any point in time between the full backup and the last log backup. It takes more effort to restore as you need to first restore the full then restore (replay) the log backups in sequence until the point you care about.

Sometimes there is a third layer between: differential backups. These are usually much smaller than a full backup, while also smaller (and less faf/time to restore) than the log backups for the period they cover, but don't offer point-in-time recovery.

Re:Gitlab Epic Issue Relationships Deleted by arcatek on Wednesday December 15, 2021 @08:22AM (#29565531)
Out of curiosity, how do transaction logs handle things like created_at fields, or randomly generated UUID, which rely on contextual data? Is the server time/rng seed faked for each replayed transaction?
Re:Gitlab Epic Issue Relationships Deleted by dspillett on Thursday December 16, 2021 @07:26AM (#29577477)
The transaction log is everything that gets done, not how it is done, so it can be replayed reliably. How values that are random, time sensitive, or otherwise arbitrary, are derived during a transaction is not important. What is logged is the fact that the values x/y/z were recorded in row 123,456 which is in page 987,654,321¹ which means that when the log is replayed you end up with exactly the same state the original database was in at the point the log is run to.

[1] in fact it could just be logged at the page level, the granularity of the log structure will vary between systems, if logged at the row level it may be the case that the physical datafile after restore is not exactly the same but the data will still be “random” values & all.

Re:Gitlab Epic Issue Relationships Deleted by dikei on Wednesday December 15, 2021 @09:03AM (#29566048)
In most cases, transaction logs/write-ahead logs will contain the return value of non-determistic functions like created_at or random uuid, instead of the function call.
Re:Gitlab Epic Issue Relationships Deleted by nefitty on Wednesday December 15, 2021 @06:42AM (#29564627)
I was confused by the title. Apparently epics are a way to organize issues by themes across projects. GitHub doesn't have this concept, in case anyone else was wondering.

https://docs.gitlab.com/ee/user/group/epics/

https://github.community/t/epics-github-issues/1430

Re:Gitlab Epic Issue Relationships Deleted by bovermyer on Wednesday December 15, 2021 @07:45AM (#29565214)
I didn't realize this wasn't common knowledge. It's been part of my everyday life for over ten years and several jobs.

You can also add them to GitHub via ZenHub and other such tools.

Re:Gitlab Epic Issue Relationships Deleted by nefitty on Wednesday December 15, 2021 @09:41AM (#29566534)
To add to the confusion of the agile term, the lay term and the company name, I know epics as some part of the React state-management library, Redux Observable...
Re:Gitlab Epic Issue Relationships Deleted by Karellen on Wednesday December 15, 2021 @06:57AM (#29564752)
Huh. While trying to figure out the reasoning behind the name used, TIL that "epic" has acquired a new meaning of "(computing) In software development, a large or extended user story."

https://en.wiktionary.org/wiki/epic

Re:Gitlab Epic Issue Relationships Deleted by tsimionescu on Wednesday December 15, 2021 @08:20AM (#29565508)
The name is an extension of '[user] story' - in literature, an epic is a collection of related stories (as in, The Epic of Gilgamesh), so they decided to call a collection of User Stories an Epic.
Re:Gitlab Epic Issue Relationships Deleted by Karellen on Wednesday December 15, 2021 @03:53PM (#29571493)
Yes, that's what the definition I quoted said.

?

Re:Gitlab Epic Issue Relationships Deleted by tsimionescu on Thursday December 16, 2021 @03:45AM (#29576321)
I was trying to add to your definition, to explain where the name comes from, for anyone who hasn't seen this before.
Re:Gitlab Epic Issue Relationships Deleted by orangejewce on Wednesday December 15, 2021 @06:46AM (#29564656)
That's because github isn't trying to be a replacement for JIRA and source control for most teams.
Re:Gitlab Epic Issue Relationships Deleted by tyingq on Wednesday December 15, 2021 @07:53AM (#29565292)
https://github.com/features/issues

Scroll down to "break issues into actionable tasks", and they have an example that's even labeled as an "Epic". They are definitely headed in the same direction as Gitlab.

Re:Gitlab Epic Issue Relationships Deleted by nefitty on Wednesday December 15, 2021 @08:30AM (#29565603)
Ah, thanks for pointing that out. I missed it on my quick check.
Re:Gitlab Epic Issue Relationships Deleted by pilif on Wednesday December 15, 2021 @06:57AM (#29564748)
their latest updates to their project management features[1] launched as part of the "new" issues are totally going in that direction though.

I'm unsure as to whether that's a good thing or not.

1) https://github.blog/2021-06-23-introducing-new-github-issues...

Re:Gitlab Epic Issue Relationships Deleted by taneq on Thursday December 16, 2021 @02:12AM (#29575854)
Yeah, it's one of those Agile things.
Re:Gitlab Epic Issue Relationships Deleted by nix23 on Wednesday December 15, 2021 @06:43AM (#29564635)
I was hoping that this has something todo that i CANNOT delete my UnrealEngine repo/project in gitlab...but no, well it's not my storage ;)