There are 5 answers for this question but it says 4.

  • Just wait. Takes its time till the numbers change. – Ladybug Killer Aug 5 '10 at 13:17
  • Ok... I wasn't sure if this could be a bug or not. @Grace... thanks for the tagging the additional keywords! – Hristo Aug 5 '10 at 13:25
  • Likewise: 5 versus 6. – Arjan Apr 6 '11 at 11:58

Two of the answers were posted at 12:19:28, in the same second. This probably lead to a race condition when updating the answer count.

Since this happens from time to time with all the the different counters, there are scripts in place that run daily to correct such invalid counts. Probably until tomorrow the count will be corrected.

Of course they could use transactions in the database to avoid such problems, but obviously this isn't done in Stack Overflow.

  • that is interesting. so this would not be considered a bug? – Hristo Aug 6 '10 at 3:46
  • @Hristo: I certainly consider it a bug. And I find it disturbing that they don't even seem to try to keep their database consistent, but hack around it with scripts that try to guess what should have happened. But then again it doesn't really matter all that much for the site if some stuff get lost from time to time, as long as it doesn't happen too often. – sth Aug 8 '10 at 14:03

One of the answers is deleted, that's why (I believe the post count is denormalized, so that explains why it isn't immediately updated when a answer is deleted).

  • 4
    Hmmm... if it is deleted then why am I seeing it? – Hristo Aug 5 '10 at 13:18
  • 3
    Actually there are 5 answers + 1 deleted. @Hristo probably the system cache was updated when the 5th answer is deleted, but before you see it the 6th answer was added. – kennytm Aug 5 '10 at 13:39
  • interesting. so would this be a bug? – Hristo Aug 6 '10 at 3:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .