[fix](regression-test) fix two muted test cases (Groovy property access + flaky SHOW PROCESSLIST)#63645
Open
morningman wants to merge 2 commits into
Open
[fix](regression-test) fix two muted test cases (Groovy property access + flaky SHOW PROCESSLIST)#63645morningman wants to merge 2 commits into
morningman wants to merge 2 commits into
Conversation
…eate_table plugin Replace `res.size` / `res[i].size` property accesses with `res.size()` / `res[i].size()` method calls in `regression-test/plugins/plugins_create_table_nested_type.groovy`. On the Groovy runtime used by the regression framework, `java.util.ArrayList` does not expose `size` as a JavaBean property, so the property access falls through to the `getAt(Iterable, ...)` path and tries to read `.size` from each inner `Integer` element, throwing: groovy.lang.MissingPropertyException: Exception evaluating property 'size' for java.util.ArrayList, Reason: groovy.lang.MissingPropertyException: No such property: size for class: java.lang.Integer This makes the test `datatype_p0.nested_types.create_table.create_table_with_nested_type` fail in ~15 ms before any DDL is sent to FE. The test is currently muted on TeamCity; this fix should unblock unmuting. Same GPath `.size` vs `.size()` pattern as apache#62454 and apache#62455. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
`test_show_no_auth` asserts that `SHOW PROCESSLIST` returns exactly 1 row
after granting `grant_priv` to the test user. But `ConnectPoolMgr.listConnection()`
returns *all* sessions to any caller that satisfies `PrivPredicate.ADMIN`, so
in the parallel regression pipeline this user sees the concurrent sessions of
many other suites (e.g. 23 rows in the last failing build on branch-4.0).
Replace the unsafe `== 1` check with a count of sessions owned by the current
user. This aligns with the same check earlier in the file (line 49) that uses
`>= 1`, and actually verifies the intended invariant (the user can see their
own session) without depending on parallel pipeline isolation.
```diff
- assertTrue(res1.size() == 1)
+ def ownSessions = res1.findAll { it[2] == user }
+ assertTrue(ownSessions.size() >= 1)
```
Column index 2 of `SHOW PROCESSLIST` is the User column (see
`ConnectContext.ThreadInfo.toRow`).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
Contributor
Author
|
run buildall |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix two regression-test cases that are currently muted on branch-4.0 (and have the same bugs on master, just not yet observed/muted). Neither requires any FE/BE changes — both are Groovy / test-harness issues.
The companion back-port to
branch-4.0is #63644.1.
datatype_p0.create_table_with_nested_typeregression-test/plugins/plugins_create_table_nested_type.groovy:136,138On the Groovy runtime used by the regression framework,
java.util.ArrayListdoes not exposesizeas a JavaBean property, sores.sizefalls through GPath intogetAt(Iterable, ...), iterates the outer list, and tries to read.sizefrom each innerInteger— throwingMissingPropertyException: No such property: size for class: java.lang.Integer. The test fails in ~15 ms before any DDL is sent to FE.Same root cause as #62454 / #62455.
2.
auth_call.test_show_charset_auth.test_show_no_authregression-test/suites/auth_call/test_show_charset_auth.groovy:68After granting
grant_priv,SHOW PROCESSLISTreturns all sessions to any caller that satisfiesPrivPredicate.ADMIN(seeConnectPoolMgr.listConnection), so in the parallel pipeline this user sees 20+ concurrent sessions from other suites. The== 1assertion is structurally unsafe — replace it with a per-user filter that matches the same pattern already used at line 49 of the file. Column index 2 is the User column (ConnectContext.ThreadInfo.toRow).Test plan
datatype_p0.nested_types.create_table.create_table_with_nested_typeauth_call.test_show_charset_auth.test_show_no_auth🤖 Generated with Claude Code