Skip to content

PHOENIX-6189 DATA_EXCEEDS_MAX_CAPACITY exception error string should … - #924

Closed
yanxinyi wants to merge 1 commit into
apache:4.xfrom
yanxinyi:PHOENIX-6189
Closed

PHOENIX-6189 DATA_EXCEEDS_MAX_CAPACITY exception error string should …#924
yanxinyi wants to merge 1 commit into
apache:4.xfrom
yanxinyi:PHOENIX-6189

Conversation

@yanxinyi

Copy link
Copy Markdown
Contributor

…contain column name instead of actual value

@stoty

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec6m 16sDocker 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 1 new or modified test files.
_ 4.x Compile Tests _
+1 💚mvninstall33m 43s4.x passed
+1 💚compile1m 7s4.x passed
+1 💚checkstyle0m 51s4.x passed
+1 💚javadoc0m 54s4.x passed
+0 🆗spotbugs3m 48sphoenix-core in 4.x has 956 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚mvninstall30m 15sthe patch passed
+1 💚compile1m 13sthe patch passed
+1 💚javac1m 13sthe patch passed
-1 ❌checkstyle0m 53sphoenix-core: The patch generated 18 new + 1110 unchanged - 14 fixed = 1128 total (was 1124)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc0m 52sthe patch passed
+1 💚spotbugs3m 53sthe patch passed
_ Other Tests _
-1 ❌unit182m 22sphoenix-core in the patch failed.
+1 💚asflicense0m 31sThe patch does not generate ASF License warnings.
269m 20s
ReasonTests
Failed junit testsphoenix.rpc.PhoenixClientRpcIT
phoenix.end2end.index.ImmutableIndexExtendedIT
SubsystemReport/Notes
DockerClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-924/1/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#924
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile
unameLinux c68e06ad496a 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 / 264310b
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-924/1/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-924/1/artifact/yetus-general-check/output/patch-unit-phoenix-core.txt
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-924/1/testReport/
Max. process+thread count5658 (vs. ulimit of 30000)
modulesC: phoenix-core U: phoenix-core
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-924/1/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.


@Deprecated
public DataExceedsCapacityException(PDataType type, Integer precision, Integer scale) {
this(type, precision, scale, null, null);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You would also want to change this to call the new constructor: this(type, precision, scale, null) since this will be deprecated.

}
if (result == null) {
throw new DataExceedsCapacityException(PDecimal.INSTANCE, maxLength, scale);
throw new DataExceedsCapacityException("", maxLength);

@ntshmahntshmahOct 17, 2020

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The type information could be useful here, and below too.

@ntshmahntshmah left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Some comments discussed offline too.

@stoty

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 9sDocker 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 1 new or modified test files.
_ 4.x Compile Tests _
+1 💚mvninstall33m 15s4.x passed
+1 💚compile1m 7s4.x passed
+1 💚checkstyle1m 32s4.x passed
+1 💚javadoc0m 54s4.x passed
+0 🆗spotbugs3m 33sphoenix-core in 4.x has 956 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚mvninstall29m 31sthe patch passed
+1 💚compile1m 8sthe patch passed
+1 💚javac1m 8sthe patch passed
-1 ❌checkstyle1m 30sphoenix-core: The patch generated 18 new + 3423 unchanged - 23 fixed = 3441 total (was 3446)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc0m 53sthe patch passed
+1 💚spotbugs3m 51sthe patch passed
_ Other Tests _
-1 ❌unit183m 51sphoenix-core in the patch failed.
+1 💚asflicense0m 30sThe patch does not generate ASF License warnings.
265m 29s
ReasonTests
Failed junit testsphoenix.end2end.AbsFunctionEnd2EndIT
phoenix.end2end.IndexToolForNonTxGlobalIndexIT
SubsystemReport/Notes
DockerClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-924/2/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#924
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile
unameLinux ebfb891a5b3e 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 / 2359f54
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-924/2/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-924/2/artifact/yetus-general-check/output/patch-unit-phoenix-core.txt
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-924/2/testReport/
Max. process+thread count5864 (vs. ulimit of 30000)
modulesC: phoenix-core U: phoenix-core
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-924/2/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.

@ntshmahntshmah left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Few nits. +1 otherwise.

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.

3 participants

@yanxinyi@stoty@ntshmah