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

When running controls, the expiry of the context used to run a query causing issues creating transactions, and seems to clear the session data #939

Closed
binaek opened this issue Sep 22, 2021 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@binaek
Copy link
Contributor

binaek commented Sep 22, 2021

A couple of people have reported different symptoms

  1. after the context expires, we are unable to create a transaction
  | | 
  | ERROR: context deadline exceeded
  | 
  + 4 Enable S3 protection in GuardDuty to detect suspicious activities .........................................................................................................  1 /  1 [=     ]
  | | 
  | ERROR: error creating transaction - please restart Steampipe```

This suggests the database connection is blocked for come reason - prehaps and FDW crash/freeze

2) after the context expires, the session data is cleared meaning prepared statements cannot by found

@binaek binaek added the bug Something isn't working label Sep 22, 2021
@binaek binaek self-assigned this Sep 22, 2021
@kaidaguerre
Copy link
Contributor

image

@kaidaguerre
Copy link
Contributor

To do:

  • Investigate why session data is cleared
  • Look into mechanism to ensure session data exists on a connection
  • Reinstate the RefreshClient functionality to create a new client when we fail to create a transaction. This was removed due to the session data issue

@kaidaguerre kaidaguerre changed the title cannot create transaction issue When running controls, the expiry of the context used to run a query causing issues creating transactions, and seems to clear the session data Sep 22, 2021
kaidaguerre pushed a commit that referenced this issue Sep 27, 2021
…lient after a failure to create a transaction. Closes #939
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
None yet
Development

No branches or pull requests

2 participants