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
Comments
I thought this was going to be a post on why there haven't been posts lately ;-)
Me too
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 ;-)
I called this years ago. It's call reality. Ignore it, and the bitchin' only gets louder.
@Michael I was thinking the same ;)
The irony is great on this one. And here I was, thinking you had turned on the black hole bundle.
LOL Ayende has no time? Few weeks ago he couldn't believe people don't have time for their pet projects at home. LOL
Oren has wife?
@actually: no, i think that as in every marriage, wife has Oren ("has" as in "it's my property!") ;-)
not funny!
:)
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.
Comment preview