[ https://issues.apache.org/jira/browse/HIVE-24329?focusedWorklogId=513490&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-513490 ]
ASF GitHub Bot logged work on HIVE-24329: ----------------------------------------- Author: ASF GitHub Bot Created on: 18/Nov/20 10:53 Start Date: 18/Nov/20 10:53 Worklog Time Spent: 10m Work Description: pvargacl commented on a change in pull request #1647: URL: https://github.com/apache/hive/pull/1647#discussion_r525992636 ########## File path: standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/messaging/json/JSONCommitCompactionMessage.java ########## @@ -0,0 +1,143 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.hadoop.hive.metastore.messaging.json; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.google.common.collect.Lists; +import org.apache.hadoop.hive.metastore.api.CompactionType; +import org.apache.hadoop.hive.metastore.api.Partition; +import org.apache.hadoop.hive.metastore.api.Table; +import org.apache.hadoop.hive.metastore.api.WriteEventInfo; +import org.apache.hadoop.hive.metastore.messaging.CommitCompactionMessage; +import org.apache.hadoop.hive.metastore.messaging.CommitTxnMessage; +import org.apache.hadoop.hive.metastore.messaging.MessageBuilder; + +import java.util.List; + +/** + * JSON implementation of CommitCompactionMessage + */ +public class JSONCommitCompactionMessage extends CommitCompactionMessage { + + @JsonProperty + private Long txnid; + + @JsonProperty + private Long timestamp; + + @JsonProperty + private String server; + + @JsonProperty + private String servicePrincipal; + + @JsonProperty + private Long compactionId; + + @JsonProperty + private CompactionType type; + + @JsonProperty + private String dbname; + + @JsonProperty + private String tableName; + + @JsonProperty + private String partName; + + /** + * Default constructor, needed for Jackson. + */ + public JSONCommitCompactionMessage() { + } + + public JSONCommitCompactionMessage(String server, String servicePrincipal, Long timestamp, Long txnid, Review comment: passed the event as parameter. ---------------------------------------------------------------- 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: 513490) Time Spent: 2h 40m (was: 2.5h) > Add HMS notification for compaction commit > ------------------------------------------ > > Key: HIVE-24329 > URL: https://issues.apache.org/jira/browse/HIVE-24329 > Project: Hive > Issue Type: New Feature > Reporter: Peter Varga > Assignee: Peter Varga > Priority: Major > Labels: pull-request-available > Time Spent: 2h 40m > Remaining Estimate: 0h > > This could be used by file metadata caches, to invalidate the cache content -- This message was sent by Atlassian Jira (v8.3.4#803005)