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

Improve error reporting for sqlite errors #141

Closed
emaste opened this issue May 26, 2015 · 5 comments
Closed

Improve error reporting for sqlite errors #141

emaste opened this issue May 26, 2015 · 5 comments

Comments

@emaste
Copy link
Member

emaste commented May 26, 2015

I happened to run kyua on an NFS root test box and it reports:

x220# kyua test
kyua: E: disk I/O error

It turns out this is because I didn't have lockd running.

Error messages like this ought to include information to help diagnose the issue -- for instance, reporting the file name and the operation that failed.

@jmmv
Copy link
Member

jmmv commented Jun 29, 2015

Oh wow, that's surprising as the majority of the error handling tries to add some details to the operation that was being run. Of course, there may be corner cases where this is not being done.

How can I set things up to reproduce this? I'd need to track down where exactly this particular exception was raised so that the message can be fixed.

@ngie-eign
Copy link
Contributor

On Jun 28, 2015, at 20:17, Julio Merino notifications@github.com wrote:

Oh wow, that's surprising as the majority of the error handling tries to add some details to the operation that was being run. Of course, there may be corner cases where this is not being done.

How can I set things up to reproduce this? I'd need to track down where exactly this particular exception was raised so that the message can be fixed.


Reply to this email directly or view it on GitHub.

  • Setup NFS
  • Do not start lockd
  • Mount NFS share over loopback
  • Try to run kyua tests over NFS share; the data store should be on NFS

@jmmv
Copy link
Member

jmmv commented Jun 30, 2015

Hmm... the only thing that uses locking is sqlite, so the problem ought to be coming from that end. That narrows the possibilities quite a bit.

@jmmv
Copy link
Member

jmmv commented Jul 6, 2015

Simple code inspection shows plenty of places in the store module that rewrap sqlite errors without adding details to them. I'll target fixing those as part of this bug.

@emaste
Copy link
Member Author

emaste commented Jul 6, 2015

Thanks!

@jmmv jmmv changed the title Improve error reporting for I/O errors Improve error reporting for sqlite errors Jul 7, 2015
@jmmv jmmv closed this as completed in 80af4e6 Jul 7, 2015
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

3 participants