Thread.sleep(1000); // sleep so the next add is delayed a bit
HCatAddPartitionDesc reinstatedPartition = HCatAddPartitionDesc.create(
DATABASE_NAME, TABLE_NAME, null, partitionSpec).build();
client.addPartition(reinstatedPartition);
CatalogPartition reInstatedPartition = CatalogServiceFactory.getCatalogService().getPartition(
metastoreUrl, DATABASE_NAME, TABLE_NAME, partitionSpec);
Assert.assertNotNull(reInstatedPartition);
}