Deplyment builder getting stuck

deploymentBuilder.enableDuplicateFiltering(true).deploy();

getting stuck while trying to deploy BPMN through deployment REST API.

Is there anyway to identify this issue or how can I resolve this ?

Thanks.

@yadav1990 Can you share the exception stack trace? Could you explain the scenario more?

@aravindhrs Thank you for your reply.

There is no exception but the process seems getting locked and not moving next from synchronized block

 @Override
  public DeploymentWithDefinitions execute(final CommandContext commandContext) {
    if (commandContext.getProcessEngineConfiguration().isDeploymentSynchronized()) {
      // ensure serial processing of multiple deployments on the same node.
      // We experienced deadlock situations with highly concurrent deployment of multiple
      // applications on Jboss & Wildfly
      synchronized (ProcessEngine.class) {
        return doExecute(commandContext);
      }
    } else {
      return doExecute(commandContext);
    }
  }

Tried from REST API as well Camunda Modeler but no luck. @StephenOTT @Niall could you please assist on this issue ?

Thanks in advance.