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

panic while refreshing a scaler cache #5926

Closed
vflaux opened this issue Jul 1, 2024 · 5 comments
Closed

panic while refreshing a scaler cache #5926

vflaux opened this issue Jul 1, 2024 · 5 comments
Labels
bug Something isn't working stale All issues that are marked as stale due to inactivity

Comments

@vflaux
Copy link
Contributor

vflaux commented Jul 1, 2024

Report

Encountered one panic:

panic: runtime error: index out of range [1] with length 0

goroutine 1738630 [running]:
github.com/kedacore/keda/v2/pkg/scaling/cache.(*ScalersCache).refreshScaler(0xc07feb2fc0, {0x49cf798?, 0xc0431fa930?}, 0x1)
	/workspace/pkg/scaling/cache/scalers_cache.go:159 +0x44b
github.com/kedacore/keda/v2/pkg/scaling/cache.(*ScalersCache).GetMetricsAndActivityForScaler(0xc07feb2fc0, {0x49cf798, 0xc0431fa930}, 0x1, {0xc003ac5fb0, 0x2d})
	/workspace/pkg/scaling/cache/scalers_cache.go:135 +0x1b2
github.com/kedacore/keda/v2/pkg/scaling.(*scaleHandler).GetScaledObjectMetrics.func1(_, _, {_, _}, _, {{0xc03c2f6720, 0x27}, {0xc03c936340, 0x4}, {0x3648ab8, ...}, ...}, ...)
	/workspace/pkg/scaling/scale_handler.go:527 +0x4f4
created by github.com/kedacore/keda/v2/pkg/scaling.(*scaleHandler).GetScaledObjectMetrics in goroutine 1738628
	/workspace/pkg/scaling/scale_handler.go:503 +0x1d6d

Expected Behavior

No panic

Actual Behavior

Random panic

Steps to Reproduce the Problem

I can't figure out how to reproduce the panic.

Logs from KEDA operator

No response

KEDA Version

2.14.0

Kubernetes Version

1.28

Platform

Amazon Web Services

Scaler Details

No response

Anything else?

@vflaux vflaux added the bug Something isn't working label Jul 1, 2024
@SpiritZhou
Copy link
Contributor

What scaler are you using? Could you provide more detail info such as the scaleobject yaml?

Copy link

stale bot commented Sep 11, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale All issues that are marked as stale due to inactivity label Sep 11, 2024
Copy link

stale bot commented Sep 20, 2024

This issue has been automatically closed due to inactivity.

@stale stale bot closed this as completed Sep 20, 2024
@zroubalik zroubalik reopened this Sep 20, 2024
@zroubalik zroubalik removed the stale All issues that are marked as stale due to inactivity label Sep 20, 2024
Copy link

stale bot commented Nov 23, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale All issues that are marked as stale due to inactivity label Nov 23, 2024
Copy link

stale bot commented Nov 30, 2024

This issue has been automatically closed due to inactivity.

@stale stale bot closed this as completed Nov 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale All issues that are marked as stale due to inactivity
Projects
None yet
Development

No branches or pull requests

3 participants