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

Error: Index -1 out of bounds for length 0 observed while generating recommendations #1338

Open
kusumachalasani opened this issue Oct 9, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@kusumachalasani
Copy link
Contributor

Describe the bug

ERROR [qtp1100399456-43][RecommendationEngine.java(299)]-Failed to create recommendation for experiment: monitor_gpu and interval_start_time: null and interval_end_time: 2024-10-09 12:27:22.0
2024-10-0912:27:31.003 ERROR [qtp1100399456-43][KruizeErrorHandler.java(71)]-{"message":"Index -1 out of bounds for length 0","httpcode":500,"documentationLink":"","status":"ERROR"}

How to reproduce it
On NERC cluster, create an experiment using a following json.

[{
  "version": "v2.0",
  "experiment_name": "monitor_gpu",
  "cluster_name": "default",
  "performance_profile": "resource-optimization-local-monitoring",
  "mode": "monitor",
  "target_cluster": "local",
  "datasource": "prometheus-1",
  "kubernetes_objects": [
    {
      "type": "statefulset",
      "name": "human-eval-benchmark",
      "namespace": "unpartitioned-namespace",
      "containers": [
        {
          "container_image_name": "kruizehub/human-eval",
          "container_name": "human-eval-benchmark"
        }
      ]
    }
  ],
  "trial_settings": {
    "measurement_duration": "15min"
  },
  "recommendation_settings": {
    "threshold": "0.1"
  }
}]

While generating the recommendations for that experiment using the below curl command, following error is observed.
curl -X POST http://kruize-openshift-tuning.apps.nerc-ocp-test-2.nerc.mghpcc.org/generateRecommendations?experiment_name=monitor_gpu

ERROR [qtp1100399456-43][RecommendationEngine.java(299)]-Failed to create recommendation for experiment: monitor_gpu and interval_start_time: null and interval_end_time: 2024-10-09 12:27:22.0
2024-10-0912:27:31.003 ERROR [qtp1100399456-43][KruizeErrorHandler.java(71)]-{"message":"Index -1 out of bounds for length 0","httpcode":500,"documentationLink":"","status":"ERROR"}

Expected behavior
Recommendations should be generated without the error.

Relevant logs
From kruize logs

ERROR [qtp1100399456-43][RecommendationEngine.java(299)]-Failed to create recommendation for experiment: monitor_gpu and interval_start_time: null and interval_end_time: 2024-10-09 12:27:22.0
2024-10-0912:27:31.003 ERROR [qtp1100399456-43][KruizeErrorHandler.java(71)]-{"message":"Index -1 out of bounds for length 0","httpcode":500,"documentationLink":"","status":"ERROR"}

Environment:

  • openshift
  • 4.16.0
@kusumachalasani kusumachalasani added the bug Something isn't working label Oct 9, 2024
@dinogun dinogun added this to the Kruize 0.2 Release milestone Oct 10, 2024
@dinogun dinogun moved this to Todo in Monitoring Oct 10, 2024
@bharathappali bharathappali self-assigned this Oct 10, 2024
@rbadagandi1 rbadagandi1 removed this from the Kruize 0.3 Release milestone Nov 29, 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
Projects
Status: Todo
Development

No branches or pull requests

4 participants