hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ashutosh Chauhan (JIRA)" <>
Subject [jira] [Commented] (HIVE-4000) Hive client goes into infinite loop at 100% cpu
Date Fri, 15 Feb 2013 03:17:15 GMT


Ashutosh Chauhan commented on HIVE-4000:

Many tests are resulting in NPE because we switched to ConcurrentHashMaps which don't allow
null keys (as oppose to HashMaps). Stacktrace:
] java.lang.NullPointerException
    [junit]     at java.util.concurrent.ConcurrentHashMap.containsKey(
    [junit]     at java.util.Collections$SetFromMap.contains(
    [junit]     at org.apache.hadoop.hive.ql.QueryPlan.extractCounters(
    [junit]     at org.apache.hadoop.hive.ql.QueryPlan.getQueryPlan(
    [junit]     at org.apache.hadoop.hive.ql.QueryPlan.toString(
    [junit]     at org.apache.hadoop.hive.ql.history.HiveHistory.logPlanProgress(
    [junit]     at org.apache.hadoop.hive.ql.exec.Task.executeTask(
    [junit]     at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(
    [junit]     at org.apache.hadoop.hive.ql.Driver.launchTask(
    [junit]     at org.apache.hadoop.hive.ql.Driver.execute(
    [junit]     at
    [junit]     at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(
    [junit]     at org.apache.hadoop.hive.cli.CliDriver.processCmd(
    [junit]     at org.apache.hadoop.hive.cli.CliDriver.processLine(
    [junit]     at org.apache.hadoop.hive.cli.CliDriver.processLine(
    [junit]     at org.apache.hadoop.hive.ql.QTestUtil.executeClient(
    [junit]     at org.apache.hadoop.hive.cli.TestCliDriver.runTest(
    [junit]     at org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver_database_drop(

Seems like we can fix this by modifying to:
 if (task.getId() != null && started.contains(task.getId()) && done.contains(task.getId()))
> Hive client goes into infinite loop at 100% cpu
> -----------------------------------------------
>                 Key: HIVE-4000
>                 URL:
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Owen O'Malley
>            Assignee: Owen O'Malley
>             Fix For: 0.10.1
>         Attachments: HIVE-4000.D8493.1.patch
> The Hive client starts multiple threads to track the progress of the MapReduce jobs.
Unfortunately those threads access several static HashMaps that are not protected by locks.
When the HashMaps are modified, they sometimes cause race conditions that lead to the client
threads getting stuck in infinite loops.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message