Hi,

I am experiencing a weird issue in which I have a Ignite service. I am using
this service through service proxy from other server nodes. These is a
particular method in the service node which I cannot call for the third
time. The call to it stalls there indefinitely and does not invoke the code
in the method.

Here is the method for reference-
    @Override
    public void startWorkflow(Long id) {
        System.out.println("trying to start service");

        workflowIgniteCache.invoke(id, new EntryProcessor<Long, Workflow,
Object>() {
            @Override
            public Object process(MutableEntry<Long, Workflow> entry,
Object... arguments) throws EntryProcessorException {
                System.out.println("EntryProcessor started");
                Workflow w = entry.getValue();

                if (!w.getStatus().equals(Constants.WorkflowStatus.STOPPED))
                    throw new EntryProcessorException("Workflow not in
stopped state");

                w.setStatus(Constants.WorkflowStatus.RUNNING);

                entry.setValue(w);

                return null;
            }
        });

        System.out.println("Sending init events");
        sendInitEvents(workflowIgniteCache.get(id));
        System.out.println("Sent init events");
    }




--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Reply via email to