phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hadoop QA (JIRA)" <>
Subject [jira] [Commented] (PHOENIX-4178) Detect failed index write while rebuilder is running with index staying active
Date Fri, 22 Sep 2017 03:31:01 GMT


Hadoop QA commented on PHOENIX-4178:

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

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

    {color:green}+1 tests included{color}.  The patch appears to include 7 new or modified

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

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

    {color:red}-1 lineLengths{color}.  The patch introduces the following lines longer than
    +        serverProps.put(QueryServices.INDEX_REBUILD_DISABLE_TIMESTAMP_THRESHOLD, Long.toString(disableTimestampThresholdMs));
+                assertTrue(PIndexState.ACTIVE.toString().equalsIgnoreCase(indexState) ||
+        public void preBatchMutate(ObserverContext<RegionCoprocessorEnvironment> c,
MiniBatchOperationInProgress<Mutation> miniBatchOp) throws IOException {
+        serverProps.put(QueryServices.INDEX_REBUILD_DISABLE_TIMESTAMP_THRESHOLD, "300000");
// give up rebuilding after 5 minutes
+        serverProps.put(QueryServices.INDEX_FAILURE_HANDLING_REBUILD_PERIOD, Long.toString(REBUILD_PERIOD));
// batch at 50 seconds
+                mutateRandomly(fullTableName, nThreads, nRows, nIndexValues, batchSize, doneSignal2);
+    private static boolean hasIndexWithState(PMetaData metaCache, PTableKey key, PIndexState
expectedState) throws TableNotFoundException {
+            conn.createStatement().execute("CREATE TABLE " + fullTableName + "(k VARCHAR
+            conn.createStatement().execute("CREATE INDEX " + indexName + " ON " + fullTableName
+ " (v1, v2)");
+            HTableInterface metaTable = conn.unwrap(PhoenixConnection.class).getQueryServices().getTable(PhoenixDatabaseMetaData.SYSTEM_CATALOG_NAME_BYTES);

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

Test results:
Console output:

This message is automatically generated.

> Detect failed index write while rebuilder is running with index staying active
> ------------------------------------------------------------------------------
>                 Key: PHOENIX-4178
>                 URL:
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: James Taylor
>            Assignee: James Taylor
>             Fix For: 4.12.0
>         Attachments: PHOENIX-4178.patch
> If an index write fails while the rebuilder is running, we need to make sure to run the
rebuilder again so we don't need miss any rows. This can only happen when the index is left
active, as otherwise the index will transition back to disabled and we'll end up rerunning
the rebuilder.

This message was sent by Atlassian JIRA

View raw message