Affects Version/s: 6.1.1 CE GA2, 6.1.20 EE GA2
Environment:Liferay Version: 6.1 GA 2
Operating System: Ubuntu
Application Server: Tomcat 7.0.x
Java Virtual Machine: Java 6
What may be happening is that there's two or more people posting in the same thread in different cluster nodes. Say the first one to post increments the count but the cache isn't flushed on the second node so now that the second person post a new post it increments the original count and not the updated count. BaBoom! We have inconsistency with the count and actual number of posts!
This issue is a bit tricky to reproduce, as it requires a cluster and quick clicking, but here we go:
Steps to Reproduce
1. Setup a basic cluster:
A. Shared Database
B. Clustered Ehcache
2. In one node, go to the Control Panel -> MessageBoards, then create a new Thread.
3. In both nodes, go to the same Thread, and Click on Reply -> prepare a response BUT DON'T CLICK ON PUBLISH YET
4. Here's the tricky part:
Now that you have prepared the responses in both nodes, VERY QUICKLY click Publish in both nodes as fast as you can!
5. Repeat steps 3 and 4 a few times.
If you did it correctly, then you'll see that the number of posts is greater than the count don't match up.