Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHOENIX-6698 hive-connector will take long time to generate splits fo… #79

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

jichen20210919
Copy link

This patch enables PhoenixInputFormat to generate splits in parallel, it introduce two parameters to control the degree of parallelism.
1.'hive.phoenix.split.parallel.threshold' is used to contrl if split should be generated in parallel.it will generate splits in serial for following condition:
(1) hive.phoenix.split.parallel.threshold<0, it will generate split in serial.
(2) number of scans in query plan is less than the value setting.
in other conditions, it will generate split in parallel.
2. hive.phoenix.split.parallel.level
is used to control the number of work threads for the splits.(2*cpu cores by default).
A unit test is created for unit test, the test case will compare the time cost of generating split for phoenix table with 128 regions.
the output shows that: parallel method is 6x faster than serial method, and it will be better for tables with more regions

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/jichen/.m2/repository/org/apache/logging/log4j/log4j-slf4j-impl/2.10.0/log4j-slf4j-impl-2.10.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/jichen/.m2/repository/org/slf4j/slf4j-log4j12/1.7.30/slf4j-log4j12-1.7.30.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
Formatting using clusterid: testClusterID
generate testing table with 128 splits
get split in serial requires:12843 ms
get split in parallel requires:2728 ms

in production environment, we have tested the time cost for table with 2048 regions, it reduces time cost from nearly 30 mins to 2 mins with default configuration.

@stoty
Copy link
Contributor

stoty commented May 9, 2022

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 5m 36s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 💚 mvninstall 34m 33s master passed
+1 💚 compile 1m 5s master passed
+1 💚 checkstyle 0m 19s master passed
+1 💚 javadoc 0m 26s master passed
+0 🆗 spotbugs 2m 2s phoenix-hive-base in master has 46 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚 mvninstall 19m 27s the patch passed
+1 💚 compile 1m 7s the patch passed
+1 💚 javac 1m 7s the patch passed
-1 ❌ checkstyle 0m 19s phoenix-hive-base: The patch generated 61 new + 57 unchanged - 27 fixed = 118 total (was 84)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 javadoc 0m 27s the patch passed
+1 💚 spotbugs 1m 55s the patch passed
_ Other Tests _
-1 ❌ unit 56m 0s phoenix-hive-base in the patch failed.
-1 ❌ asflicense 0m 19s The patch generated 2 ASF License warnings.
124m 18s
Reason Tests
Failed junit tests phoenix.hive.HiveTezIT
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/1/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #79
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile
uname Linux b463efd6004b 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 tool maven
Personality dev/phoenix-connectors-personality.sh
git revision master / 9ed127f
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/1/artifact/yetus-general-check/output/diff-checkstyle-phoenix-hive-base.txt
unit https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/1/artifact/yetus-general-check/output/patch-unit-phoenix-hive-base.txt
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/1/testReport/
asflicense https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/1/artifact/yetus-general-check/output/patch-asflicense-problems.txt
Max. process+thread count 1826 (vs. ulimit of 30000)
modules C: phoenix-hive-base U: phoenix-hive-base
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/1/console
versions git=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty
Copy link
Contributor

stoty commented May 11, 2022

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 0m 42s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 💚 mvninstall 37m 26s master passed
+1 💚 compile 1m 6s master passed
+1 💚 checkstyle 0m 18s master passed
+1 💚 javadoc 0m 27s master passed
+0 🆗 spotbugs 2m 0s phoenix-hive-base in master has 46 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚 mvninstall 18m 48s the patch passed
+1 💚 compile 1m 7s the patch passed
+1 💚 javac 1m 7s the patch passed
-1 ❌ checkstyle 0m 18s phoenix-hive-base: The patch generated 4 new + 52 unchanged - 32 fixed = 56 total (was 84)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 javadoc 0m 26s the patch passed
+1 💚 spotbugs 1m 56s the patch passed
_ Other Tests _
-1 ❌ unit 53m 22s phoenix-hive-base in the patch failed.
-1 ❌ asflicense 0m 13s The patch generated 2 ASF License warnings.
118m 52s
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/2/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #79
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile
uname Linux 73d06dc4ab23 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 tool maven
Personality dev/phoenix-connectors-personality.sh
git revision master / 9ed127f
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/2/artifact/yetus-general-check/output/diff-checkstyle-phoenix-hive-base.txt
unit https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/2/artifact/yetus-general-check/output/patch-unit-phoenix-hive-base.txt
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/2/testReport/
asflicense https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/2/artifact/yetus-general-check/output/patch-asflicense-problems.txt
Max. process+thread count 1803 (vs. ulimit of 30000)
modules C: phoenix-hive-base U: phoenix-hive-base
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/2/console
versions git=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty
Copy link
Contributor

