array.add( subAliasIdx );
array.add( hierarchyIdx );
array.add( existanceIdx );
Iterator list = array.iterator();
MultiException rootCause = null;
// Sync all user defined indices
while ( list.hasNext() )
{
Index idx = ( Index ) list.next();
try
{
idx.sync();
}
catch ( Throwable t )
{
t.printStackTrace();
if ( null == rootCause )
{
rootCause = new MultiException();
}
rootCause.addThrowable( t );
}
}
try
{
master.sync();
recMan.commit();
}
catch ( Throwable t )
{
t.printStackTrace();
if ( null == rootCause )
{
rootCause = new MultiException();
}
rootCause.addThrowable( t );
}
if ( null != rootCause )
{
NamingException ne = new NamingException( "Failed to sync all" );