[ https://issues.apache.org/jira/browse/HIVE-24880?focusedWorklogId=567617&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-567617 ]
ASF GitHub Bot logged work on HIVE-24880: ----------------------------------------- Author: ASF GitHub Bot Created on: 17/Mar/21 12:32 Start Date: 17/Mar/21 12:32 Worklog Time Spent: 10m Work Description: pvargacl commented on a change in pull request #2079: URL: https://github.com/apache/hive/pull/2079#discussion_r595972012 ########## File path: standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java ########## @@ -3890,9 +3890,20 @@ public CompactionResponse compact2(String dbname, String tableName, String parti } cr.setType(type); cr.setProperties(tblproperties); + cr.setInitiatorId(hostname() + "-manual"); + cr.setInitiatorVersion(HiveMetaStoreClient.class.getPackage().getImplementationVersion()); return client.compact2(cr); } + private String hostname() { Review comment: fixed, found a util in metastore, that contains this ---------------------------------------------------------------- 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: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 567617) Time Spent: 3h 10m (was: 3h) > Add host and version information to compection queue > ---------------------------------------------------- > > Key: HIVE-24880 > URL: https://issues.apache.org/jira/browse/HIVE-24880 > Project: Hive > Issue Type: Sub-task > Reporter: Peter Varga > Assignee: Peter Varga > Priority: Major > Labels: pull-request-available > Time Spent: 3h 10m > Remaining Estimate: 0h > > The Initiator host and version should be added to compaction and completed > compaction queue. > The worker version should be added to compaction and completed compaction > queue. > They should be available in sys tables and view. > The version should come from the runtime version (not the schema): > Initiator.class.getPackage().getImplementationVersion() works on clusters > (hive exec has manifest), might not work in unit tests. > This would make it possible to create checks on use cases like these: > * multiple hosts are running Initiator > ** in some scenarios with different runtime verion > * the worker and initiator runtime version are not the same -- This message was sent by Atlassian Jira (v8.3.4#803005)