deniskuzZ commented on code in PR #3746:
URL: https://github.com/apache/hive/pull/3746#discussion_r1032420202
##########
ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/MRCompactor.java:
##########
@@ -115,8 +117,30 @@ public class CompactorMR {
static final private String COMPACTOR_PREFIX = "compactor.";
private JobConf mrJob; // the MR job for compaction
+ private IMetaStoreClient msc;
+ public MRCompactor(IMetaStoreClient msc) {
+ this.msc = msc;
+ }
- public CompactorMR() {
+ @Override
+ void runCompaction(HiveConf conf, Table table, Partition partition,
StorageDescriptor sd,
+ ValidWriteIdList writeIds, CompactionInfo ci,
AcidDirectory dir)
+ throws IOException, HiveException, InterruptedException {
+ if (ci.runAs.equals(System.getProperty("user.name"))) {
+ run(conf, table, sd, writeIds, ci, msc, dir);
Review Comment:
we can remove 'msc' as it's an instance variable now
--
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]