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

NoHostAvailableException when column family is unconfigured #63

Open
SusilPanda opened this issue Jul 24, 2015 · 2 comments
Open

NoHostAvailableException when column family is unconfigured #63

SusilPanda opened this issue Jul 24, 2015 · 2 comments

Comments

@SusilPanda
Copy link

In this case when column family is unconfigured we should get the exception InvalidQueryException.
But I am getting NoHostAvailableException.

This exception should come in the getMappingSession method.
My query is why this exception is coming ?

Thanks in advance.

@valchkou
Copy link
Owner

NoHostAvailableException thrown by datastax core driver. I don't handle it in my module.
But if you can consistently reproduce it, please post code sample here.
Otherwise it hard to guess what is going on

@SusilPanda
Copy link
Author

Hi,
The exception I am getting while fetching employee details using get method.
Example : I have an employee column family
CF : Employee
emp_id emp_name emp_address
1234 abc India

Now I run the below query :
Employee employee = mapper.get(employeeDto);

Exception scenario : My CF has been dropped when I run the above query. In this case I expect the exception will be InvalidQueryException, but NoHostAvailableException is thrown.

And this exception is not consistent , sometimes com.google.common.util.concurrent.UncheckedExecutionException - com.datastax.driver.core.exceptions.InvalidQueryExceptions is thrown.

Thanks

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