stoty commented May 11, 2022

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 0m 26s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 💚 mvninstall 34m 13s master passed
+1 💚 compile 1m 5s master passed
+1 💚 checkstyle 0m 18s master passed
+1 💚 javadoc 0m 26s master passed
+0 🆗 spotbugs 2m 2s phoenix-hive-base in master has 46 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚 mvninstall 19m 10s the patch passed
+1 💚 compile 1m 5s the patch passed
+1 💚 javac 1m 5s the patch passed
+1 💚 checkstyle 0m 18s phoenix-hive-base: The patch generated 0 new + 52 unchanged - 32 fixed = 52 total (was 84)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 javadoc 0m 27s the patch passed
+1 💚 spotbugs 1m 52s the patch passed
_ Other Tests _
-1 ❌ unit 41m 21s phoenix-hive-base in the patch failed.
-1 ❌ asflicense 0m 14s The patch generated 2 ASF License warnings.
103m 42s
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/3/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #79
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile
uname Linux 32e79c454808 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 tool maven
Personality dev/phoenix-connectors-personality.sh
git revision master / 9ed127f
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
unit https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/3/artifact/yetus-general-check/output/patch-unit-phoenix-hive-base.txt
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/3/testReport/
asflicense https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/3/artifact/yetus-general-check/output/patch-asflicense-problems.txt
Max. process+thread count 1667 (vs. ulimit of 30000)
modules C: phoenix-hive-base U: phoenix-hive-base
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/3/console
versions git=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

