apache / apache/cloudberry

[Bug] unstable resource group cases: resgroup_cancel_terminate_concurrency/resgroup_dumpinfo/resgroup_views

Open
#651 9 comments 0 reactions 0 assignees View on GitHub
type: Bug
Dominant language
C
Stars
1.4k
Forks
247
Avg merge
4d 3h
Merged PRs (30d)
39

Description

### Cloudberry Database version

main

### What happened

https://github.com/cloudberrydb/cloudberrydb/actions/runs/11102859132/job/30844343864

```shell
DIFF FILE: ../gpdb_src/src/test/isolation2/regression.diffs
----------------------------------------------------------------------

diff -I HINT: -I CONTEXT: -I GP_IGNORE: -U3 /code/gpdb_src/src/test/isolation2/expected/resgroup/resgroup_cancel_terminate_concurrency.out /code/gpdb_src/src/test/isolation2/results/resgroup/resgroup_cancel_terminate_concurrency.out
--- /code/gpdb_src/src/test/isolation2/expected/resgroup/resgroup_cancel_terminate_concurrency.out 2024-09-30 17:27:33.490609064 +0800
+++ /code/gpdb_src/src/test/isolation2/results/resgroup/resgroup_cancel_terminate_concurrency.out 2024-09-30 17:27:33.497609032 +0800
@@ -293,9 +293,10 @@
1q: ...
2q: ...
DROP ROLE role_concurrency_test;
-DROP
+DETAIL: owner of table pg_temp_27.tmp
+ERROR: role "role_concurrency_test" cannot be dropped because some objects depend on it
DROP RESOURCE GROUP rg_concurrency_test;
-DROP
+ERROR: resource group is used by at least one role

DROP VIEW rg_concurrency_view;
DROP
diff -I HINT: -I CONTEXT: -I GP_IGNORE: -U3 /code/gpdb_src/src/test/isolation2/expected/resgroup/resgroup_dumpinfo.out /code/gpdb_src/src/test/isolation2/results/resgroup/resgroup_dumpinfo.out
--- /code/gpdb_src/src/test/isolation2/expected/resgroup/resgroup_dumpinfo.out 2024-09-30 17:28:21.174385431 +0800
+++ /code/gpdb_src/src/test/isolation2/results/resgroup/resgroup_dumpinfo.out 2024-09-30 17:28:21.176385421 +0800
@@ -43,7 +43,7 @@
SELECT dump_test_check();
dump_test_check
-----------------
- t
+ f
(1 row)
```

### What you think should happen instead

Pretty sure #649 has nothing to do with resource group.
It seems a unstable case of resource group.

### How to reproduce

https://github.com/cloudberrydb/cloudberrydb/actions/runs/11102859132/job/30844343864

### Operating System

CI OS

### Anything else

_No response_

### Are you willing to submit PR?

- [ ] Yes, I am willing to submit a PR!

### Code of Conduct

- [X] I agree to follow this project's [Code of Conduct](https://cloudberrydb.org/community/coc).

Contributor guide

Open the contributing guide

Research direction

Start with the linked CI job and the isolation2 regression diffs, comparing the expected and results files under src/test/isolation2/expected/resgroup and src/test/isolation2/results/resgroup. Investigate the three named resource-group cases and the differing role-drop and dumpinfo output. Done means the cases run reliably without unexplained diffs.

Written by the indexing model from the issue text.

Assessment

Tech stack
sql
Domain
databases, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.