Minecraft wiki entry for Ice_farming, associated text: Take care not to allow trees or other obstacles to overhang the farm, and keep light sources at a distance, otherwise, some or all of the farm's area will not freeze.