Ayende @ Rahien

It's a girl

What happened to the blog?

You might have noticed that during the last day, we had duplicated posts. When I first saw that, I was shocked, there was absolutely no reason for this to have happened, and it seems that somehow the index or the database were corrupted.

We started investigating this, and we were able to reproduce this locally by using the database export. That was a great relief, because it meant that at least we could debug this. Once we were able to do that, we found out what the problem was. And basically, there was no problem. It was a configuration error (actually, two of them) that caused the problem.

We accidently enabled versioning for the blog’s database, you can read more about RavenDB’s versioning bundle if you want, but basically, it keep copies of modified documents so you have an audit trail around. So far, so good, and no one noticed anything. But then we removed versioning from the blog’s database, since after all, we didn’t need it there in the first place.

The problem is that in the meantime, the versioning bundle created all of those additional documents. While it was in operation, it would hide those documents (since they were there for historical purposes only), but once we removed it, all those historical documents showed up. The reason for the duplicate posts was that we had duplicate posts, it was just that they were duplicate posts of the same post (the historical review).

Why did we have so many? Whenever you comment, we update the CommentCount field, so we had as many historical copies for most posts as we had comments.

Fixed now, and I apologize for the trouble.

As a general point of interest, bundles allows great flexibility in the database, but they are design to be with the database. Removing and adding bundles to a database on the fly is not something that is going to just work, as we have just re-learned.

I apologize for the problem, it was a simple misconfiguration error that caused all the historical records to show up when they didn’t need to. Nothing to see here, move along Smile

Comments

Michael
11/10/2011 08:06 PM by
Michael

I thought this was going to be a post on why there haven't been posts lately ;-)

njy
11/10/2011 09:08 PM by
njy

I think the reason for less posting recently has a name: wife :-) . At the office, Oren is his own boss, but IRL a wife is the Final Uber Boss Of It All ;-)

Bob2
11/10/2011 11:56 PM by
Bob2

I think the reason for less posting recently has a name: wife :-) .

I called this years ago. It's call reality. Ignore it, and the bitchin' only gets louder.

Bogdan Marian
11/11/2011 08:16 AM by
Bogdan Marian

@Michael I was thinking the same ;)

Frank Quednau
11/11/2011 08:51 AM by
Frank Quednau

The irony is great on this one. And here I was, thinking you had turned on the black hole bundle.

Jiggaboo
11/11/2011 09:05 AM by
Jiggaboo

LOL Ayende has no time? Few weeks ago he couldn't believe people don't have time for their pet projects at home. LOL

actually
11/11/2011 08:56 PM by
actually

Oren has wife?

njy
11/14/2011 02:39 PM by
njy

@actually: no, i think that as in every marriage, wife has Oren ("has" as in "it's my property!") ;-)

wife
11/14/2011 03:47 PM by
wife

not funny!

:)

Julie Lerman
11/14/2011 03:59 PM by
Julie Lerman

dear wife .... if you're referring to njy's comment...yes, it is very funny! ;) Oren's a lucky guy to have found someone to put up with him for sure! Hope to meet you some day.

Comments have been closed on this topic.