}
List<Index<?, E, Long>> array = new ArrayList<Index<?, E, Long>>();
array.addAll( userIndices.values() );
array.addAll( systemIndices.values() );
MultiException errors = new MultiException( I18n.err( I18n.ERR_577 ) );
for ( Index<?, E, Long> index : array )
{
try
{
index.close();
LOG.debug( "Closed {} index for {} partition.", index.getAttributeId(), suffixDn );
}
catch ( Throwable t )
{
LOG.error( I18n.err( I18n.ERR_124 ), t );
errors.addThrowable( t );
}
}
try
{
master.close();
LOG.debug( I18n.err( I18n.ERR_125, suffixDn ) );
}
catch ( Throwable t )
{
LOG.error( I18n.err( I18n.ERR_126 ), t );
errors.addThrowable( t );
}
try
{
recMan.close();
LOG.debug( "Closed record manager for {} partition.", suffixDn );
}
catch ( Throwable t )
{
LOG.error( I18n.err( I18n.ERR_127 ), t );
errors.addThrowable( t );
}
if ( errors.size() > 0 )
{
throw errors;
}
initialized = false;