hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Work logged] (HIVE-21732) Configurable injection of load for LLAP task execution
Date Fri, 17 May 2019 18:38:00 GMT


ASF GitHub Bot logged work on HIVE-21732:

                Author: ASF GitHub Bot
            Created on: 17/May/19 18:37
            Start Date: 17/May/19 18:37
    Worklog Time Spent: 10m 
      Work Description: pvary commented on pull request #634: HIVE-21732: Configurable injection
of latency for LLAP task execution

 File path: llap-server/src/java/org/apache/hadoop/hive/llap/daemon/impl/
 @@ -0,0 +1,96 @@
+ * 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
+ *
+ *
+ *
+ * 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.llap.daemon.impl;
+import org.apache.hadoop.conf.Configuration;
+import org.apache.hadoop.hive.conf.HiveConf;
+import org.apache.hadoop.service.AbstractService;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import java.util.Random;
+ * Extra load generator service for LLAP.
+ */
+public class LlapLoadGeneratorService extends AbstractService {
+  private static final Logger LOG = LoggerFactory.getLogger(LlapLoadGeneratorService.class);
+  private static final long INTERVAL = 10;
+  private float threshold;
+  private String[] hostNames;
+  private int processors;
+  private Thread[] threads;
 Review comment:
   I know there is only one LlapDaemon is running in one JVM but I usually prefer to avoid
static variables which are not needed to be explicitly static or constant. This could help
if we need to revisit our 1 JVM - 1 Object decision later.
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:

Issue Time Tracking

    Worklog Id:     (was: 244188)
    Time Spent: 1h 50m  (was: 1h 40m)

> Configurable injection of load for LLAP task execution
> ------------------------------------------------------
>                 Key: HIVE-21732
>                 URL:
>             Project: Hive
>          Issue Type: Test
>            Reporter: Peter Vary
>            Assignee: Peter Vary
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: HIVE-21732.2.patch, HIVE-21732.3.patch, HIVE-21732.4.patch, HIVE-21732.5.patch,
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
> For evaluating testing, it would be good to have a configurable way to inject latency
for LLAP tasks.
> The configuration should be able to control how much latency is injected into each daemon.

This message was sent by Atlassian JIRA

View raw message