Created by: dominikwerder
queryNumberOfPartitions returns 1 even in the case of failure.
queryNumberOfPartitions