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

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

Open
1 of 2 tasks
avamingli opened this issue Sep 30, 2024 · 5 comments
Labels
type: Bug Something isn't working

Comments

@avamingli
Copy link
Contributor

Cloudberry Database version

main

What happened

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

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: ... <quitting>
 2q: ... <quitting>
 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

@avamingli avamingli added the type: Bug Something isn't working label Sep 30, 2024
@avamingli
Copy link
Contributor Author

avamingli commented Oct 2, 2024

Failed case in another PR, memory_usage in resgroup/resgroup_views.out
https://github.com/cloudberrydb/cloudberrydb/actions/runs/11136689360/job/30949248752?pr=653

/code/gpdb_src/src/test/isolation2/results/resgroup/resgroup_views.out
--- /code/gpdb_src/src/test/isolation2/expected/resgroup/resgroup_views.out	2024-10-02 10:39:17.270264381 +0800
+++ /code/gpdb_src/src/test/isolation2/results/resgroup/resgroup_views.out	2024-10-02 10:39:17.271264371 +0800
@@ -14,7 +14,7 @@
 select groupname , groupid , cpu_usage , memory_usage from gp_toolkit.gp_resgroup_status_per_host s join gp_segment_configuration c on s.hostname=c.hostname and c.content=-1 and role='p' where groupname='default_group';
  groupname     | groupid | cpu_usage | memory_usage 
 ---------------+---------+-----------+--------------
- default_group | 6437    | 0.00      | 0.00         
+ default_group | 6437    | 0.00      | 0.01         
 (1 row)
 
 select * from gp_toolkit.gp_resgroup_role where rrrolname='gpadmin';


real	6m5.137s
user	0m21.717s
sys	0m4.744s

@avamingli avamingli changed the title [Bug] unstable resource group case: resgroup_cancel_terminate_concurrency/resgroup_dumpinfo [Bug] unstable resource group cases: resgroup_cancel_terminate_concurrency/resgroup_dumpinfo/resgroup_views Oct 2, 2024
@jiaqizho
Copy link
Contributor

jiaqizho commented Oct 8, 2024

memory usage is acceptable between 0.00 ~ 0.01 . so let we change the .sql/.out

@my-ship-it
Copy link
Contributor

Has this issue been resolved? Please confirm @avamingli , if so, I will close it, thanks!

@avamingli
Copy link
Contributor Author

Has this issue been resolved? Please confirm @avamingli , if so, I will close it, thanks!

Sure, haven't seen it any more.

@avamingli
Copy link
Contributor Author

https://github.com/apache/cloudberry/actions/runs/12193381532/job/34015800430?pr=725

diff -I HINT: -I CONTEXT: -I GP_IGNORE: -U3 /__w/cloudberry/cloudberry/src/test/isolation2/expected/resgroup/resgroup_cpu_max_percent.out /__w/cloudberry/cloudberry/src/test/isolation2/results/resgroup/resgroup_cpu_max_percent.out
--- /__w/cloudberry/cloudberry/src/test/isolation2/expected/resgroup/resgroup_cpu_max_percent.out	2024-12-05 21:30:09.592031381 -0800
+++ /__w/cloudberry/cloudberry/src/test/isolation2/results/resgroup/resgroup_cpu_max_percent.out	2024-12-05 21:30:09.596031363 -0800
@@ -794,7 +794,7 @@
 1:SELECT verify_cpu_usage('rg1_cpu_test', 10, 2);
  verify_cpu_usage 
 ------------------
- t                
+ f                
 (1 row)
 1:SELECT verify_cpu_usage('rg2_cpu_test', 20, 2);
  verify_cpu_usage 

@my-ship-it my-ship-it reopened this Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants