Skip to content

PHOENIX-6118: Multi Tenant Workloads using PHERF - #878

Merged
yanxinyi merged 7 commits into
apache:4.xfrom
jpisaac:PHOENIX-6118-PR
Mar 26, 2021
Merged

PHOENIX-6118: Multi Tenant Workloads using PHERF#878
yanxinyi merged 7 commits into
apache:4.xfrom
jpisaac:PHOENIX-6118-PR

Conversation

@jpisaac

Copy link
Copy Markdown
Contributor
  1. Added configuration classes and interfaces for multi-tenant workloads

@jpisaac

Copy link
Copy Markdown
ContributorAuthor

@ChinmaySKulkarni@yanxinyi@gokceni

I am breaking this PR into multiple commits so that it is easy to review.
This is the first of the PRs.

@ChinmaySKulkarniChinmaySKulkarni left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had a quick glance and looks good overall. Is it helpful to add interfaces for some of the configuration classes instead of directly adding solid implementations?

import javax.xml.bind.annotation.XmlType;

@XmlType
public class Noop {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need this NoOp class for?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is for no operation that simulates the idle time.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ChinmaySKulkarni This holds the idle time to be used for waiting. Modeled it as an operation, thus follows the same pattern as other operations.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we rename it so it reflects an operation aimed at injecting "idle/wait time"?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ping @jpisaac I think we should still consider renaming the class so it is clear that it is introduced for the sole purpose of adding wait time. Maybe call it IdleOp

import java.util.List;

@XmlType
public class LoadProfile {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add header comments for all newly introduced classes?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ChinmaySKulkarni added the headers, since you commented let me know if I missed anything.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I meant class-level comments for all the new classes

.getType() == DataTypeMapping.VARCHAR) ? "'" : "";
ret = ret.replace("[" + dynamicField + "]",
needQuotes + ruleApplier.getDataValue(dynamicColumn).getValue() + needQuotes);
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: weird indent

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will try and fix that!!

@@ -0,0 +1,362 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer to put this scenario file under /phoenix-pherf/src/main/resources/scenario/ dir since this is an example of how to run instead of a test case.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yanxinyi This file is used in testWorkloadWithLoadProfile in ConfigurationParserTest. So I think it makes sense to keep it in the test/resources folder.

@jpisaac

Copy link
Copy Markdown
ContributorAuthor

Had a quick glance and looks good overall. Is it helpful to add interfaces for some of the configuration classes instead of directly adding solid implementations?

@ChinmaySKulkarni All configuration classes are mapped to XML files (configs/definitions) so making them interfaces may not help and not add much value. Since they typically will have only getters and setters and there will be only one concrete implementation which matches the underlying XML structure.

@stoty

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 0sDocker mode activated.
-1 ❌docker3m 23sDocker failed to build yetus/phoenix:871ed211e.
SubsystemReport/Notes
GITHUB PR#878
JIRA IssuePHOENIX-6118
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/1/console
versionsgit=2.17.1
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 4sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 1sNo case conflicting files found.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚test4tests0m 0sThe patch appears to include 4 new or modified test files.
_ 4.x Compile Tests _
+1 💚mvninstall11m 47s4.x passed
+1 💚compile0m 32s4.x passed
+1 💚checkstyle0m 21s4.x passed
+1 💚javadoc0m 16s4.x passed
+0 🆗spotbugs0m 53sphoenix-pherf in 4.x has 42 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚mvninstall6m 23sthe patch passed
+1 💚compile0m 33sthe patch passed
+1 💚javac0m 33sthe patch passed
-1 ❌checkstyle0m 31sphoenix-pherf: The patch generated 645 new + 662 unchanged - 33 fixed = 1307 total (was 695)
-1 ❌markdownlint0m 2sThe patch generated 56 new + 0 unchanged - 0 fixed = 56 total (was 0)
-1 ❌whitespace0m 0sThe patch has 5 line(s) that end in whitespace. Use git apply --whitespace=fix <<patch_file>>. Refer https://git-scm.com/docs/git-apply
-1 ❌whitespace0m 0sThe patch 13 line(s) with tabs.
+1 💚xml0m 4sThe patch has no ill-formed XML file.
-1 ❌javadoc0m 16sphoenix-pherf generated 28 new + 32 unchanged - 0 fixed = 60 total (was 32)
-1 ❌spotbugs1m 7sphoenix-pherf generated 7 new + 42 unchanged - 0 fixed = 49 total (was 42)
_ Other Tests _
-1 ❌unit0m 39sphoenix-pherf in the patch failed.
-1 ❌asflicense0m 9sThe patch generated 2 ASF License warnings.
25m 31s
ReasonTests
FindBugsmodule:phoenix-pherf
Found reliance on default encoding in org.apache.phoenix.pherf.workload.continuous.tenantoperation.TenantOperationFactory.buildStatement(Scenario, List, PreparedStatement, SimpleDateFormat):in org.apache.phoenix.pherf.workload.continuous.tenantoperation.TenantOperationFactory.buildStatement(Scenario, List, PreparedStatement, SimpleDateFormat): String.getBytes() At TenantOperationFactory.java:[line 550]
Should org.apache.phoenix.pherf.workload.continuous.tenantoperation.TenantOperationFactory$NoopTenantOperationImpl be a static inner class? At TenantOperationFactory.java:inner class? At TenantOperationFactory.java:[lines 444-447]
Dead store to tableName in org.apache.phoenix.pherf.workload.continuous.tenantoperation.TenantOperationFactory$PreScenarioTenantOperationImpl$1.apply(TenantOperationInfo) At TenantOperationFactory.java:org.apache.phoenix.pherf.workload.continuous.tenantoperation.TenantOperationFactory$PreScenarioTenantOperationImpl$1.apply(TenantOperationInfo) At TenantOperationFactory.java:[line 418]
input must be non-null but is marked as nullable At TenantOperationFactory.java:is marked as nullable At TenantOperationFactory.java:[lines 264-313]
org.apache.phoenix.pherf.workload.continuous.tenantoperation.TenantOperationFactory$QueryTenantOperationImpl$1.apply(TenantOperationInfo) may fail to clean up java.sql.Statement on checked exception Obligation to clean up resource created at TenantOperationFactory.java:up java.sql.Statement on checked exception Obligation to clean up resource created at TenantOperationFactory.java:[line 289] is not discharged
input must be non-null but is marked as nullable At TenantOperationFactory.java:is marked as nullable At TenantOperationFactory.java:[lines 326-405]
org.apache.phoenix.pherf.workload.continuous.tenantoperation.TenantOperationFactory$UpsertTenantOperationImpl$1.apply(TenantOperationInfo) may fail to clean up java.sql.Statement Obligation to clean up resource created at TenantOperationFactory.java:up java.sql.Statement Obligation to clean up resource created at TenantOperationFactory.java:[line 351] is not discharged
Failed junit testsphoenix.pherf.ResourceTest
phoenix.pherf.PherfTest
phoenix.pherf.RuleGeneratorTest
SubsystemReport/Notes
DockerClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/2/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#878
JIRA IssuePHOENIX-6118
Optional Testsdupname asflicense markdownlint javac javadoc unit xml compile spotbugs hbaseanti checkstyle
unameLinux 3533df368186 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev/phoenix-personality.sh
git revision4.x / ed7f1a6
Default JavaPrivate Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstylehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/2/artifact/yetus-general-check/output/diff-checkstyle-phoenix-pherf.txt
markdownlinthttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/2/artifact/yetus-general-check/output/diff-patch-markdownlint.txt
whitespacehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/2/artifact/yetus-general-check/output/whitespace-eol.txt
whitespacehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/2/artifact/yetus-general-check/output/whitespace-tabs.txt
javadochttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/2/artifact/yetus-general-check/output/diff-javadoc-javadoc-phoenix-pherf.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/2/artifact/yetus-general-check/output/new-spotbugs-phoenix-pherf.html
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/2/artifact/yetus-general-check/output/patch-unit-phoenix-pherf.txt
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/2/testReport/
asflicensehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/2/artifact/yetus-general-check/output/patch-asflicense-problems.txt
Max. process+thread count92 (vs. ulimit of 30000)
modulesC: phoenix-pherf U: phoenix-pherf
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/2/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.3 markdownlint=0.22.0
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty

stoty commented Dec 3, 2020

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 32sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚test4tests0m 0sThe patch appears to include 9 new or modified test files.
_ 4.x Compile Tests _
+1 💚mvninstall11m 25s4.x passed
+1 💚compile0m 31s4.x passed
+1 💚checkstyle0m 32s4.x passed
+1 💚javadoc0m 16s4.x passed
+0 🆗spotbugs0m 50sphoenix-pherf in 4.x has 42 extant spotbugs warnings.
-0 ⚠️patch0m 57sUsed diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
+1 💚mvninstall5m 25sthe patch passed
+1 💚compile0m 30sthe patch passed
+1 💚javac0m 30sthe patch passed
-1 ❌checkstyle0m 48sphoenix-pherf: The patch generated 676 new + 826 unchanged - 53 fixed = 1502 total (was 879)
-1 ❌whitespace0m 0sThe patch 12 line(s) with tabs.
+1 💚xml0m 7sThe patch has no ill-formed XML file.
-1 ❌javadoc0m 15sphoenix-pherf generated 31 new + 32 unchanged - 0 fixed = 63 total (was 32)
-1 ❌spotbugs1m 2sphoenix-pherf generated 9 new + 41 unchanged - 1 fixed = 50 total (was 42)
_ Other Tests _
-1 ❌unit0m 51sphoenix-pherf in the patch failed.
-1 ❌asflicense0m 9sThe patch generated 5 ASF License warnings.
24m 24s
ReasonTests
FindBugsmodule:phoenix-pherf
Found reliance on default encoding in org.apache.phoenix.pherf.util.PhoenixUtil.buildStatement(RulesApplier, Scenario, List, PreparedStatement, SimpleDateFormat):in org.apache.phoenix.pherf.util.PhoenixUtil.buildStatement(RulesApplier, Scenario, List, PreparedStatement, SimpleDateFormat): String.getBytes() At PhoenixUtil.java:[line 557]
Should org.apache.phoenix.pherf.workload.mt.tenantoperation.TenantOperationFactory$NoopTenantOperationImpl be a static inner class? At TenantOperationFactory.java:inner class? At TenantOperationFactory.java:[lines 459-462]
Dead store to tableName in org.apache.phoenix.pherf.workload.mt.tenantoperation.TenantOperationFactory$PreScenarioTenantOperationImpl$1.apply(TenantOperationInfo) At TenantOperationFactory.java:org.apache.phoenix.pherf.workload.mt.tenantoperation.TenantOperationFactory$PreScenarioTenantOperationImpl$1.apply(TenantOperationInfo) At TenantOperationFactory.java:[line 432]
input must be non-null but is marked as nullable At TenantOperationFactory.java:is marked as nullable At TenantOperationFactory.java:[lines 278-327]
org.apache.phoenix.pherf.workload.mt.tenantoperation.TenantOperationFactory$QueryTenantOperationImpl$1.apply(TenantOperationInfo) may fail to clean up java.sql.Statement on checked exception Obligation to clean up resource created at TenantOperationFactory.java:up java.sql.Statement on checked exception Obligation to clean up resource created at TenantOperationFactory.java:[line 303] is not discharged
input must be non-null but is marked as nullable At TenantOperationFactory.java:is marked as nullable At TenantOperationFactory.java:[lines 340-419]
org.apache.phoenix.pherf.workload.mt.tenantoperation.TenantOperationFactory$UpsertTenantOperationImpl$1.apply(TenantOperationInfo) may fail to clean up java.sql.Statement Obligation to clean up resource created at TenantOperationFactory.java:up java.sql.Statement Obligation to clean up resource created at TenantOperationFactory.java:[line 365] is not discharged
Should org.apache.phoenix.pherf.workload.mt.tenantoperation.TenantOperationFactory$UserDefinedOperationImpl be a static inner class? At TenantOperationFactory.java:inner class? At TenantOperationFactory.java:[lines 484-487]
Return value of TenantOperationFactory.getPhoenixUtil() ignored, but method has no side effect At TenantOperationWorkHandler.java:but method has no side effect At TenantOperationWorkHandler.java:[line 54]
Failed junit testsphoenix.pherf.PherfTest
phoenix.pherf.RuleGeneratorTest
phoenix.pherf.ResourceTest
SubsystemReport/Notes
DockerClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/3/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#878
JIRA IssuePHOENIX-6118
Optional Testsdupname asflicense javac javadoc unit xml compile spotbugs hbaseanti checkstyle
unameLinux 76cc49e66698 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev/phoenix-personality.sh
git revision4.x / b8cb658
Default JavaPrivate Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstylehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/3/artifact/yetus-general-check/output/diff-checkstyle-phoenix-pherf.txt
whitespacehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/3/artifact/yetus-general-check/output/whitespace-tabs.txt
javadochttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/3/artifact/yetus-general-check/output/diff-javadoc-javadoc-phoenix-pherf.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/3/artifact/yetus-general-check/output/new-spotbugs-phoenix-pherf.html
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/3/artifact/yetus-general-check/output/patch-unit-phoenix-pherf.txt
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/3/testReport/
asflicensehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/3/artifact/yetus-general-check/output/patch-asflicense-problems.txt
Max. process+thread count102 (vs. ulimit of 30000)
modulesC: phoenix-pherf U: phoenix-pherf
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/3/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

public final ExpectedSystemExit exit = ExpectedSystemExit.none();

@Test
@Ignore

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why we ignore this test?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same question

// Assume the first rule map
Map<DataTypeMapping, List> ruleMap = modelList.get(0);
List<Column> ruleList = ruleMap.get(phxMetaColumn.getType());
//LOGGER.info(String.format("Did not found a correct override column rule, %s, %s", phxMetaColumn.getName(), phxMetaColumn.getType()));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: remove unused statement

statement.setNull(count, Types.DATE);
} else {
Date
date =

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: style issue

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you address this in the next PR

@stoty

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec4m 31sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 1sNo case conflicting files found.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚test4tests0m 0sThe patch appears to include 9 new or modified test files.
_ 4.x Compile Tests _
+1 💚mvninstall10m 53s4.x passed
+1 💚compile0m 31s4.x passed
+1 💚checkstyle0m 32s4.x passed
+1 💚javadoc0m 17s4.x passed
+0 🆗spotbugs0m 50sphoenix-pherf in 4.x has 42 extant spotbugs warnings.
-0 ⚠️patch0m 57sUsed diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
+1 💚mvninstall5m 29sthe patch passed
+1 💚compile0m 29sthe patch passed
-1 ❌javac0m 29sphoenix-pherf generated 1 new + 0 unchanged - 0 fixed = 1 total (was 0)
-1 ❌checkstyle0m 48sphoenix-pherf: The patch generated 682 new + 822 unchanged - 57 fixed = 1504 total (was 879)
-1 ❌whitespace0m 0sThe patch 12 line(s) with tabs.
+1 💚xml0m 7sThe patch has no ill-formed XML file.
-1 ❌javadoc0m 16sphoenix-pherf generated 31 new + 32 unchanged - 0 fixed = 63 total (was 32)
-1 ❌spotbugs1m 4sphoenix-pherf generated 9 new + 41 unchanged - 1 fixed = 50 total (was 42)
_ Other Tests _
-1 ❌unit0m 52sphoenix-pherf in the patch failed.
+1 💚asflicense0m 9sThe patch does not generate ASF License warnings.
27m 57s
ReasonTests
FindBugsmodule:phoenix-pherf
Found reliance on default encoding in org.apache.phoenix.pherf.util.PhoenixUtil.buildStatement(RulesApplier, Scenario, List, PreparedStatement, SimpleDateFormat):in org.apache.phoenix.pherf.util.PhoenixUtil.buildStatement(RulesApplier, Scenario, List, PreparedStatement, SimpleDateFormat): String.getBytes() At PhoenixUtil.java:[line 557]
Should org.apache.phoenix.pherf.workload.mt.tenantoperation.TenantOperationFactory$NoopTenantOperationImpl be a static inner class? At TenantOperationFactory.java:inner class? At TenantOperationFactory.java:[lines 461-464]
Dead store to tableName in org.apache.phoenix.pherf.workload.mt.tenantoperation.TenantOperationFactory$PreScenarioTenantOperationImpl$1.apply(TenantOperationInfo) At TenantOperationFactory.java:org.apache.phoenix.pherf.workload.mt.tenantoperation.TenantOperationFactory$PreScenarioTenantOperationImpl$1.apply(TenantOperationInfo) At TenantOperationFactory.java:[line 434]
input must be non-null but is marked as nullable At TenantOperationFactory.java:is marked as nullable At TenantOperationFactory.java:[lines 279-329]
org.apache.phoenix.pherf.workload.mt.tenantoperation.TenantOperationFactory$QueryTenantOperationImpl$1.apply(TenantOperationInfo) may fail to clean up java.sql.Statement on checked exception Obligation to clean up resource created at TenantOperationFactory.java:up java.sql.Statement on checked exception Obligation to clean up resource created at TenantOperationFactory.java:[line 305] is not discharged
input must be non-null but is marked as nullable At TenantOperationFactory.java:is marked as nullable At TenantOperationFactory.java:[lines 342-421]
org.apache.phoenix.pherf.workload.mt.tenantoperation.TenantOperationFactory$UpsertTenantOperationImpl$1.apply(TenantOperationInfo) may fail to clean up java.sql.Statement Obligation to clean up resource created at TenantOperationFactory.java:up java.sql.Statement Obligation to clean up resource created at TenantOperationFactory.java:[line 367] is not discharged
Should org.apache.phoenix.pherf.workload.mt.tenantoperation.TenantOperationFactory$UserDefinedOperationImpl be a static inner class? At TenantOperationFactory.java:inner class? At TenantOperationFactory.java:[lines 486-489]
Return value of TenantOperationFactory.getPhoenixUtil() ignored, but method has no side effect At TenantOperationWorkHandler.java:but method has no side effect At TenantOperationWorkHandler.java:[line 52]
Failed junit testsphoenix.pherf.PherfTest
phoenix.pherf.ResourceTest
phoenix.pherf.RuleGeneratorTest
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/4/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#878
JIRA IssuePHOENIX-6118
Optional Testsdupname asflicense javac javadoc unit xml compile spotbugs hbaseanti checkstyle
unameLinux 19a3f8c4f3a8 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev/phoenix-personality.sh
git revision4.x / a3b6d0b
Default JavaPrivate Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
javachttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/4/artifact/yetus-general-check/output/diff-compile-javac-phoenix-pherf.txt
checkstylehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/4/artifact/yetus-general-check/output/diff-checkstyle-phoenix-pherf.txt
whitespacehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/4/artifact/yetus-general-check/output/whitespace-tabs.txt
javadochttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/4/artifact/yetus-general-check/output/diff-javadoc-javadoc-phoenix-pherf.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/4/artifact/yetus-general-check/output/new-spotbugs-phoenix-pherf.html
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/4/artifact/yetus-general-check/output/patch-unit-phoenix-pherf.txt
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/4/testReport/
Max. process+thread count102 (vs. ulimit of 30000)
modulesC: phoenix-pherf U: phoenix-pherf
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/4/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

(
GID
)
) AS SELECT * FROM PHERF.TEST_MULTI_TENANT_TABLE WHERE IDENTIFIER = 'EV1'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't find the DDL for PHERF.TEST_MULTI_TENANT_TABLE

