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

SimpleReplay: extract.py gives confusing errors when the selected time range has no data in redshift audit bucket #546

Open
jsyrjala opened this issue Apr 6, 2021 · 1 comment

Comments

@jsyrjala
Copy link

jsyrjala commented Apr 6, 2021

extract.py gives rather confusing error messages when trying fetch a time range from the Redshift audit log bucket that has no data. Especially when it can take hours until the data arrives to the bucket.

python3 extract.py extract.yaml
[INFO] 2021-04-06 11:12:24 Retrieving logs from s3://my-redshift-audit-bucket/
[INFO] 2021-04-06 11:14:55 Exporting 0 transactions (0 queries) to my-workload/Extraction_2021-04-06T11:12:24.210817+00:00
[INFO] 2021-04-06 11:14:55 Generating 0 missing connections.
[INFO] 2021-04-06 11:14:55 Exporting a total of 0 connections to my-workload/Extraction_2021-04-06T11:12:24.210817+00:00
Traceback (most recent call last):
  File "extract.py", line 1153, in <module>
    config_file["workload_location"] + "/" + extraction_name,
  File "extract.py", line 661, in save_logs
    connections_dict = connection_time_replacement([connection.__dict__ for connection in sorted_connections])
  File "extract.py", line 506, in connection_time_replacement
    min_init_time = sorted_connections[0]['session_initiation_time']
IndexError: list index out of range
@ragsrina
Copy link
Contributor

jsyrjala, Thank you for the feedback. We will take a look and address the issue in up-coming release.

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

2 participants