TEIID-2714 correcting defrag logic and refining the defrag/truncation
strategies