Fetch size should be -1 when configuration has Integer.MAX_VALUE.