hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eugene Koifman (JIRA)" <>
Subject [jira] [Created] (HIVE-14770) too many locks acquired?
Date Fri, 16 Sep 2016 02:27:20 GMT
Eugene Koifman created HIVE-14770:

             Summary: too many locks acquired?
                 Key: HIVE-14770
             Project: Hive
          Issue Type: Bug
          Components: Transactions
            Reporter: Eugene Koifman
            Assignee: Eugene Koifman

need to verify

UpdateDeleteSemanticAnalyzer.reparseAndSuperAnalyze() has
    if (inputIsPartitioned(inputs)) {
      // In order to avoid locking the entire write table we need to replace the single WriteEntity
      // with a WriteEntity for each partition
      for (ReadEntity input : inputs) {
        if (input.getTyp() == Entity.Type.PARTITION) {
          WriteEntity.WriteType writeType = deleting() ? WriteEntity.WriteType.DELETE :
          outputs.add(new WriteEntity(input.getPartition(), writeType));
    } else {

but this seems to assume that each partition read is also written

shouldn't this check isWritten()?  see HIVE-11848

This message was sent by Atlassian JIRA

View raw message