We should disable page cleanup during sync otherwise a page may survive what would make it deliver extra messages after a failover
This task was done with Howard Gao's help where he found a test where we could replicate this issue
HornetQ-1114 listMessagesAsJSON and countMessages JMX methods do not include paged messages

Added a totalIterator() to iterate a queue's messages including those in the paging store.
Merge pull request #900 from clebertsuconic/master

Disable page cleanup during sync as that could lead to data lost or duplication
Merge pull request #901 from gaohoward/howard_hq1114

HornetQ-1114 listMessagesAsJSON and countMessages JMX methods do not inc...