Verifies the integrety of the projects, as builds are executed immediately after a code change was detected. This plan provides no artifiacts (use a nightly build instead).

Build: #2714 was successful Changes by Guus der Kinderen

Stages & jobs

  1. Default Stage

  2. Continuous Integration

Build result summary

Details

Completed
Queue duration
< 1 second
Duration
8 minutes
Labels
None
Agent
bamboo-agent-iowa.igniterealtime.org 3
Revision
741fc5560869663a0fe46bcb1bb565ee92f5c0dd
Total tests
1742
Successful since
#2672 ()

Tests

Code commits

Author Commit Message Commit date
Guus der Kinderen Guus der Kinderen da97e73361eb872f835ff14ffed73075fd8a1e3b BOSH: clean up logging
Removed redundant 'if is-log-level-is-enabled' checks.
Used parameterized logging statements when composing a log message.
Guus der Kinderen Guus der Kinderen c6c9ce751899dc921ace283a0188840f9792c9b7 OF-2966: BOSH events should execute in-order
BOSH related events (mostly: processing of received stanzas) are executed by a worker pool of threads.

Events for each individual session must be processed in the same order in which they are received. Prior to this change, every event was potentially executed by a different worker thread. This can cause some events to be processed (or finish processing) before an earlier event finishes execution in another worker thread.

This commit adds FIFO-based queuing of events, that ensures that events that belong to the same session are processed:
- by only one thread from the worker pool;
- in the same order in which they're received.

The technique applied here is inspired (well, just bluntly copied) from Ben Manes' work in https://github.com/ben-manes/caffeine/blob/master/jcache/src/main/java/com/github/benmanes/caffeine/jcache/event/EventDispatcher.java
Guus der Kinderen Guus der Kinderen c80e54bbdd240169dae334647d0d2fb957c7aa25 OF-2966: Periodic clean-up of BOSH working thread queues
In the previous commit, a mechanism was introduced that ensures per-session FIFO processing of events, using a queuing mechanism based on Futures.

This commit adds a periodic check to see if any events are queued for sessions that no longer exist, discarding those events if they're found.

The cleanup is intended as a safeguard measure against slow accumulation of non-executable events, which over time could lead to memory starvation.
Guus der Kinderen Guus der Kinderen 741fc5560869663a0fe46bcb1bb565ee92f5c0dd Chore: when debug logging, replace string concat of message
Instead of concatenation, use the `{}` construct will prevent building the string until it's actually logged.

Although it's probably a performance improvement, it's mainly a readability improvement.
Guus der Kinderen Guus der Kinderen 2c431b6aac152fd1be9a491d27ff6f3c5175358c OF-2966: BOSH 'close' executed by worker threads
By having the 'close' routine be executed by the same worker threads that process regular BOSH data, the processing order of all of these will make use of the FIFO mechanism introduced in the last two commits.

This helps ensure that a 'close' (terminate) event is processed only after stanzas that were received earlier have been processed - assuming that this processing is synchronous.

Jira issues

IssueDescriptionStatus
Unknown Issue TypeOF-2966Could not obtain issue details from Jira

Shared artifacts

Artifact File size
Unpacked project files 197 MB