Comments (4)
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.
why this is here?
from score.
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.
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)
- EventBusImpl methods should be mutually exclusive
- Remove unused DB connectors
- automation to MC releases HOT 1
- Update the corresponding unit test with this case:
- Jenkins release fails
- Check if PythonRuntimeService exec, eval method works properly HOT 1
- Reduce code climate issues
- Update sl syntax in test files
- Not handling Exceptions properly HOT 1
- Acquire/release lock and semaphore
- worker HOT 6
- Rapid running of busyWorkersService HOT 9
- score compatible with JDK17? HOT 3
- Update score version in master to be 0.3x
- Add a flag to turn GC hack off
- Adding worker more than once to the same workers group causes database error
- Enchancement - API for score / cloudslang only HOT 13
- WorkerExecutionMonitorServiceImpl messages contain several typos
- privacy issues
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from score.