[ https://issues.apache.org/jira/browse/PHOENIX-6032?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17223398#comment-17223398 ]
ASF GitHub Bot commented on PHOENIX-6032: ----------------------------------------- stoty commented on pull request #949: URL: https://github.com/apache/phoenix/pull/949#issuecomment-719158406 :broken_heart: **-1 overall** | Vote | Subsystem | Runtime | Comment | |:----:|----------:|--------:|:--------| | +0 :ok: | reexec | 1m 5s | Docker mode activated. | ||| _ Prechecks _ | | +1 :green_heart: | dupname | 0m 1s | No case conflicting files found. | | +1 :green_heart: | hbaseanti | 0m 0s | Patch does not have any anti-patterns. | | +1 :green_heart: | @author | 0m 0s | The patch does not contain any @author tags. | | -1 :x: | test4tests | 0m 0s | The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch. | ||| _ 4.x Compile Tests _ | | +1 :green_heart: | mvninstall | 11m 41s | 4.x passed | | +1 :green_heart: | compile | 1m 0s | 4.x passed | | +1 :green_heart: | checkstyle | 1m 4s | 4.x passed | | +1 :green_heart: | javadoc | 0m 46s | 4.x passed | | +0 :ok: | spotbugs | 3m 9s | phoenix-core in 4.x has 953 extant spotbugs warnings. | ||| _ Patch Compile Tests _ | | +1 :green_heart: | mvninstall | 6m 15s | the patch passed | | +1 :green_heart: | compile | 0m 59s | the patch passed | | +1 :green_heart: | javac | 0m 59s | the patch passed | | -1 :x: | checkstyle | 1m 4s | phoenix-core: The patch generated 4 new + 2127 unchanged - 0 fixed = 2131 total (was 2127) | | -1 :x: | whitespace | 0m 0s | The patch 7 line(s) with tabs. | | +1 :green_heart: | javadoc | 0m 45s | the patch passed | | +1 :green_heart: | spotbugs | 3m 21s | the patch passed | ||| _ Other Tests _ | | -1 :x: | unit | 171m 22s | phoenix-core in the patch failed. | | +1 :green_heart: | asflicense | 0m 28s | The patch does not generate ASF License warnings. | | | | 205m 29s | | | Reason | Tests | |-------:|:------| | Failed junit tests | phoenix.end2end.UpsertSelectIT | | | phoenix.end2end.SkipScanQueryIT | | Subsystem | Report/Notes | |----------:|:-------------| | Docker | ClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-949/1/artifact/yetus-general-check/output/Dockerfile | | GITHUB PR | https://github.com/apache/phoenix/pull/949 | | JIRA Issue | PHOENIX-6032 | | Optional Tests | dupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile | | uname | Linux af08208ec8c5 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-personality.sh | | git revision | 4.x / 2aaf2e2 | | Default Java | Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08 | | checkstyle | https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-949/1/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt | | whitespace | https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-949/1/artifact/yetus-general-check/output/whitespace-tabs.txt | | unit | https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-949/1/artifact/yetus-general-check/output/patch-unit-phoenix-core.txt | | Test Results | https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-949/1/testReport/ | | Max. process+thread count | 6075 (vs. ulimit of 30000) | | modules | C: phoenix-core U: phoenix-core | | Console output | https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-949/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. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > When phoenix.allow.system.catalog.rollback=true, a view still sees data from > a column that was dropped > ------------------------------------------------------------------------------------------------------ > > Key: PHOENIX-6032 > URL: https://issues.apache.org/jira/browse/PHOENIX-6032 > Project: Phoenix > Issue Type: Bug > Affects Versions: 5.0.0, 4.15.0 > Reporter: Chinmay Kulkarni > Assignee: Chinmay Kulkarni > Priority: Blocker > Fix For: 5.1.0, 4.16.0 > > Attachments: PHOENIX-6032.master.v1.patch, > PHOENIX-6032.master.v2.patch > > > Start a 4.x server with phoenix.allow.system.catalog.rollback=true, > phoenix.system.catalog.splittable=false. Connect to it from a 4.x client with > phoenix.allow.system.catalog.rollback=true. Run the following from the 4.x > client: > {code:sql} > CREATE TABLE IF NOT EXISTS T (A INTEGER PRIMARY KEY, B INTEGER, C VARCHAR, D > INTEGER); > CREATE VIEW IF NOT EXISTS V (VA INTEGER, VB INTEGER) AS SELECT * FROM T WHERE > B=200; > UPSERT INTO V(A,B,C,D,VA,VB) VALUES (2, 200, 'def', -20, 91, 101); > SELECT * FROM T; > +----+------+------+------+ > | A | B | C | D | > +----+------+------+------+ > | 2 | 200 | def | -20 | > +----+------+------+------+ > SELECT * FROM V; > +----+------+------+------+-----+------+ > | A | B | C | D | VA | VB | > +----+------+------+------+-----+------+ > | 2 | 200 | def | -20 | 91 | 101 | > +----+------+------+------+-----+------+ > -- as expected > -- drop a parent column from the view > ALTER VIEW V DROP COLUMN C; > SELECT * FROM V; > +------+----+------+------+-----+------+ > | C | A | B | D | VA | VB | > +------+----+------+------+-----+------+ > | def | 2 | 200 | -20 | 91 | 101 | > +------+----+------+------+-----+------+ > -- Column C can still be seen and its ordering is changed for some reason. If > you run the drop column again, it is actually dropped > ALTER VIEW V DROP COLUMN C; > SELECT * FROM V; > +----+------+------+-----+------+ > | A | B | D | VA | VB | > +----+------+------+-----+------+ > | 2 | 200 | -20 | 91 | 101 | > +----+------+------+-----+------+ > -- Gets dropped when drop column is run a second time. > {code} > When splittable SYSTEM.CATALOG rollback is enabled, we store the parent's > column metadata along with the view as well. After the first drop column > command, metadata for column 'C' of the parent is removed from the view's > metadata rows however it is not marked diverged, nor is an EXCLUDED_COLUMN > entry made for that column in the view metadata rows. > Because of this, when resolving the view we potentially keep combining the > parent table columns and still get column 'C'. When the second drop column > command is issued is when we actually add an EXCLUDED_COLUMN linking row for > 'C' in the view metadata. -- This message was sent by Atlassian Jira (v8.3.4#803005)