* @throws Exception
*/
public void disabled_testTreeBalancing() throws Exception {
createPageFileAndIndex(100);
BTreeIndex index = ((BTreeIndex)this.index);
this.index.load(tx);
tx.commit();
doInsert(50);
int minLeafDepth = index.getMinLeafDepth(tx);
int maxLeafDepth = index.getMaxLeafDepth(tx);
assertTrue("Tree is balanced", maxLeafDepth-minLeafDepth <= 1);
// Remove some of the data
doRemove(16);
minLeafDepth = index.getMinLeafDepth(tx);
maxLeafDepth = index.getMaxLeafDepth(tx);
System.out.println( "min:"+minLeafDepth );
System.out.println( "max:"+maxLeafDepth );
index.printStructure(tx, new PrintWriter(System.out));
assertTrue("Tree is balanced", maxLeafDepth-minLeafDepth <= 1);
this.index.unload(tx);
}