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

flaky test TestCursorFetchShouldSpill #48481

Open
Tracked by #41316
hawkingrei opened this issue Nov 9, 2023 · 2 comments
Open
Tracked by #41316

flaky test TestCursorFetchShouldSpill #48481

hawkingrei opened this issue Nov 9, 2023 · 2 comments
Assignees
Labels

Comments

@hawkingrei
Copy link
Member

hawkingrei commented Nov 9, 2023

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

2. What did you expect to see? (Required)

3. What did you see instead (Required)

     conn_stmt_test.go:288: 
        	Error Trace:	pkg/server/conn_stmt_test.go:288
        	Error:      	Received unexpected error:
        	            	[executor:8175]Your query has been cancelled due to exceeding the allowed memory limit for a single SQL query. Please try narrowing your query scope or increase the tidb_mem_quota_query limit and try again.[conn=6936687692538800719]
        	            	github.com/pingcap/errors.AddStack
        	            		external/com_github_pingcap_errors/errors.go:174
        	            	github.com/pingcap/errors.(*Error).GenWithStackByArgs
        	            		external/com_github_pingcap_errors/normalize.go:164
        	            	github.com/pingcap/tidb/pkg/util/sqlkiller.(*SQLKiller).HandleSignal
        	            		pkg/util/sqlkiller/sqlkiller.go:56
        	            	github.com/pingcap/tidb/pkg/util/memory.(*PanicOnExceed).Action
        	            		pkg/util/memory/action.go:172
        	            	github.com/pingcap/tidb/pkg/util/memory.(*Tracker).Consume.func1
        	            		pkg/util/memory/tracker.go:437
        	            	github.com/pingcap/tidb/pkg/util/memory.(*Tracker).Consume
        	            		pkg/util/memory/tracker.go:464
        	            	github.com/pingcap/tidb/pkg/store/copr.(*copIteratorWorker).sendToRespCh
        	            		pkg/store/copr/coprocessor.go:1001
        	            	github.com/pingcap/tidb/pkg/store/copr.(*copIteratorWorker).handleCopResponse
        	            		pkg/store/copr/coprocessor.go:1442
        	            	github.com/pingcap/tidb/pkg/store/copr.(*copIteratorWorker).handleCopPagingResult
        	            		pkg/store/copr/coprocessor.go:1342
        	            	github.com/pingcap/tidb/pkg/store/copr.(*copIteratorWorker).handleTaskOnce
        	            		pkg/store/copr/coprocessor.go:1275
        	            	github.com/pingcap/tidb/pkg/store/copr.(*copIteratorWorker).handleTask
        	            		pkg/store/copr/coprocessor.go:1130
        	            	github.com/pingcap/tidb/pkg/store/copr.(*copIteratorWorker).run
        	            		pkg/store/copr/coprocessor.go:817
        	            	runtime.goexit
        	            		src/runtime/asm_amd64.s:1650
        	Test:       	TestCursorFetchShouldSpill 

https://tiprow.hawkingrei.com/view/gs/pingcapprow/pr-logs/pull/pingcap_tidb/48430/tiprow_fast_test/1722543643119587328#1:build-log.txt%3A1407

4. What is your TiDB version? (Required)

@hawkingrei hawkingrei added the type/bug The issue is confirmed as a bug. label Nov 9, 2023
@YangKeao YangKeao self-assigned this Nov 9, 2023
@ti-chi-bot ti-chi-bot bot added may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-6.1 may-affects-6.5 may-affects-7.1 may-affects-7.5 labels Nov 13, 2023
@seiya-annie seiya-annie removed may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-6.1 may-affects-6.5 may-affects-7.1 may-affects-7.5 labels Nov 13, 2023
@YangKeao
Copy link
Member

It's not reproducible now (after 1000 iterations). Maybe #50683 has fixed this issue 🤔 .

Feel free to reopen this issue when we found it flacky on the CI again.

@YangKeao YangKeao reopened this Feb 18, 2024
@YangKeao
Copy link
Member

YangKeao commented Feb 18, 2024

Oops. I reproduced it on 65d57c0a435bf4d70b20f7f13aee4d460dbf41be🤦 .

[2024/02/18 19:07:58.695 +08:00] [INFO] [db.go:625] ["Waiting for closer"]
--- FAIL: TestCursorFetchShouldSpill (5.15s)
    cursor_test.go:124:
                Error Trace:    /home/yangkeao/Projects/github.com/YangKeao/tidb/pkg/server/tests/cursor/cursor_test.go:124
                Error:          Received unexpected error:
                                [executor:8175]Your query has been cancelled due to exceeding the allowed memory limit for a single SQL query. Please try narrowing your query scope or increase the tidb_mem_quota_query limit and try again.[conn=4134932779734165040]
                                github.com/pingcap/errors.AddStack
                                        /home/yangkeao/go/pkg/mod/github.com/pingcap/errors@v0.11.5-0.20231212100244-799fae176cfb/errors.go:174
                                github.com/pingcap/errors.(*Error).GenWithStackByArgs
                                        /home/yangkeao/go/pkg/mod/github.com/pingcap/errors@v0.11.5-0.20231212100244-799fae176cfb/normalize.go:164
                                github.com/pingcap/tidb/pkg/util/sqlkiller.(*SQLKiller).HandleSignal
                                        /home/yangkeao/Projects/github.com/YangKeao/tidb/pkg/util/sqlkiller/sqlkiller.go:70
                                github.com/pingcap/tidb/pkg/util/memory.(*PanicOnExceed).Action
                                        /home/yangkeao/Projects/github.com/YangKeao/tidb/pkg/util/memory/action.go:172
                                github.com/pingcap/tidb/pkg/util/memory.(*Tracker).Consume.func1
                                        /home/yangkeao/Projects/github.com/YangKeao/tidb/pkg/util/memory/tracker.go:437
                                github.com/pingcap/tidb/pkg/util/memory.(*Tracker).Consume
                                        /home/yangkeao/Projects/github.com/YangKeao/tidb/pkg/util/memory/tracker.go:464
                                github.com/pingcap/tidb/pkg/store/copr.(*copIteratorWorker).sendToRespCh
                                        /home/yangkeao/Projects/github.com/YangKeao/tidb/pkg/store/copr/coprocessor.go:1006
                                github.com/pingcap/tidb/pkg/store/copr.(*copIteratorWorker).handleCopResponse
                                        /home/yangkeao/Projects/github.com/YangKeao/tidb/pkg/store/copr/coprocessor.go:1449
                                github.com/pingcap/tidb/pkg/store/copr.(*copIteratorWorker).handleCopPagingResult
                                        /home/yangkeao/Projects/github.com/YangKeao/tidb/pkg/store/copr/coprocessor.go:1349
                                github.com/pingcap/tidb/pkg/store/copr.(*copIteratorWorker).handleTaskOnce
                                        /home/yangkeao/Projects/github.com/YangKeao/tidb/pkg/store/copr/coprocessor.go:1282
                                github.com/pingcap/tidb/pkg/store/copr.(*copIteratorWorker).handleTask
                                        /home/yangkeao/Projects/github.com/YangKeao/tidb/pkg/store/copr/coprocessor.go:1135
                                github.com/pingcap/tidb/pkg/store/copr.(*copIteratorWorker).run
                                        /home/yangkeao/Projects/github.com/YangKeao/tidb/pkg/store/copr/coprocessor.go:817
                                runtime.goexit
                                        /usr/lib/go/src/runtime/asm_amd64.s:1650
                Test:           TestCursorFetchShouldSpill
FAIL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants