Hello Vaidhyanathan,
Thanks for contacting the Support Community!.
It's hard to tell what's happening from just that snippet of code, can you please open a Support Ticket and attach all the relevant artefacts (logs, statistics, configuration files and the smallest reproducible scenario, if possible) so one of our engineers can assist you further?.
Best regards.