Duplicate Kubernetes pod ids when tasks are launched at the same time
sravaniv-3cortex opened this issue · 3 comments
sravaniv-3cortex commented
When the Spring Cloud DataFlow Server in the Kubernetes environment tries to launch pods for many tasks(200+), we have encountered scenarios where duplicate Pod id is generated for 3-4 pods. I have looked at the code generating the id, and it encodes the timestamp in milliseconds using the hashid library.
Multiple tasks end up launched simultaneously and with the same pod id. Can we introduce randomness here or another way to ensure pod id uniqueness is not dependent on only the timestamp?
einmartwa commented
Observed the same behavior. Currently, we work around by catching the exception and trying to re-launch the desired task once, but a fix in Deployer would be nicer.