Looks to me the manufacturer used an epoxy material to fill in porosity left from the casting process. And they did a really poor job of it. Back in my manufacturing-foundry days we used a product called Devcon, there was a limit on the depth, the size and the number of porosity pin holes per sq inch. From the photos that part exceeds what we would repair due to the size of the defects.