App hangs if load-balancing-policy class is wrong in application.conf

Description

I foolishly used this configuration in my application.conf and the application hung when I ran it

Easily fixed by changing class to com.datastax.oss.driver.internal.core.loadbalancing.DefaultLoadBalancingPolicy but I can see people running into this ( especially being new to conf files for driver config ). Can we error out if the lbp class is not found?

Environment

None

Pull Requests

None

Activity

Olivier Michallat 
June 10, 2018 at 5:19 PM

addresses this for all policies.

Olivier Michallat 
May 11, 2018 at 3:30 PM

Ah all good, 1775 is not in alpha3.

Chris Splinter 
May 11, 2018 at 3:26 PM

Ah cool, thanks for linking ... I was using 4.0.0-alpha3

Olivier Michallat 
May 11, 2018 at 3:15 PM
(edited)

Thanks, I noticed this too the other day and was planning to create a ticket. The error should be properly propagated up to the calling code.

I'm surprised that the unqualified name doesn't work though, it should. Did you use a snapshot that has the fix? I'll look into that as well.

Duplicate

Details

Assignee

Reporter

Affects versions

Fix versions

Priority

Created May 11, 2018 at 1:24 PM
Updated June 10, 2018 at 5:19 PM
Resolved June 10, 2018 at 5:19 PM