Updated code to make sure unique column keys are generated in the test case.

LogCleanupTest uses Random number generator to generate the metadata keys for files. With very very low probability it is possible that successive calls to the Random.nextInt(50000) return the same number causing the duplicate metadata key. Fix is added to ensure that we always generate the required number of unique metadata keys.
This check is unnecessary. The while loop above can only exit if the size are the same since you are adding at most one element per loop.