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

Random empty results from PostgreSQL #33

Open
p-mitana opened this issue Mar 24, 2019 · 3 comments
Open

Random empty results from PostgreSQL #33

p-mitana opened this issue Mar 24, 2019 · 3 comments

Comments

@p-mitana
Copy link

Sometimes it seems like the DB returned the empty result set (PostgreSQL). No error or log seems to be yielded, so I don't have any more information to supply.

It always looks like when user refreshes the app's page, the first query an application tries returns an empty result - and the subsequent ones return properly. If user refreshes page a few times more, eventually the first query returns proper result as well, but some time later the error will appear again.

@p-mitana
Copy link
Author

I forgot to mention: I experience this error in 1.1.4 version as well.

@gaoxincheng
Copy link
Contributor

I will check this later. If possible, please provide your test code.

@p-mitana
Copy link
Author

I actually do not have any compact test case to supply. Anyway I'll list you a bit more information:

  • DMD 2.085
  • hunt-database 1.1.4
  • Release build
  • PostgreSQL 11
  • PostgreSQL and my application are run as two containers in the same docker stack.

Problem appeared as well when I tried running application locally and connect to remote database. Still in the same manner - randomly.

I found a temporary workaround: for every client request, before I start to query database for data I actually need, I query for some dummy data that should be in database. I attempt to query it until it something is returned (up to 5 times). This way seems to neutralize the error - if the first attempt fails, the query returns properly on the second or third one.

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