3

In my full sandbox, I have a batchable that reschedules itself in the finish() method. This job has been running for 2+ years; rescheduling itself many times a day

On August 1 at 2231h Pacific, Setup | Apex Jobs reported:

First error: java.lang.IllegalStateException: Phoenix driver closed because server is shutting down 

So, I know there's a certain pride in collecting Seven Dwarfs errors but this is a new one - to the batchable it acts like an uncaught exception

Sadly, this batchable did not implement Database.raisesPlatformEvents so the error took a few days to detect.

Not sure there is an answer to this except to implement Database.raisesPlatformEvents but for those reading this - another thing to worry about, albeit unlikely, in building robust systems.

cropredy
  • 71,240
  • 8
  • 120
  • 270

0 Answers0