dengzhhu653 commented on PR #6651: URL: https://github.com/apache/hive/pull/6651#issuecomment-5129687452
> [here](https://github.com/apache/hive/blob/eb0ea730493e9a5ee8db47ac7def6188bc07775e/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/handler/AddPartitionsHandler.java#L203) the directory is getting cleaned based on the boolean value present in the map for that particular partition. I see > If multiple clients connecting to different HMS instances, in this case only the client which created the data folder can delete it in case of any errors/exceptions. We still have the same issue in this case, image A and B client add the same partition `p1`; A, create the p1 directory(true) -> B create the p1 directory(false) -> B commits p1 since B has only a few partitions to be added -> A throws errors and removes the data inserted by B -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