@ChinmaySKulkarniChinmaySKulkarni left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added some comments @jpisaac

public final ExpectedSystemExit exit = ExpectedSystemExit.none();

@Test
@Ignore

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same question

for (Scenario scenario : model.getScenarios()) {
LOGGER.debug(String.format("Testing %s", scenario.getName()));
LoadProfile loadProfile = scenario.getLoadProfile();
assertTrue("tenant group size is not as expected: ",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Use assertEquals() instead

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same for other such instances

while (ops-- > 0) {
TenantOperationInfo info = evtGen.next();
TenantOperationImpl op = opFactory.getOperation(info);
int row = TestOperationGroup.valueOf(info.getOperationGroupId()).ordinal();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can't we just use the enum value instead of referring to its ordinal here?


public class MultiTenantOperationBaseIT extends ParallelStatsDisabledIT {
static enum TestOperationGroup {
op1, op2, op3, op4, op5

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There seems to be some inherent assumption what each operation group does i.e. upsert vs NoOp, etc. as per my understanding. Can you rename the enum values and/or add some comments to clarify this?

LOGGER.info(pUtil.getGSON().toJson(stats));
if (info.getOperation().getType() == Operation.OperationType.PRE_RUN) continue;
switch (row) {
case 0:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use switch on the enum values themselves rather than the ordinal?

/**
* Holds metrics + contextual info on the operation run.
*/
public class OperationStats {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't operationStats really be different per Operation? Operation is an interface whereas this is a concrete class. Each operation type might have their own stats, no? Maybe make this an abstract class instead and have each operation type implement their own stats which extend this?

long duration = EnvironmentEdgeManager.currentTimeMillis() - startTime;
return new OperationStats(input, startTime, 0, 0, duration);
} catch (InterruptedException e) {
e.printStackTrace();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

log instead


Scenario testScenarioWithLoadProfile = scenarioList.get(0);
LoadProfile loadProfile = testScenarioWithLoadProfile.getLoadProfile();
assertTrue("batch size not as expected: ",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Use assertEquals() everywhere

// If we don't parse the DTD, the variable 'name' won't be defined in the XML
LOGGER.warn("Caught expected exception", e);
}
return null;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we handling this null value in the caller?

for (Scenario scenario : model.getScenarios()) {
LOGGER.debug(String.format("Testing %s", scenario.getName()));
LoadProfile loadProfile = scenario.getLoadProfile();
assertTrue("tenant group size is not as expected: ",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: assertEquals throughout

@stoty

stoty commented Jan 6, 2021

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec6m 49sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚test4tests0m 0sThe patch appears to include 9 new or modified test files.
_ 4.x Compile Tests _
+1 💚mvninstall15m 21s4.x passed
+1 💚compile0m 44s4.x passed
+1 💚checkstyle0m 27s4.x passed
+1 💚javadoc0m 21s4.x passed
+0 🆗spotbugs1m 8sphoenix-pherf in 4.x has 42 extant spotbugs warnings.
-0 ⚠️patch1m 16sUsed diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
+1 💚mvninstall8m 17sthe patch passed
+1 💚compile0m 46sthe patch passed
-1 ❌javac0m 46sphoenix-pherf generated 1 new + 0 unchanged - 0 fixed = 1 total (was 0)
-1 ❌checkstyle0m 40sphoenix-pherf: The patch generated 742 new + 824 unchanged - 57 fixed = 1566 total (was 881)
-1 ❌whitespace0m 0sThe patch has 2 line(s) that end in whitespace. Use git apply --whitespace=fix <<patch_file>>. Refer https://git-scm.com/docs/git-apply
-1 ❌whitespace0m 0sThe patch 13 line(s) with tabs.
+1 💚xml0m 10sThe patch has no ill-formed XML file.
-1 ❌javadoc0m 18sphoenix-pherf generated 25 new + 32 unchanged - 0 fixed = 57 total (was 32)
-1 ❌spotbugs1m 24sphoenix-pherf generated 3 new + 41 unchanged - 1 fixed = 44 total (was 42)
_ Other Tests _
+1 💚unit17m 36sphoenix-pherf in the patch passed.
+1 💚asflicense0m 9sThe patch does not generate ASF License warnings.
55m 19s
ReasonTests
FindBugsmodule:phoenix-pherf
Found reliance on default encoding in org.apache.phoenix.pherf.util.PhoenixUtil.buildStatement(RulesApplier, Scenario, List, PreparedStatement, SimpleDateFormat):in org.apache.phoenix.pherf.util.PhoenixUtil.buildStatement(RulesApplier, Scenario, List, PreparedStatement, SimpleDateFormat): String.getBytes() At PhoenixUtil.java:[line 557]
Return value of TenantOperationFactory.getPhoenixUtil() ignored, but method has no side effect At TenantOperationWorkHandler.java:but method has no side effect At TenantOperationWorkHandler.java:[line 59]
org.apache.phoenix.pherf.workload.mt.tenantoperation.UpsertOperationSupplier$1.apply(TenantOperationInfo) may fail to clean up java.sql.Statement Obligation to clean up resource created at UpsertOperationSupplier.java:up java.sql.Statement Obligation to clean up resource created at UpsertOperationSupplier.java:[line 81] is not discharged
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/5/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#878
JIRA IssuePHOENIX-6118
Optional Testsdupname asflicense javac javadoc unit xml compile spotbugs hbaseanti checkstyle
unameLinux 1ff5e5911e99 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev/phoenix-personality.sh
git revision4.x / 43b56d4
Default JavaPrivate Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
javachttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/5/artifact/yetus-general-check/output/diff-compile-javac-phoenix-pherf.txt
checkstylehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/5/artifact/yetus-general-check/output/diff-checkstyle-phoenix-pherf.txt
whitespacehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/5/artifact/yetus-general-check/output/whitespace-eol.txt
whitespacehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/5/artifact/yetus-general-check/output/whitespace-tabs.txt
javadochttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/5/artifact/yetus-general-check/output/diff-javadoc-javadoc-phoenix-pherf.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/5/artifact/yetus-general-check/output/new-spotbugs-phoenix-pherf.html
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/5/testReport/
Max. process+thread count1742 (vs. ulimit of 30000)
modulesC: phoenix-pherf U: phoenix-pherf
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/5/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty

stoty commented Jan 9, 2021

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 31sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 1sNo case conflicting files found.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚test4tests0m 0sThe patch appears to include 10 new or modified test files.
_ 4.x Compile Tests _
+1 💚mvninstall14m 6s4.x passed
+1 💚compile0m 34s4.x passed
+1 💚checkstyle0m 32s4.x passed
+1 💚javadoc0m 16s4.x passed
+0 🆗spotbugs0m 54sphoenix-pherf in 4.x has 42 extant spotbugs warnings.
-0 ⚠️patch1m 1sUsed diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
+1 💚mvninstall5m 43sthe patch passed
+1 💚compile0m 34sthe patch passed
-1 ❌javac0m 34sphoenix-pherf generated 1 new + 0 unchanged - 0 fixed = 1 total (was 0)
-1 ❌checkstyle0m 51sphoenix-pherf: The patch generated 756 new + 826 unchanged - 53 fixed = 1582 total (was 879)
-1 ❌whitespace0m 0sThe patch has 2 line(s) that end in whitespace. Use git apply --whitespace=fix <<patch_file>>. Refer https://git-scm.com/docs/git-apply
-1 ❌whitespace0m 1sThe patch 13 line(s) with tabs.
+1 💚xml0m 9sThe patch has no ill-formed XML file.
-1 ❌javadoc0m 16sphoenix-pherf generated 25 new + 32 unchanged - 0 fixed = 57 total (was 32)
-1 ❌spotbugs1m 8sphoenix-pherf generated 3 new + 41 unchanged - 1 fixed = 44 total (was 42)
_ Other Tests _
+1 💚unit15m 30sphoenix-pherf in the patch passed.
+1 💚asflicense0m 10sThe patch does not generate ASF License warnings.
42m 25s
ReasonTests
FindBugsmodule:phoenix-pherf
Found reliance on default encoding in org.apache.phoenix.pherf.util.PhoenixUtil.buildStatement(RulesApplier, Scenario, List, PreparedStatement, SimpleDateFormat):in org.apache.phoenix.pherf.util.PhoenixUtil.buildStatement(RulesApplier, Scenario, List, PreparedStatement, SimpleDateFormat): String.getBytes() At PhoenixUtil.java:[line 557]
Return value of TenantOperationFactory.getPhoenixUtil() ignored, but method has no side effect At TenantOperationWorkHandler.java:but method has no side effect At TenantOperationWorkHandler.java:[line 59]
org.apache.phoenix.pherf.workload.mt.tenantoperation.UpsertOperationSupplier$1.apply(TenantOperationInfo) may fail to clean up java.sql.Statement Obligation to clean up resource created at UpsertOperationSupplier.java:up java.sql.Statement Obligation to clean up resource created at UpsertOperationSupplier.java:[line 81] is not discharged
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/6/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#878
JIRA IssuePHOENIX-6118
Optional Testsdupname asflicense javac javadoc unit xml compile spotbugs hbaseanti checkstyle
unameLinux 4ab9f513e864 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev/phoenix-personality.sh
git revision4.x / 2a530da
Default JavaPrivate Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
javachttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/6/artifact/yetus-general-check/output/diff-compile-javac-phoenix-pherf.txt
checkstylehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/6/artifact/yetus-general-check/output/diff-checkstyle-phoenix-pherf.txt
whitespacehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/6/artifact/yetus-general-check/output/whitespace-eol.txt
whitespacehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/6/artifact/yetus-general-check/output/whitespace-tabs.txt
javadochttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/6/artifact/yetus-general-check/output/diff-javadoc-javadoc-phoenix-pherf.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/6/artifact/yetus-general-check/output/new-spotbugs-phoenix-pherf.html
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/6/testReport/
Max. process+thread count1629 (vs. ulimit of 30000)
modulesC: phoenix-pherf U: phoenix-pherf
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/6/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@yanxinyi

Copy link
Copy Markdown
Contributor

@jpisaac can you handle the above comments and solve the conflicts?

@jpisaac

Copy link
Copy Markdown
ContributorAuthor

@ChinmaySKulkarni@yanxinyi Rebased it to 4.x tip

@stoty

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 37sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 1sNo case conflicting files found.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚test4tests0m 0sThe patch appears to include 10 new or modified test files.
_ 4.x Compile Tests _
+1 💚mvninstall13m 55s4.x passed
+1 💚compile0m 35s4.x passed
+1 💚checkstyle0m 36s4.x passed
+1 💚javadoc0m 18s4.x passed
+0 🆗spotbugs0m 54sphoenix-pherf in 4.x has 42 extant spotbugs warnings.
-0 ⚠️patch1m 1sUsed diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
+1 💚mvninstall5m 39sthe patch passed
+1 💚compile0m 35sthe patch passed
+1 💚javac0m 35sthe patch passed
-1 ❌checkstyle0m 54sphoenix-pherf: The patch generated 752 new + 933 unchanged - 49 fixed = 1685 total (was 982)
-1 ❌whitespace0m 0sThe patch has 2 line(s) that end in whitespace. Use git apply --whitespace=fix <<patch_file>>. Refer https://git-scm.com/docs/git-apply
-1 ❌whitespace0m 0sThe patch 13 line(s) with tabs.
+1 💚xml0m 9sThe patch has no ill-formed XML file.
-1 ❌javadoc0m 17sphoenix-pherf generated 25 new + 32 unchanged - 0 fixed = 57 total (was 32)
-1 ❌spotbugs1m 8sphoenix-pherf generated 9 new + 41 unchanged - 1 fixed = 50 total (was 42)
_ Other Tests _
-1 ❌unit9m 37sphoenix-pherf in the patch failed.
+1 💚asflicense0m 9sThe patch does not generate ASF License warnings.
36m 40s
ReasonTests
FindBugsmodule:phoenix-pherf
Found reliance on default encoding in org.apache.phoenix.pherf.util.PhoenixUtil.buildStatement(RulesApplier, Scenario, List, PreparedStatement, SimpleDateFormat):in org.apache.phoenix.pherf.util.PhoenixUtil.buildStatement(RulesApplier, Scenario, List, PreparedStatement, SimpleDateFormat): String.getBytes() At PhoenixUtil.java:[line 557]
input must be non-null but is marked as nullable At IdleTimeOperationSupplier.java:is marked as nullable At IdleTimeOperationSupplier.java:[lines 52-74]
input must be non-null but is marked as nullable At PreScenarioOperationSupplier.java:is marked as nullable At PreScenarioOperationSupplier.java:[lines 51-80]
input must be non-null but is marked as nullable At QueryOperationSupplier.java:is marked as nullable At QueryOperationSupplier.java:[lines 54-87]
Possible null pointer dereference in org.apache.phoenix.pherf.workload.mt.tenantoperation.TenantOperationWorkHandler.onEvent(TenantOperationWorkload$TenantOperationEvent) due to return value of called method Dereferenced at TenantOperationWorkHandler.java:org.apache.phoenix.pherf.workload.mt.tenantoperation.TenantOperationWorkHandler.onEvent(TenantOperationWorkload$TenantOperationEvent) due to return value of called method Dereferenced at TenantOperationWorkHandler.java:[line 58]
Return value of TenantOperationFactory.getPhoenixUtil() ignored, but method has no side effect At TenantOperationWorkHandler.java:but method has no side effect At TenantOperationWorkHandler.java:[line 59]
input must be non-null but is marked as nullable At UpsertOperationSupplier.java:is marked as nullable At UpsertOperationSupplier.java:[lines 56-136]
org.apache.phoenix.pherf.workload.mt.tenantoperation.UpsertOperationSupplier$1.apply(TenantOperationInfo) may fail to clean up java.sql.Statement Obligation to clean up resource created at UpsertOperationSupplier.java:up java.sql.Statement Obligation to clean up resource created at UpsertOperationSupplier.java:[line 81] is not discharged
input must be non-null but is marked as nullable At UserDefinedOperationSupplier.java:is marked as nullable At UserDefinedOperationSupplier.java:[lines 44-46]
Failed junit testsphoenix.pherf.workload.mt.tenantoperation.TenantOperationIT
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/7/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#878
JIRA IssuePHOENIX-6118
Optional Testsdupname asflicense javac javadoc unit xml compile spotbugs hbaseanti checkstyle
unameLinux 131d4912d2fd 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev/phoenix-personality.sh
git revision4.x / 8e44658
Default JavaPrivate Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstylehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/7/artifact/yetus-general-check/output/diff-checkstyle-phoenix-pherf.txt
whitespacehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/7/artifact/yetus-general-check/output/whitespace-eol.txt
whitespacehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/7/artifact/yetus-general-check/output/whitespace-tabs.txt
javadochttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/7/artifact/yetus-general-check/output/diff-javadoc-javadoc-phoenix-pherf.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/7/artifact/yetus-general-check/output/new-spotbugs-phoenix-pherf.html
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/7/artifact/yetus-general-check/output/patch-unit-phoenix-pherf.txt
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/7/testReport/
Max. process+thread count1823 (vs. ulimit of 30000)
modulesC: phoenix-pherf U: phoenix-pherf
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/7/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 12sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 1sNo case conflicting files found.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚test4tests0m 0sThe patch appears to include 10 new or modified test files.
_ 4.x Compile Tests _
+1 💚mvninstall14m 55s4.x passed
+1 💚compile0m 38s4.x passed
+1 💚checkstyle0m 27s4.x passed
+1 💚javadoc0m 17s4.x passed
+0 🆗spotbugs1m 0sphoenix-pherf in 4.x has 42 extant spotbugs warnings.
-0 ⚠️patch1m 6sUsed diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
+1 💚mvninstall6m 53sthe patch passed
+1 💚compile0m 37sthe patch passed
+1 💚javac0m 37sthe patch passed
-1 ❌checkstyle0m 39sphoenix-pherf: The patch generated 759 new + 1017 unchanged - 54 fixed = 1776 total (was 1071)
-1 ❌whitespace0m 0sThe patch has 2 line(s) that end in whitespace. Use git apply --whitespace=fix <<patch_file>>. Refer https://git-scm.com/docs/git-apply
-1 ❌whitespace0m 0sThe patch 9 line(s) with tabs.
+1 💚xml0m 9sThe patch has no ill-formed XML file.
-1 ❌javadoc0m 17sphoenix-pherf generated 25 new + 32 unchanged - 0 fixed = 57 total (was 32)
-1 ❌spotbugs1m 11sphoenix-pherf generated 9 new + 41 unchanged - 1 fixed = 50 total (was 42)
_ Other Tests _
+1 💚unit10m 33sphoenix-pherf in the patch passed.
+1 💚asflicense0m 9sThe patch does not generate ASF License warnings.
39m 59s
ReasonTests
FindBugsmodule:phoenix-pherf
Found reliance on default encoding in org.apache.phoenix.pherf.util.PhoenixUtil.buildStatement(RulesApplier, Scenario, List, PreparedStatement, SimpleDateFormat):in org.apache.phoenix.pherf.util.PhoenixUtil.buildStatement(RulesApplier, Scenario, List, PreparedStatement, SimpleDateFormat): String.getBytes() At PhoenixUtil.java:[line 557]
input must be non-null but is marked as nullable At IdleTimeOperationSupplier.java:is marked as nullable At IdleTimeOperationSupplier.java:[lines 52-74]
input must be non-null but is marked as nullable At PreScenarioOperationSupplier.java:is marked as nullable At PreScenarioOperationSupplier.java:[lines 51-80]
input must be non-null but is marked as nullable At QueryOperationSupplier.java:is marked as nullable At QueryOperationSupplier.java:[lines 54-87]
Possible null pointer dereference in org.apache.phoenix.pherf.workload.mt.tenantoperation.TenantOperationWorkHandler.onEvent(TenantOperationWorkload$TenantOperationEvent) due to return value of called method Dereferenced at TenantOperationWorkHandler.java:org.apache.phoenix.pherf.workload.mt.tenantoperation.TenantOperationWorkHandler.onEvent(TenantOperationWorkload$TenantOperationEvent) due to return value of called method Dereferenced at TenantOperationWorkHandler.java:[line 58]
Return value of TenantOperationFactory.getPhoenixUtil() ignored, but method has no side effect At TenantOperationWorkHandler.java:but method has no side effect At TenantOperationWorkHandler.java:[line 59]
input must be non-null but is marked as nullable At UpsertOperationSupplier.java:is marked as nullable At UpsertOperationSupplier.java:[lines 56-136]
org.apache.phoenix.pherf.workload.mt.tenantoperation.UpsertOperationSupplier$1.apply(TenantOperationInfo) may fail to clean up java.sql.Statement Obligation to clean up resource created at UpsertOperationSupplier.java:up java.sql.Statement Obligation to clean up resource created at UpsertOperationSupplier.java:[line 81] is not discharged
input must be non-null but is marked as nullable At UserDefinedOperationSupplier.java:is marked as nullable At UserDefinedOperationSupplier.java:[lines 44-46]
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/9/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#878
JIRA IssuePHOENIX-6118
Optional Testsdupname asflicense javac javadoc unit xml compile spotbugs hbaseanti checkstyle
unameLinux 83b7773edaf8 4.15.0-136-generic #140-Ubuntu SMP Thu Jan 28 05:20:47 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev/phoenix-personality.sh
git revision4.x / 7198196
Default JavaPrivate Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstylehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/9/artifact/yetus-general-check/output/diff-checkstyle-phoenix-pherf.txt
whitespacehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/9/artifact/yetus-general-check/output/whitespace-eol.txt
whitespacehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/9/artifact/yetus-general-check/output/whitespace-tabs.txt
javadochttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/9/artifact/yetus-general-check/output/diff-javadoc-javadoc-phoenix-pherf.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/9/artifact/yetus-general-check/output/new-spotbugs-phoenix-pherf.html
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/9/testReport/
Max. process+thread count1715 (vs. ulimit of 30000)
modulesC: phoenix-pherf U: phoenix-pherf
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/9/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@jpisaac

Copy link
Copy Markdown
ContributorAuthor

@yanxinyi@ChinmaySKulkarni for 4.x

@stoty

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec4m 22sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 1sNo case conflicting files found.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚test4tests0m 0sThe patch appears to include 10 new or modified test files.
_ 4.x Compile Tests _
+1 💚mvninstall14m 1s4.x passed
+1 💚compile0m 35s4.x passed
+1 💚checkstyle0m 38s4.x passed
+1 💚javadoc0m 17s4.x passed
+0 🆗spotbugs0m 56sphoenix-pherf in 4.x has 42 extant spotbugs warnings.
-0 ⚠️patch1m 2sUsed diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
+1 💚mvninstall5m 43sthe patch passed
+1 💚compile0m 35sthe patch passed
+1 💚javac0m 35sthe patch passed
-1 ❌checkstyle0m 56sphoenix-pherf: The patch generated 759 new + 1019 unchanged - 54 fixed = 1778 total (was 1073)
-1 ❌whitespace0m 0sThe patch has 2 line(s) that end in whitespace. Use git apply --whitespace=fix <<patch_file>>. Refer https://git-scm.com/docs/git-apply
-1 ❌whitespace0m 0sThe patch 14 line(s) with tabs.
+1 💚xml0m 9sThe patch has no ill-formed XML file.
-1 ❌javadoc0m 17sphoenix-pherf generated 25 new + 32 unchanged - 0 fixed = 57 total (was 32)
-1 ❌spotbugs1m 6sphoenix-pherf generated 9 new + 41 unchanged - 1 fixed = 50 total (was 42)
_ Other Tests _
+1 💚unit9m 56sphoenix-pherf in the patch passed.
+1 💚asflicense0m 9sThe patch does not generate ASF License warnings.
40m 50s
ReasonTests
FindBugsmodule:phoenix-pherf
Found reliance on default encoding in org.apache.phoenix.pherf.util.PhoenixUtil.buildStatement(RulesApplier, Scenario, List, PreparedStatement, SimpleDateFormat):in org.apache.phoenix.pherf.util.PhoenixUtil.buildStatement(RulesApplier, Scenario, List, PreparedStatement, SimpleDateFormat): String.getBytes() At PhoenixUtil.java:[line 557]
input must be non-null but is marked as nullable At IdleTimeOperationSupplier.java:is marked as nullable At IdleTimeOperationSupplier.java:[lines 52-74]
input must be non-null but is marked as nullable At PreScenarioOperationSupplier.java:is marked as nullable At PreScenarioOperationSupplier.java:[lines 51-80]
input must be non-null but is marked as nullable At QueryOperationSupplier.java:is marked as nullable At QueryOperationSupplier.java:[lines 54-87]
Possible null pointer dereference in org.apache.phoenix.pherf.workload.mt.tenantoperation.TenantOperationWorkHandler.onEvent(TenantOperationWorkload$TenantOperationEvent) due to return value of called method Dereferenced at TenantOperationWorkHandler.java:org.apache.phoenix.pherf.workload.mt.tenantoperation.TenantOperationWorkHandler.onEvent(TenantOperationWorkload$TenantOperationEvent) due to return value of called method Dereferenced at TenantOperationWorkHandler.java:[line 58]
Return value of TenantOperationFactory.getPhoenixUtil() ignored, but method has no side effect At TenantOperationWorkHandler.java:but method has no side effect At TenantOperationWorkHandler.java:[line 59]
input must be non-null but is marked as nullable At UpsertOperationSupplier.java:is marked as nullable At UpsertOperationSupplier.java:[lines 56-136]
org.apache.phoenix.pherf.workload.mt.tenantoperation.UpsertOperationSupplier$1.apply(TenantOperationInfo) may fail to clean up java.sql.Statement Obligation to clean up resource created at UpsertOperationSupplier.java:up java.sql.Statement Obligation to clean up resource created at UpsertOperationSupplier.java:[line 81] is not discharged
input must be non-null but is marked as nullable At UserDefinedOperationSupplier.java:is marked as nullable At UserDefinedOperationSupplier.java:[lines 44-46]
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/10/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#878
JIRA IssuePHOENIX-6118
Optional Testsdupname asflicense javac javadoc unit xml compile spotbugs hbaseanti checkstyle
unameLinux cb076b502a1a 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev/phoenix-personality.sh
git revision4.x / 7198196
Default JavaPrivate Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstylehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/10/artifact/yetus-general-check/output/diff-checkstyle-phoenix-pherf.txt
whitespacehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/10/artifact/yetus-general-check/output/whitespace-eol.txt
whitespacehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/10/artifact/yetus-general-check/output/whitespace-tabs.txt
javadochttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/10/artifact/yetus-general-check/output/diff-javadoc-javadoc-phoenix-pherf.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/10/artifact/yetus-general-check/output/new-spotbugs-phoenix-pherf.html
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/10/testReport/
Max. process+thread count1729 (vs. ulimit of 30000)
modulesC: phoenix-pherf U: phoenix-pherf
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-878/10/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

import org.apache.phoenix.pherf.result.ResultValue;
import org.apache.phoenix.pherf.result.file.ResultFileDetails;
import org.apache.phoenix.pherf.result.impl.CSVFileResultHandler;
import org.junit.Ignore;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: can you remove this unused import from the next PR. Don't need to fix it now

@yanxinyi
yanxinyi merged commit 3535708 into apache:4.xMar 26, 2021
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@jpisaac@stoty@yanxinyi@ChinmaySKulkarni