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 is quite bad in an array list. It requires to shift all succeeding elements. Better to remover from the end. Or use LinkedList.