I have a java/mysql application. I am writing huge data to mysql using my java application. But in some cases due to Disk full condition, mysql is crashing. Is it possible to handle mysql diskfull scenario from java/jdbc?
regards
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Well yes. This will manifest itself as a failure in a JDBC update statement, which you can presumably detect based on the exception’s (MySQL specific) code.
However, once you’ve caught the exception, I doubt that there is much that you can do to recover. If the disc is full you need human intervention to resolve the problem; e.g. to look for files that can be deleted.