miklosgergely commented on a change in pull request #703: HIVE-21959 Clean up
Concatenate and Msck DDL commands
URL: https://github.com/apache/hive/pull/703#discussion_r301327744
##########
File path:
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/Msck.java
##########
@@ -108,15 +108,16 @@ public int repair(MsckInfo msckInfo) {
boolean success = false;
long txnId = -1;
int ret = 0;
+ long partitionExpirySeconds = msckInfo.getPartitionExpirySeconds();
try {
Table table = getMsc().getTable(msckInfo.getCatalogName(),
msckInfo.getDbName(), msckInfo.getTableName());
qualifiedTableName = Warehouse.getCatalogQualifiedTableName(table);
if
(getConf().getBoolean(MetastoreConf.ConfVars.MSCK_REPAIR_ENABLE_PARTITION_RETENTION.getHiveName(),
false)) {
-
msckInfo.setPartitionExpirySeconds(PartitionManagementTask.getRetentionPeriodInSeconds(table));
- LOG.info("{} - Retention period ({}s) for partition is enabled for
MSCK REPAIR..",
- qualifiedTableName, msckInfo.getPartitionExpirySeconds());
+ partitionExpirySeconds =
PartitionManagementTask.getRetentionPeriodInSeconds(table);
Review comment:
Now it is set in the constructor, the logic that overwrites the value from
the config is there at the creation of the object.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]