Giter Site home page Giter Site logo

Comments (4)

natabeck avatar natabeck commented on July 19, 2024

In case we have un acked messages and we dont have additional worker to assign the messages to - then those flows are supposed to go to PAUSED - NO_WORKER_IN_GROUP status. Once the recovery of the worker is finished the user can resume those flows. The behaviour that is described above is not expected - I think there is some issue with that specific environment.

from score.

meshipeer avatar meshipeer commented on July 19, 2024

why this is here?

from score.

danfilip avatar danfilip commented on July 19, 2024

we could at least improve logging and debug the queue message id's in the log. this way we would know that if the same messages are printed as unassigned, that there is a corruption.

from score.

danfilip avatar danfilip commented on July 19, 2024

hi all.

attaching simple and effective change of reading unack messages.
only changed the sql query to join the queues with the states table , so that we only read queues records that have a corresponding record in the states table.

also removed the original subselect with a more efficient group by clause, achieving the same result.

new select looks like this:

final private String QUERY_COUNT_MESSAGES_WITHOUT_ACK_FOR_WORKER_SQL =
        "SELECT COUNT(*) FROM " +
                " ( " +
                "   SELECT COUNT(*) DUMMY " +
                "   FROM  OO_EXECUTION_QUEUES  q " +
                "   INNER JOIN OO_EXECUTION_STATES st " +
                "   ON q.EXEC_STATE_ID = st.ID " +
                "   WHERE " +
                "   q.ASSIGNED_WORKER  = ? " +
                "   GROUP BY q.EXEC_STATE_ID " +
                "   HAVING MAX(q.STATUS) = ? and MAX(q.MSG_VERSION) < ? " +
                " ) SUBSELECT ";

Patch file here:
unack_read_consistent_records.patch.txt

from score.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.