{
try
{
LOG.debug( "............... inside handleSyncInfo ..............." );
SyncInfoValueControl syncInfoValue = ( SyncInfoValueControl ) decoder.decode( syncinfo, null );
byte[] cookie = syncInfoValue.getCookie();
if ( cookie != null )
{
LOG.debug( "setting the cookie from the sync info: " + StringTools.utf8ToString( cookie ) );
syncCookie = cookie;
}
List<byte[]> uuidList = syncInfoValue.getSyncUUIDs();
LOG.info( "refreshDeletes: " + syncInfoValue.isRefreshDeletes() );
if ( uuidList != null )
{
for ( byte[] uuid : uuidList )
{
LOG.info( "uuid: {}", StringTools.uuidToString( uuid ) );
}
}
refreshDeletes = syncInfoValue.isRefreshDeletes();
refreshDone = syncInfoValue.isRefreshDone();
// if refreshDeletes set to true then delete all the entries with entryUUID
// present in the syncIdSet
if ( syncInfoValue.isRefreshDeletes() && ( uuidList != null ) )
{
deleteEntries( uuidList );
}
LOG.info( "refreshDone: " + syncInfoValue.isRefreshDone() );
}
catch ( Exception de )
{
LOG.error( "Failed to handle syncinfo message" );
de.printStackTrace();