/** * get the index of the forest with smallest number of docs */ @Override public int getPlacementForestIndex(DocumentURI uri) { int idx = 0; try { idx = popAndInsert(); } catch (InterruptedException e) { LOG.error("Statistical assignment gets interrupted"); } return idx; }