Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Make SourceSession pending count atomic to avoid data races | Tor Brede Vekterli | 2022-03-14 | 2 | -20/+25 |
| | | | | | Could have used the existing mutex, but this value is polled frequently by visitor threads so avoiding having to take a lock every time makes sense. | ||||
* | avoid race in trace messages regarding pending count | Håvard Pettersen | 2022-03-14 | 1 | -3/+6 |
| | |||||
* | Remove inlining warnings (messagebus). | Tor Egge | 2022-02-26 | 6 | -0/+32 |
| | |||||
* | Use a typesafe Duration instead of integer milliseondst status. | Henning Baldersheim | 2022-02-25 | 2 | -2/+5 |
| | |||||
* | - Use a utility method that recomputes a timeout if VESPA_TIMER_HZ deviates ↵ | Henning Baldersheim | 2022-02-25 | 2 | -2/+2 |
| | | | | from the default of 1000hz. | ||||
* | Merge branch 'master' into balder/consider_vespa_timer_hz | Henning Baldersheim | 2022-02-25 | 1 | -3/+9 |
|\ | |||||
| * | - Only wait with timeout if you have any recurring tasks to execute. | Henning Baldersheim | 2022-02-25 | 2 | -4/+9 |
| | | | | | | | | | | - Increase timeout from 10 -> 100 milliseconds. - Also consider the VESPA_TIMER_HZ control of timer frequency. | ||||
* | | Take VESPA_TIMER_HZ into consideration. | Henning Baldersheim | 2022-02-25 | 1 | -2/+2 |
|/ | |||||
* | Revert "Revert "- Create the common transport and threadpool in the main loop."" | Henning Baldersheim | 2022-02-24 | 1 | -2/+2 |
| | |||||
* | Revert "- Create the common transport and threadpool in the main loop." | Henning Baldersheim | 2022-02-24 | 1 | -2/+2 |
| | |||||
* | - Create the common transport and threadpool in the main loop. | Henning Baldersheim | 2022-02-24 | 1 | -2/+2 |
| | | | | | - Also use the common transport for config subscriptions. - Put The TransportConfig in the fnet namespace. | ||||
* | Merge pull request #21285 from vespa-engine/vekterli/more-threading-fixes | Henning Baldersheim | 2022-02-21 | 4 | -18/+34 |
|\ | | | | | More miscellaneous threading fixes [run-systemtest] | ||||
| * | Let `erase()` return new iterator instead of doing it manually | Tor Brede Vekterli | 2022-02-21 | 1 | -1/+1 |
| | | |||||
| * | Use Kill() instead of Unschedule() to prevent against unwanted re-scheduling | Tor Brede Vekterli | 2022-02-21 | 1 | -1/+1 |
| | | |||||
| * | Avoid potential MessageBus<->FNET mutex order inversion | Tor Brede Vekterli | 2022-02-18 | 2 | -7/+16 |
| | | | | | | | | | | | | | | | | Destruct targets outside lock to prevent the following potential deadlock: 1. flushTargets (pool lock) -> FNET transport thread event (transport thread lock) 2. FNET CheckTasks (transport thread lock) -> periodic flushTargets task run -> flushTargets (pool lock) Also explicitly unschedule any target pool task on network shutdown | ||||
| * | Make MessageBus resend-queue thread safe | Tor Brede Vekterli | 2022-02-18 | 2 | -11/+18 |
| | | | | | | | | | | May be accessed from both sender thread (in case of synchronous send failure) as well as periodic resending from MBus thread. | ||||
* | | Make ConfigUri constructors explicit and use same context where possible in ↵ | Henning Baldersheim | 2022-02-20 | 1 | -1/+1 |
|/ | | | | proton. | ||||
* | Reduce code visibility and include only what you need from config library. | Henning Baldersheim | 2022-02-06 | 5 | -5/+2 |
| | |||||
* | Run dynamic throttling tests fewer times by default | Jon Marius Venstad | 2022-02-03 | 1 | -7/+7 |
| | |||||
* | Add SuppressWarnings for removal of config.subscription types. | gjoranv | 2022-02-02 | 3 | -0/+3 |
| | |||||
* | Sync with messagebus thread when disconnecting | Bjørn Christian Seime | 2022-01-25 | 2 | -2/+2 |
| | |||||
* | Add disconnect() that unregisters session | Bjørn Christian Seime | 2022-01-25 | 3 | -0/+5 |
| | |||||
* | TransportThread must always do a handover. If not you might get a deadlock. | Henning Baldersheim | 2022-01-25 | 1 | -1/+1 |
| | |||||
* | We must ensure that we do not end up with a rejected execution that can ↵ | Henning Baldersheim | 2022-01-24 | 1 | -3/+3 |
| | | | | | | cause deadlock. Using an unbound Q here is fine as there is external throttling in place. | ||||
* | Don't retry after resender is destroyed | Bjørn Christian Seime | 2022-01-21 | 1 | -10/+15 |
| | |||||
* | Update C++ DynamicThrottlePolicy to match Java impl semantics | Tor Brede Vekterli | 2022-01-17 | 3 | -37/+68 |
| | | | | | | | | | | | This is an attempt at making the C++ implementation 1-1 with the Java implementation, the latter considered the source of truth for this matter. Unit tests have been updated to match their Java equivalents as well. This task was approached much in the same way a novice wizard would transcribe arcane runes that may possible blow their hands off; carefully and with more pragmatic respect than understanding. | ||||
* | Use a daemon thread have wait for shutdown to complete. | Henning Baldersheim | 2022-01-07 | 1 | -1/+1 |
| | |||||
* | decouple tests by giving them separate destination session names | Arne H Juul | 2021-12-30 | 1 | -64/+71 |
| | |||||
* | speed up unit test | Arne H Juul | 2021-12-17 | 1 | -11/+132 |
| | | | | | | | * use shared (static) slobrok, source and destination servers * reset various state between tests * still create/destroy sessions between tests * add logging of start/finish of each sub-test to track where time goes | ||||
* | more aggressive waitState | Arne H Juul | 2021-12-17 | 1 | -3/+9 |
| | |||||
* | most unit tests can run with just 1 network thread | Arne H Juul | 2021-12-16 | 2 | -3/+5 |
| | |||||
* | improve testserver start/stop logging slightly | Arne H Juul | 2021-12-16 | 2 | -5/+16 |
| | |||||
* | wait a bit more before spamming the log | Arne H Juul | 2021-12-15 | 1 | -2/+3 |
| | |||||
* | improve signal-to-noise ratio in informational logging | Arne H Juul | 2021-12-15 | 1 | -4/+10 |
| | |||||
* | log some info to make it possible to see what is going on in unit tests | Arne H Juul | 2021-12-15 | 1 | -0/+5 |
| | |||||
* | Remove the need for Syncable | Henning Baldersheim | 2021-11-26 | 1 | -2/+1 |
| | |||||
* | add some information while waiting for messagebus network | Arne H Juul | 2021-11-11 | 2 | -1/+15 |
| | |||||
* | Add missiung copyrights | Jon Bratseth | 2021-10-20 | 2 | -0/+2 |
| | |||||
* | fix unstable unit test | Håvard Pettersen | 2021-10-15 | 1 | -0/+3 |
| | |||||
* | Update Verizon Media copyright notices. | gjoranv | 2021-10-07 | 4 | -4/+4 |
| | |||||
* | Update 2017 copyright notices. | gjoranv | 2021-10-07 | 379 | -385/+385 |
| | |||||
* | Merge pull request #19285 from ↵ | Jon Marius Venstad | 2021-09-27 | 2 | -16/+25 |
|\ | | | | | | | | | vespa-engine/jonmv/shut-down-RPC-when-no-message-bus-owner-remain Shut down network when all owners also have detached | ||||
| * | Better names | Jon Marius Venstad | 2021-09-27 | 2 | -12/+14 |
| | | |||||
| * | Shut down network when all owners also have detached | Jon Marius Venstad | 2021-09-24 | 2 | -14/+21 |
| | | |||||
* | | Simplify with computeIfAbsent | Henning Baldersheim | 2021-09-25 | 1 | -7/+1 |
| | | |||||
* | | Avoid using a thread local map as it keeps large objects hanging around as ↵ | Henning Baldersheim | 2021-09-24 | 1 | -15/+18 |
| | | | | | | | | ghosts. | ||||
* | | As a simple tcp based rpc address is the most common, split into Tcp and Named. | Henning Baldersheim | 2021-09-24 | 6 | -56/+88 |
|/ | | | | Tcp variant is immutable and hence thread safe, while Named is made thread safe by synchonized. | ||||
* | Revert "Revert "Avoid copying data just to compress them when it is not ↵ | Henning Baldersheim | 2021-08-30 | 1 | -4/+2 |
| | | | | necessary."" | ||||
* | Revert "Avoid copying data just to compress them when it is not necessary." | Henning Baldersheim | 2021-08-30 | 1 | -2/+4 |
| | |||||
* | Avoid copying data just to compress them when it is not necessary. | Henning Baldersheim | 2021-08-30 | 1 | -4/+2 |
| |