Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-22752

HiveMetastore addWriteNotificationLog should be invoked only when listeners are enabled

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • Metastore
    • None

    Description

      https://github.com/apache/hive/blob/master/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java#L8109

       

      Even though listeners are turned off, it gets executed and causes load on the system. This should be guarded by listener checks.

       

      	at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81)
      	at org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:1589)
      	at org.apache.hadoop.fs.FileSystem.isDirectory(FileSystem.java:1700)
      	at org.apache.hadoop.hive.ql.metadata.Hive.addInsertFileInformation(Hive.java:3185)
      	at org.apache.hadoop.hive.ql.metadata.Hive.addWriteNotificationLog(Hive.java:3138)
      	at org.apache.hadoop.hive.ql.metadata.Hive.addWriteNotificationLog(Hive.java:3123)
      	at org.apache.hadoop.hive.ql.metadata.Hive.loadPartition(Hive.java:2238)

      Attachments

        Activity

          People

            Unassigned Unassigned
            rajesh.balamohan Rajesh Balamohan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: