Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
Read initial_adaptors at Agent start every time, not just once.
Description
Currently when agent.sh is run, the agent will load the adaptors found in the config/initial_adaptors file only of the checkpoints file doesn't exist. If the checkpoint file does exist, the initial_adaptors file is silently ignored. This is misleading and seems like a potential cause of confusion.
Instead both files should both be checked for adaptors, first the checkpoint file, then the initial_adaptors file. This order would ensure that the same adaptor won't lose it's checkpoint info or get loaded twice if the agent is bounced.
Also, the agents.log file does a good job of reporting which adaptors are registered, but it doesn't show where they were loaded from. This information would be useful to have if possible.