Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

What happens when a hive partition is queried at a same time when a compaction(major/minor) is in progress in HDP 2.5? Would the query fail?

Solved Go to solution

What happens when a hive partition is queried at a same time when a compaction(major/minor) is in progress in HDP 2.5? Would the query fail?

New Contributor
 
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: What happens when a hive partition is queried at a same time when a compaction(major/minor) is in progress in HDP 2.5? Would the query fail?

Rising Star

Nope - compaction retains old files until all readers are out.

The implementation has ACID isolation levels - you could start a query and then do "delete from table" & still get no errors on the query which is already in motion.

1 REPLY 1
Highlighted

Re: What happens when a hive partition is queried at a same time when a compaction(major/minor) is in progress in HDP 2.5? Would the query fail?

Rising Star

Nope - compaction retains old files until all readers are out.

The implementation has ACID isolation levels - you could start a query and then do "delete from table" & still get no errors on the query which is already in motion.