||
(qplan.getScans().size() < parallelThreshould)
) {
LOG.info("generate splits in serial");
Copy link
Contributor

Choose a reason for hiding this comment

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

Make it clear that Generate Input Splits in serial.

LOG.info("generate splits in serial");
for (final List<Scan> scans : qplan.getScans()) {
psplits.addAll(
generateSplitsInternal(
Copy link
Contributor

Choose a reason for hiding this comment

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

Reduce the number of lines used to call the method.

);
}
} else {
final int parallism = jobConf.getInt(
Copy link
Contributor

Choose a reason for hiding this comment

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

Whats the difference between this parallelism level config and parallel threshold.

Copy link
Author

Choose a reason for hiding this comment

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

parallelism level config is used to control the worker threads count for parallel split method, parallel threshold is used to control which split-generation method is used, serial or parallel.

final Path[] tablePaths) throws IOException {

final List<InputSplit> psplits = new ArrayList<>(scans.size());
try (org.apache.hadoop.hbase.client.Connection connection =
Copy link
Contributor

Choose a reason for hiding this comment

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

The connection creation can be shared and reuse when generating the inputsplit.

"[" + scans.get(0).getCaching() + ", " + scans.get(0).getCacheBlocks()
+ ", " + scans.get(0).getBatch() + "] and regionLocation : " +
regionLocation);
LOG.debug("Scan count["
Copy link
Contributor

Choose a reason for hiding this comment

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

format properly.

psplits.addAll(task.get());
}
} catch (ExecutionException | InterruptedException exception) {
throw new IOException("failed to get splits,reason:",
Copy link
Contributor

Choose a reason for hiding this comment

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

Log message can be improved.

ConnectionFactory.createConnection(
PhoenixConnectionUtil.getConfiguration(jobConf))) {
RegionLocator regionLocator =
connection.getRegionLocator(TableName.valueOf(
Copy link
Contributor

Choose a reason for hiding this comment

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

Region locator also can be shared for each call.

InputSplit[] inputSplitsSerial = inputFormat.getSplits(jobConf,SPLITS);
end = System.currentTimeMillis();
long durationInSerial=end - start;
System.out.println(String.format(
Copy link
Contributor

Choose a reason for hiding this comment

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

We need to use assertions and no use in printing those in the logs.

private static void buildPreparedSqlWithBinarySplits(
StringBuffer sb,
int splits)
{
Copy link
Contributor

Choose a reason for hiding this comment

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

code formatting required.

@stoty
Copy link
Contributor

stoty commented May 18, 2022

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 6m 25s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 💚 mvninstall 38m 24s master passed
+1 💚 compile 1m 9s master passed
+1 💚 checkstyle 0m 17s master passed
+1 💚 javadoc 0m 25s master passed
+0 🆗 spotbugs 2m 12s phoenix-hive-base in master has 46 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚 mvninstall 23m 10s the patch passed
+1 💚 compile 1m 11s the patch passed
+1 💚 javac 1m 11s the patch passed
-1 ❌ checkstyle 0m 17s phoenix-hive-base: The patch generated 39 new + 52 unchanged - 32 fixed = 91 total (was 84)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 javadoc 0m 26s the patch passed
+1 💚 spotbugs 2m 1s the patch passed
_ Other Tests _
-1 ❌ unit 58m 55s phoenix-hive-base in the patch failed.
-1 ❌ asflicense 0m 12s The patch generated 2 ASF License warnings.
135m 43s
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/4/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #79
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile
uname Linux 5bb88adec8bd 4.15.0-175-generic #184-Ubuntu SMP Thu Mar 24 17:48:36 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev/phoenix-connectors-personality.sh
git revision master / 9ed127f
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/4/artifact/yetus-general-check/output/diff-checkstyle-phoenix-hive-base.txt
unit https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/4/artifact/yetus-general-check/output/patch-unit-phoenix-hive-base.txt
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/4/testReport/
asflicense https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/4/artifact/yetus-general-check/output/patch-asflicense-problems.txt
Max. process+thread count 1691 (vs. ulimit of 30000)
modules C: phoenix-hive-base U: phoenix-hive-base
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/4/console
versions git=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty
Copy link
Contributor

stoty commented May 18, 2022

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 0m 59s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 1s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 💚 mvninstall 38m 43s master passed
+1 💚 compile 1m 10s master passed
+1 💚 checkstyle 0m 17s master passed
+1 💚 javadoc 0m 25s master passed
+0 🆗 spotbugs 2m 10s phoenix-hive-base in master has 46 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚 mvninstall 23m 12s the patch passed
+1 💚 compile 1m 9s the patch passed
+1 💚 javac 1m 9s the patch passed
-1 ❌ checkstyle 0m 18s phoenix-hive-base: The patch generated 39 new + 52 unchanged - 32 fixed = 91 total (was 84)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 javadoc 0m 26s the patch passed
+1 💚 spotbugs 2m 0s the patch passed
_ Other Tests _
-1 ❌ unit 59m 41s phoenix-hive-base in the patch failed.
-1 ❌ asflicense 0m 12s The patch generated 2 ASF License warnings.
131m 21s
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/5/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #79
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile
uname Linux 47e776d62a5c 4.15.0-175-generic #184-Ubuntu SMP Thu Mar 24 17:48:36 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev/phoenix-connectors-personality.sh
git revision master / 9ed127f
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/5/artifact/yetus-general-check/output/diff-checkstyle-phoenix-hive-base.txt
unit https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/5/artifact/yetus-general-check/output/patch-unit-phoenix-hive-base.txt
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/5/testReport/
asflicense https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/5/artifact/yetus-general-check/output/patch-asflicense-problems.txt
Max. process+thread count 1611 (vs. ulimit of 30000)
modules C: phoenix-hive-base U: phoenix-hive-base
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/5/console
versions git=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty
Copy link
Contributor

stoty commented May 18, 2022

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 0m 57s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 💚 mvninstall 38m 51s master passed
+1 💚 compile 1m 10s master passed
+1 💚 checkstyle 0m 17s master passed
+1 💚 javadoc 0m 25s master passed
+0 🆗 spotbugs 2m 6s phoenix-hive-base in master has 46 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚 mvninstall 23m 23s the patch passed
+1 💚 compile 1m 9s the patch passed
+1 💚 javac 1m 9s the patch passed
-1 ❌ checkstyle 0m 17s phoenix-hive-base: The patch generated 34 new + 52 unchanged - 32 fixed = 86 total (was 84)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 javadoc 0m 25s the patch passed
+1 💚 spotbugs 1m 58s the patch passed
_ Other Tests _
-1 ❌ unit 67m 20s phoenix-hive-base in the patch failed.
-1 ❌ asflicense 0m 12s The patch generated 2 ASF License warnings.
139m 8s
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/6/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #79
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile
uname Linux 28532a923c04 4.15.0-175-generic #184-Ubuntu SMP Thu Mar 24 17:48:36 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev/phoenix-connectors-personality.sh
git revision master / 9ed127f
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/6/artifact/yetus-general-check/output/diff-checkstyle-phoenix-hive-base.txt
unit https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/6/artifact/yetus-general-check/output/patch-unit-phoenix-hive-base.txt
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/6/testReport/
asflicense https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/6/artifact/yetus-general-check/output/patch-asflicense-problems.txt
Max. process+thread count 1686 (vs. ulimit of 30000)
modules C: phoenix-hive-base U: phoenix-hive-base
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/6/console
versions git=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty
Copy link
Contributor

stoty commented May 25, 2022

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 0m 58s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 💚 mvninstall 39m 41s master passed
+1 💚 compile 1m 11s master passed
+1 💚 checkstyle 0m 19s master passed
+1 💚 javadoc 0m 26s master passed
+0 🆗 spotbugs 2m 13s phoenix-hive-base in master has 46 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚 mvninstall 23m 9s the patch passed
+1 💚 compile 1m 10s the patch passed
+1 💚 javac 1m 10s the patch passed
-1 ❌ checkstyle 0m 19s phoenix-hive-base: The patch generated 45 new + 130 unchanged - 32 fixed = 175 total (was 162)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 javadoc 0m 25s the patch passed
+1 💚 spotbugs 2m 3s the patch passed
_ Other Tests _
-1 ❌ unit 76m 36s phoenix-hive-base in the patch failed.
-1 ❌ asflicense 0m 13s The patch generated 2 ASF License warnings.
149m 22s
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/7/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #79
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile
uname Linux 3b51daef3fed 4.15.0-175-generic #184-Ubuntu SMP Thu Mar 24 17:48:36 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev/phoenix-connectors-personality.sh
git revision master / 9ed127f
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/7/artifact/yetus-general-check/output/diff-checkstyle-phoenix-hive-base.txt
unit https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/7/artifact/yetus-general-check/output/patch-unit-phoenix-hive-base.txt
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/7/testReport/
asflicense https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/7/artifact/yetus-general-check/output/patch-asflicense-problems.txt
Max. process+thread count 1668 (vs. ulimit of 30000)
modules C: phoenix-hive-base U: phoenix-hive-base
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/7/console
versions git=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty
Copy link
Contributor

stoty commented May 25, 2022

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 0m 58s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 💚 mvninstall 38m 24s master passed
+1 💚 compile 1m 10s master passed
+1 💚 checkstyle 0m 19s master passed
+1 💚 javadoc 0m 27s master passed
+0 🆗 spotbugs 2m 10s phoenix-hive-base in master has 46 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚 mvninstall 23m 12s the patch passed
+1 💚 compile 1m 10s the patch passed
+1 💚 javac 1m 10s the patch passed
-1 ❌ checkstyle 0m 20s phoenix-hive-base: The patch generated 45 new + 130 unchanged - 32 fixed = 175 total (was 162)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 javadoc 0m 26s the patch passed
+1 💚 spotbugs 2m 0s the patch passed
_ Other Tests _
-1 ❌ unit 56m 3s phoenix-hive-base in the patch failed.
-1 ❌ asflicense 0m 15s The patch generated 2 ASF License warnings.
127m 36s
Reason Tests
Failed junit tests phoenix.hive.HiveTezIT
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/8/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #79
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile
uname Linux 0f8752719cde 4.15.0-175-generic #184-Ubuntu SMP Thu Mar 24 17:48:36 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev/phoenix-connectors-personality.sh
git revision master / 9ed127f
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/8/artifact/yetus-general-check/output/diff-checkstyle-phoenix-hive-base.txt
unit https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/8/artifact/yetus-general-check/output/patch-unit-phoenix-hive-base.txt
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/8/testReport/
asflicense https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/8/artifact/yetus-general-check/output/patch-asflicense-problems.txt
Max. process+thread count 1671 (vs. ulimit of 30000)
modules C: phoenix-hive-base U: phoenix-hive-base
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/8/console
versions git=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty
Copy link
Contributor

stoty commented May 25, 2022

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 6m 46s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 💚 mvninstall 38m 18s master passed
+1 💚 compile 1m 12s master passed
+1 💚 checkstyle 0m 19s master passed
+1 💚 javadoc 0m 25s master passed
+0 🆗 spotbugs 2m 11s phoenix-hive-base in master has 46 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚 mvninstall 23m 54s the patch passed
+1 💚 compile 1m 11s the patch passed
+1 💚 javac 1m 11s the patch passed
-1 ❌ checkstyle 0m 19s phoenix-hive-base: The patch generated 45 new + 130 unchanged - 32 fixed = 175 total (was 162)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 javadoc 0m 25s the patch passed
+1 💚 spotbugs 1m 59s the patch passed
_ Other Tests _
-1 ❌ unit 49m 55s phoenix-hive-base in the patch failed.
-1 ❌ asflicense 0m 13s The patch generated 2 ASF License warnings.
127m 49s
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/9/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #79
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile
uname Linux ace0e52f9cec 4.15.0-175-generic #184-Ubuntu SMP Thu Mar 24 17:48:36 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev/phoenix-connectors-personality.sh
git revision master / 9ed127f
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/9/artifact/yetus-general-check/output/diff-checkstyle-phoenix-hive-base.txt
unit https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/9/artifact/yetus-general-check/output/patch-unit-phoenix-hive-base.txt
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/9/testReport/
asflicense https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/9/artifact/yetus-general-check/output/patch-asflicense-problems.txt
Max. process+thread count 1699 (vs. ulimit of 30000)
modules C: phoenix-hive-base U: phoenix-hive-base
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/9/console
versions git=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty
Copy link
Contributor

stoty commented May 25, 2022

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 0m 56s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 💚 mvninstall 38m 12s master passed
+1 💚 compile 1m 9s master passed
+1 💚 checkstyle 0m 19s master passed
+1 💚 javadoc 0m 26s master passed
+0 🆗 spotbugs 2m 7s phoenix-hive-base in master has 46 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚 mvninstall 23m 28s the patch passed
+1 💚 compile 1m 12s the patch passed
+1 💚 javac 1m 12s the patch passed
-1 ❌ checkstyle 0m 19s phoenix-hive-base: The patch generated 43 new + 130 unchanged - 32 fixed = 173 total (was 162)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 javadoc 0m 26s the patch passed
+1 💚 spotbugs 2m 0s the patch passed
_ Other Tests _
-1 ❌ unit 55m 34s phoenix-hive-base in the patch failed.
-1 ❌ asflicense 0m 16s The patch generated 2 ASF License warnings.
127m 3s
Reason Tests
Failed junit tests phoenix.hive.HiveTezIT
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/10/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #79
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile
uname Linux a59573105523 4.15.0-175-generic #184-Ubuntu SMP Thu Mar 24 17:48:36 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev/phoenix-connectors-personality.sh
git revision master / 9ed127f
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/10/artifact/yetus-general-check/output/diff-checkstyle-phoenix-hive-base.txt
unit https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/10/artifact/yetus-general-check/output/patch-unit-phoenix-hive-base.txt
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/10/testReport/
asflicense https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/10/artifact/yetus-general-check/output/patch-asflicense-problems.txt
Max. process+thread count 1671 (vs. ulimit of 30000)
modules C: phoenix-hive-base U: phoenix-hive-base
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/10/console
versions git=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty
Copy link
Contributor

stoty commented May 26, 2022

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 6m 15s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 💚 mvninstall 40m 49s master passed
+1 💚 compile 1m 20s master passed
+1 💚 checkstyle 0m 22s master passed
+1 💚 javadoc 0m 30s master passed
+0 🆗 spotbugs 2m 21s phoenix-hive-base in master has 46 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚 mvninstall 22m 12s the patch passed
+1 💚 compile 1m 13s the patch passed
+1 💚 javac 1m 13s the patch passed
-1 ❌ checkstyle 0m 22s phoenix-hive-base: The patch generated 42 new + 130 unchanged - 32 fixed = 172 total (was 162)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 javadoc 0m 28s the patch passed
+1 💚 spotbugs 2m 0s the patch passed
_ Other Tests _
-1 ❌ unit 76m 54s phoenix-hive-base in the patch failed.
-1 ❌ asflicense 0m 13s The patch generated 2 ASF License warnings.
155m 47s
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/11/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #79
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile
uname Linux f98789364a67 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 tool maven
Personality dev/phoenix-connectors-personality.sh
git revision master / 9ed127f
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/11/artifact/yetus-general-check/output/diff-checkstyle-phoenix-hive-base.txt
unit https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/11/artifact/yetus-general-check/output/patch-unit-phoenix-hive-base.txt
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/11/testReport/
asflicense https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/11/artifact/yetus-general-check/output/patch-asflicense-problems.txt
Max. process+thread count 1919 (vs. ulimit of 30000)
modules C: phoenix-hive-base U: phoenix-hive-base
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/11/console
versions git=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty
Copy link
Contributor

stoty commented May 26, 2022

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 0m 55s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 💚 mvninstall 40m 31s master passed
+1 💚 compile 1m 12s master passed
+1 💚 checkstyle 0m 19s master passed
+1 💚 javadoc 0m 25s master passed
+0 🆗 spotbugs 2m 9s phoenix-hive-base in master has 46 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚 mvninstall 23m 34s the patch passed
+1 💚 compile 1m 12s the patch passed
+1 💚 javac 1m 12s the patch passed
-1 ❌ checkstyle 0m 19s phoenix-hive-base: The patch generated 42 new + 130 unchanged - 32 fixed = 172 total (was 162)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 javadoc 0m 26s the patch passed
+1 💚 spotbugs 1m 56s the patch passed
_ Other Tests _
-1 ❌ unit 56m 9s phoenix-hive-base in the patch failed.
-1 ❌ asflicense 0m 16s The patch generated 2 ASF License warnings.
130m 8s
Reason Tests
Failed junit tests phoenix.hive.HiveTezIT
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/12/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #79
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile
uname Linux 2b96720d70c4 4.15.0-175-generic #184-Ubuntu SMP Thu Mar 24 17:48:36 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev/phoenix-connectors-personality.sh
git revision master / 9ed127f
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/12/artifact/yetus-general-check/output/diff-checkstyle-phoenix-hive-base.txt
unit https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/12/artifact/yetus-general-check/output/patch-unit-phoenix-hive-base.txt
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/12/testReport/
asflicense https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/12/artifact/yetus-general-check/output/patch-asflicense-problems.txt
Max. process+thread count 1585 (vs. ulimit of 30000)
modules C: phoenix-hive-base U: phoenix-hive-base
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-Connectors-PreCommit-GitHub-PR/job/PR-79/12/console
versions git=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

Comment on lines 177 to 178
throw new IOException("Failed to Generate Input Splits in Parallel, reason:",
exception);
Copy link
Member

Choose a reason for hiding this comment

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

Good to unwrap the ExecutionException and throw back the real exception. It may already be an IOException which you can throw with a cast, rather than rewrapping in another IOException.

PhoenixStorageHandlerConstants
.DEFAULT_PHOENIX_INPUTSPLIT_GENERATION_THREAD_COUNT);
ExecutorService executorService = Executors.newFixedThreadPool(parallism);
LOG.info("Generate Input Splits in Parallel with {} threads", parallism);
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
LOG.info("Generate Input Splits in Parallel with {} threads", parallism);
LOG.info("Generating Input Splits in Parallel with {} threads", parallism);

qplan.getTableRef().getTable().getPhysicalName().toString()));
final int scanSize = qplan.getScans().size();
if (useParallelInputGeneration(parallelThreshold, scanSize)) {
final int parallism = jobConf.getInt(
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
final int parallism = jobConf.getInt(
final int parallelism = jobConf.getInt(

String.valueOf(durationInParallel)));

// Test if performance of parallel method is better than serial method
Assert.assertTrue(durationInParallel < durationInSerial);
Copy link
Member

Choose a reason for hiding this comment

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

This will result in flaky tests as the environments which will run this test are guaranteed to not be deterministic. Unit tests should be about functional correctness, not performance.

*/
@NotThreadSafe
@Category(ParallelStatsDisabledTest.class)
public class HivePhoenixInputFormatTest extends ParallelStatsDisabledIT {
Copy link
Member

Choose a reason for hiding this comment

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

Do the existing Phoenix-hive tests activate your new property and implicitly validate that it is functional? I think we have some test classes but do we create multi-region Phoenix tables in those tests (or those with enough data to have multiple guideposts)?

Copy link
Author

Choose a reason for hiding this comment

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

Q:Do the existing Phoenix-hive tests activate your new property and implicitly validate that it is functional?
A:yes, will implicitly validate its functionality using default settings of new properties.

Q:I think we have some test classes but do we create multi-region Phoenix tables in those tests (or those with enough data to have multiple guideposts)?
A:have discussed with chrajeshbabu and update Test Class based on ParallelStatsEnabledIT instead of ParallelStatsDisabledIT, and create tables with multi-regions and multiple guideposts .

@joshelser joshelser removed their request for review May 26, 2023 22:29
Sign up for free to 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