Dear staff,
I have a strange problem with the relational agent. I noticed that when
this agent sends a group of measurements (10) to the database, it writes
such line in the log file:
2020-03-10 11:32:08,021 UTC [org.springframework.data.redis.listener.RedisMessageListenerContainer0-129243] DEBUG org.sentilo.agent.relational.repository.impl.AgentRelationalBatchRepositoryImpl - Scheduling batch update task for persist 10 elements in dataSource sentiloDs
This is the normal behaviour and there isn't any mystery... But sometimes, I can see a different log entry:
2020-03-10 11:33:30,378 UTC [platformScheduler-3] DEBUG org.sentilo.agent.relational.repository.impl.AgentRelationalBatchRepositoryImpl - Scheduling batch update task for persist 10 elements in dataSource sentiloDs
In such case, I think this scheduler is trying to write older (and
wrong/malformed) measurements, which weren't be written on the first
try. Is it possible? If yes, how can I flush/delete those measurements?
Neither restarting the relational agent, nor restarting the server, fixes
the problem...
Best regards,
Vito