A full resynchronization for the Public Folder synchronization job has been performed, and now the log indicates that the agent is cleaning up all the Public Folders instead of synchronizing their content. Why is this happening?
This behavior of the agent is by design.
When performing a full resynchronization of Public Folders the log will contain following entries:
"1/22/2010 3:10:43 PM MailKernel::CleanSource Informational 2050 Cleaning \Folder\Subfolder\ABC (Server: SOURCEEXCH, SourceKey: 6B1DB22E21DE0B449793E8A07A8AF05E000001B94DAC)."
"1/22/2010 3:10:43 PM MailKernel::LogStatus TraceMsg 2040 Folder ABC, sync type: [0x10 - Hidden messages], steps 1 of 1 done, sync aborted - False."
"1/22/2010 3:10:43 PM MailKernel::CleanSource Informational 2050 Cleaning \Folder\Subfolder\ABC\Old (Server: SOURCEEXCH, SourceKey: 6B1DB22E21DE0B449793E8A07A8AF05E000001B94DB0)."
"1/22/2010 3:10:43 PM MailKernel::LogStatus TraceMsg 2040 Folder Old, sync type: [0x10 - Hidden messages], steps 1 of 1 done, sync aborted - False."
and so on.
When a Public Folder re-synchronization is being performed, the Public Folder Source Agent (PFSA) has to do a cleanup procedure for all Public Folders being re-synchronized.
A resync can be performed either for the entire PF collection or for some of the members (Public Folders Collection Members).
PFSA will go through all collections and clean up all Public Folders before actually processing them. When cleaning up Public Folders the agent performs the following:
1. Agent modifies the hidden Replication Stream message so next time agent processes this folder it knows what kind of work needs to be done with this folder.
2. It creates a PUB file which contains the information about the changes which occurred between last synchronization and this re-sync (or clean up), e.g. message deletions.
Only when those tasks has been performed will the PFSA start processing the content of the Public Folders.
Note: in some environments it might take considerable time for the PFSA to perform a cleanup and for a while log files will reflect the cleanup procedure only, there will be no new PUB files being created. High amount of public folders will increase the time the agent needs for the cleanup procedure.