You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Eugene Koifman (JIRA)" <ji...@apache.org> on 2016/09/16 02:27:20 UTC
[jira] [Created] (HIVE-14770) too many locks acquired?
Eugene Koifman created HIVE-14770:
-------------------------------------
Summary: too many locks acquired?
Key: HIVE-14770
URL: https://issues.apache.org/jira/browse/HIVE-14770
Project: Hive
Issue Type: Bug
Components: Transactions
Reporter: Eugene Koifman
Assignee: Eugene Koifman
need to verify
UpdateDeleteSemanticAnalyzer.reparseAndSuperAnalyze() has
{noformat}
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
outputs.clear();
for (ReadEntity input : inputs) {
if (input.getTyp() == Entity.Type.PARTITION) {
WriteEntity.WriteType writeType = deleting() ? WriteEntity.WriteType.DELETE :
WriteEntity.WriteType.UPDATE;
outputs.add(new WriteEntity(input.getPartition(), writeType));
}
}
} else {
{noformat}
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
(v6.3.4#6332)