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

Replay does not work with Preview Serverless (AI scaling) #157

Closed
cjsekl opened this issue Aug 7, 2024 · 1 comment
Closed

Replay does not work with Preview Serverless (AI scaling) #157

cjsekl opened this issue Aug 7, 2024 · 1 comment

Comments

@cjsekl
Copy link

cjsekl commented Aug 7, 2024

Running Replay on a Serverless workgroup on the AI Scaling preview track fails with:

Traceback (most recent call last):
  File "/home/ec2-user/redshift-test-drive/common/util.py", line 93, in cluster_dict
    cluster["base_rpu"] = response["workgroup"]["baseCapacity"]
KeyError: 'baseCapacity'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ec2-user/redshift-test-drive/core/replay/replay.py", line 237, in <module>
    main()
  File "/home/ec2-user/redshift-test-drive/core/replay/replay.py", line 42, in main
    cluster = cluster_dict(config["target_cluster_endpoint"], is_serverless_endpoint)
  File "/home/ec2-user/redshift-test-drive/common/util.py", line 95, in cluster_dict
    if e.response["Error"]["Code"] == "ResourceNotFoundException":
AttributeError: 'KeyError' object has no attribute 'response'

I'm guessing because these workgroups don't have base capacity. It looks like the exception block is meant to handle it gracefully but doesn't cover this case.

Worked around it by setting cluster["base_rpu"] = "N/A"

@cjsekl
Copy link
Author

cjsekl commented Aug 7, 2024

Ignore me, works with later releases

@cjsekl cjsekl closed this as not planned Won't fix, can't repro, duplicate, stale Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant