phoenix-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hadoop QA (JIRA)" <>
Subject [jira] [Commented] (PHOENIX-5190) Implement a TaskRegionObserver for index rebuilds
Date Wed, 03 Apr 2019 23:50:00 GMT


Hadoop QA commented on PHOENIX-5190:

{color:red}-1 overall{color}.  Here are the results of testing the latest attachment
  against master branch at commit e8664d14d29ed3803e884f17d341593d41dcef6a.
  ATTACHMENT ID: 12964770

    {color:green}+1 @author{color}.  The patch does not contain any @author tags.

    {color:red}-1 tests included{color}.  The patch doesn't appear to include any new or modified
                        Please justify why no new tests are needed for this patch.
                        Also please list what manual steps were performed to verify this patch.

    {color:green}+1 javac{color}.  The applied patch does not increase the total number of
javac compiler warnings.

    {color:red}-1 release audit{color}.  The applied patch generated 4 release audit warnings
(more than the master's current 0 warnings).

    {color:red}-1 lineLengths{color}.  The patch introduces the following lines longer than
    +            conn.createStatement().execute("DELETE " + " FROM " + PhoenixDatabaseMetaData.SYSTEM_TASK_NAME);
+            assertTaskColumns(conn, PTable.TaskStatus.COMPLETED.toString(), PTable.TaskType.DROP_CHILD_VIEWS,
+            ResultSet rs = conn.createStatement().executeQuery("SELECT * FROM " + PhoenixDatabaseMetaData.SYSTEM_CATALOG_NAME
+    public static void assertTaskColumns(Connection conn, String expectedStatus, PTable.TaskType
taskType, String expectedData)
+        return String.format(format, "TENANT_ID VARCHAR NOT NULL, ", "TENANT_ID, ", optionsBuilder.toString());
+                        String.format("UPSERT INTO %s VALUES('%s', '%s', '%s')", viewName,
String.valueOf(i), "y",
+                            TaskRegionEnvironment, QueryServicesOptions.DEFAULT_TASK_HANDLING_MAX_INTERVAL_MS);
+            ConnectionQueryServices queryServices = conn.unwrap(PhoenixConnection.class).getQueryServices();
+            int count = getUtility().countRows(queryServices.getTable(Bytes.toBytes(viewIndexTableName)));
+            Table systemHTable= queryServices.getTable(Bytes.toBytes("SYSTEM."+PhoenixDatabaseMetaData.SYSTEM_TASK_TABLE));

     {color:red}-1 core tests{color}.  The patch failed these unit tests:

Test results:
Release audit warnings:
Console output:

This message is automatically generated.

> Implement a TaskRegionObserver for index rebuilds
> -------------------------------------------------
>                 Key: PHOENIX-5190
>                 URL:
>             Project: Phoenix
>          Issue Type: Improvement
>            Reporter: Gokcen Iskender
>            Assignee: Gokcen Iskender
>            Priority: Major
>         Attachments: PHOENIX-5190-4.x.patch, PHOENIX-5190.patch
>          Time Spent: 2h 50m
>  Remaining Estimate: 0h
> A new way to kick index rebuilds is putting an entry to System.Tasks table.
> IndexRebuildTask is a new TaskRegionObserver. It will look at this table, kick the index
rebuild and mark the task status.
> This work requires updates to the System.Tasks table.

This message was sent by Atlassian JIRA

View raw message