Buggy code:
public abstract class BaseContainer implements Lockable { protected ContainerKey identity ; protected boolean isDropped ; protected boolean isCommittedDrop ; protected boolean isReusableRecordId = false ; protected BaseContainer ( ) { } protected void fillInIdentity ( ContainerKey key ) { } public void clearIdentity ( ) { } public Object getIdentity ( ) { } public void lockEvent ( Latch lockInfo ) { } public boolean requestCompatible ( Object requestedQualifier , Object grantedQualifier ) { } public boolean lockerAlwaysCompatible ( ) { } public void unlockEvent ( Latch lockInfo ) { } public void compressContainer ( BaseContainerHandle handle ) throws StandardException { RawTransaction ntt = handle . getTransaction ( ) . startNestedTopTransaction ( ) ; int mode = handle . getMode ( ) ; if ( SanityManager . DEBUG ) { SanityManager . ASSERT ( ( ( mode & ( ContainerHandle . MODE_FORUPDATE ) ) == ( ContainerHandle . MODE_FORUPDATE ) ) , "addPage<seq2seq4repair_space>handle<seq2seq4repair_space>not<seq2seq4repair_space>for<seq2seq4repair_space>update" ) ; } if ( ( ( mode & ( ContainerHandle . MODE_CREATE_UNLOGGED ) ) == 0 ) && ( ( mode & ( ContainerHandle . MODE_UNLOGGED ) ) == ( ContainerHandle . MODE_UNLOGGED ) ) ) mode &= ~ ( ContainerHandle . MODE_UNLOGGED ) ; BaseContainerHandle allocHandle = ( ( BaseContainerHandle ) ( ntt . openContainer ( identity , ( ( LockingPolicy ) ( null ) ) , mode ) ) ) ; if ( allocHandle == null ) { throw StandardException . newException ( DATA_ALLOC_NTT_CANT_OPEN , new Long ( getSegmentId ( ) ) , new Long ( getContainerId ( ) ) ) ; } ntt . getLockFactory ( ) . lockObject ( ntt , ntt , this , null , WAIT_FOREVER ) ; try { compressContainer ( ntt , allocHandle ) ; } finally { <START_BUG> ntt . commitNoSync ( RELEASE_LOCKS ) ; <END_BUG> ntt . close ( ) ; } } public Page addPage ( BaseContainerHandle handle , boolean isOverflow ) throws StandardException { } public abstract void getContainerProperties ( Properties prop ) throws StandardException { } protected void removePage ( BaseContainerHandle handle , BasePage page ) throws StandardException { } protected boolean getDeallocLock ( BaseContainerHandle handle , RecordHandle deallocLock , boolean wait , boolean zeroDuration ) throws StandardException { } protected Page getAllocPage ( BaseContainerHandle handle , long pageNumber , boolean wait ) throws StandardException { } protected Page getAnyPage ( BaseContainerHandle handle , long pageNumber , boolean wait ) throws StandardException { } protected Page getFirstPage ( BaseContainerHandle handle ) throws StandardException { } protected Page getNextPage ( BaseContainerHandle handle , long pageNumber ) throws StandardException { } protected BasePage latchPage ( BaseContainerHandle handle , BasePage foundPage , boolean wait ) throws StandardException { } protected boolean use ( BaseContainerHandle handle , boolean forUpdate , boolean droppedOK ) throws StandardException { } protected void letGo ( BaseContainerHandle handle ) { } protected boolean getDroppedState ( ) { } protected boolean getCommittedDropState ( ) { } protected boolean isReusableRecordId ( ) { } public int getContainerStatus ( ) { } public long getContainerId ( ) { } public long getSegmentId ( ) { } protected abstract SpaceInfo getSpaceInfo ( BaseContainerHandle handle ) throws StandardException { } protected abstract boolean canUpdate ( ) { } protected abstract void preDirty ( boolean preDirtyOn ) { } protected abstract BasePage getPage ( BaseContainerHandle handle , long pageNumber , boolean wait ) throws StandardException { } protected abstract BasePage getAllocPage ( long pageNumber ) throws StandardException { } protected abstract BasePage getAnyPage ( BaseContainerHandle handle , long pageNumber ) throws StandardException { } protected abstract BasePage reCreatePageForLoadTran ( BaseContainerHandle handle , int pageFormat , long pageNumber , long pageOffset ) throws StandardException { } protected abstract ByteArray logCreateContainerInfo ( ) throws StandardException { } protected abstract BasePage getHeadPage ( BaseContainerHandle handle , long pagenumber , boolean wait ) throws StandardException { } protected abstract BasePage getFirstHeadPage ( BaseContainerHandle handle , boolean wait ) throws StandardException { } protected abstract BasePage getNextHeadPage ( BaseContainerHandle handle , long pageNumber , boolean wait ) throws StandardException { } protected abstract BasePage getPageForInsert ( BaseContainerHandle handle , int flag ) throws StandardException { } protected abstract BasePage getPageForCompress ( BaseContainerHandle handle , int flag , long pageno ) throws StandardException { } protected abstract void truncatePages ( long lastValidPagenum ) throws StandardException { } protected abstract BasePage newPage ( BaseContainerHandle userhandle , RawTransaction t , BaseContainerHandle allocHandle , boolean isOverflow ) throws StandardException { } protected abstract void compressContainer ( RawTransaction t , BaseContainerHandle allocHandle ) throws StandardException { } protected abstract void deallocatePage ( BaseContainerHandle userhandle , BasePage page ) throws StandardException { } protected void truncate ( BaseContainerHandle handle ) throws StandardException { } protected abstract void dropContainer ( LogInstant instant , boolean drop ) { } protected abstract void removeContainer ( LogInstant instant , boolean leaveStub ) throws StandardException { } protected abstract long getContainerVersion ( ) throws StandardException { } protected abstract void flushAll ( ) throws StandardException { } protected abstract void prepareForBulkLoad ( BaseContainerHandle handle , int numPage ) { } protected abstract void clearPreallocThreshold ( ) { } public abstract long getEstimatedRowCount ( int flag ) throws StandardException { } public abstract void setEstimatedRowCount ( long count , int flag ) throws StandardException { } public abstract long getEstimatedPageCount ( BaseContainerHandle handle , int flag ) throws StandardException { } protected void setDroppedState ( boolean isDropped ) { } protected void setCommittedDropState ( boolean isCommittedDrop ) { } protected void setReusableRecordIdState ( boolean isReusableRecordId ) { } public boolean lockAttributes ( int flag , Hashtable attributes ) { } }

Fix:
ntt . commit ( ) ;