Hi guys,
I have a problem with GetEvents that I find strange and very worrying.
Our client creates a pull subscription (either a new one, or by specifying and old watermark in case of subscription timeout) and every few minutes calls GetEvents to receive changes to the folders in the subscription. Since this is a mobile client, there is a possibility that the client may be inactive for several hours or days between GetEvents. For the most part, this works; clients synchronize the contents of the folders.One problem I have is GetEvents does not return the maximum number of events per call, making it necessary to call GetEvents many times until all the events are received.
From time to time, users report that their client stopped syncing. Looking at the logs, it seems GetEvents returns (in what seems like an infinite loop) that only one item has changed and that there are more events pending. I've seen logs with more than 2000 GetEvents called with this pattern.When debugging, the item seems to be related to junk mail rules, but the users report they have not made modifications to their junk mail rules. What could be the cause of this and how can I prevent it?
We also recently saw a problem where GetEvents was stuck with StatusEvent and indicating that it has more events. This is normally when the Exchange has not filled the events queue. But this happened across hours. GetEvents just didn't want to fill the event queue.
Thanks,
Leo