aboutsummaryrefslogtreecommitdiffstats
path: root/slobrok/src/tests
Commit message (Collapse)AuthorAgeFilesLines
* vespalib::stringref => std::string_viewHenning Baldersheim47 hours1-1/+1
|
* Merge pull request #31660 from vespa-engine/havardpe/remove-testappHenning Baldersheim2024-06-201-1/+1
|\ | | | | remove TEST_APPHOOK, TEST_INIT, TEST_DONE and TestApp
| * remove TEST_APPHOOK, TEST_INIT, TEST_DONE and TestAppHåvard Pettersen2024-06-201-1/+1
| |
* | Rename slobrok library to vespa_slobrok.Tor Egge2024-06-2010-11/+11
|/
* remove TEST_SETUP macro and update testsHåvard Pettersen2024-06-193-25/+12
|
* Update copyrightJon Bratseth2023-10-0928-29/+29
|
* use ref_counted in fnetHåvard Pettersen2023-03-064-11/+11
| | | | | | also get rid of some cleanup functions on reference counted classes enable specifying low-level parameters to addref/subref (cnt/reserve)
* untangle slobrok from fastosHåvard Pettersen2023-02-231-1/+0
|
* untangle fnet from fastosHåvard Pettersen2023-02-221-2/+1
|
* stop using fastos threadHåvard Pettersen2023-02-131-0/+1
| | | | | | | | combine cancel with stop such that cancel means stopped before started and therefore never run. drop the started sync point since there is no state we need to pass from the thread to the starter of the thread.
* Add noexcept MapDiff move constructor to avoid expensive and large copy ↵Henning Baldersheim2023-02-012-7/+10
| | | | constructor.
* Use snprintf instead of sprintf.Tor Egge2023-01-311-1/+1
|
* update unit test to track adjusted timingArne Juul2023-01-291-4/+11
|
* Remove stacksize from the thread pools and thread executors.Henning Baldersheim2022-12-201-1/+1
|
* wait for more things before destructing transportHåvard Pettersen2022-05-021-0/+1
| | | | | | Exiting the main loop of the transport thread(s) does no longer mean you are completely finished. We also need to wait for async dns resolving and tls handshake work.
* remove FastOS_ApplicationHåvard Pettersen2022-04-082-20/+18
| | | | | | | | fixup (per application): - maybe ignore SIGPIPE - wire argc/argv untangle Vespa Test Framework strip down deprecated TestApp
* use getopt/getopt_long directlyHåvard Pettersen2022-04-011-6/+5
|
* Revert "Revert "- Create the common transport and threadpool in the main loop.""Henning Baldersheim2022-02-241-3/+6
|
* Revert "- Create the common transport and threadpool in the main loop."Henning Baldersheim2022-02-241-6/+3
|
* - Create the common transport and threadpool in the main loop.Henning Baldersheim2022-02-241-3/+6
| | | | | - Also use the common transport for config subscriptions. - Put The TransportConfig in the fnet namespace.
* Reduce code visibility and include only what you need from config library.Henning Baldersheim2022-02-061-1/+0
|
* Update Verizon Media copyright notices.gjoranv2021-10-0710-10/+10
|
* Update 2017 copyright notices.gjoranv2021-10-0718-18/+18
|
* Fix format strings.Tor Egge2021-09-271-2/+2
|
* test rpc_mapping_monitorHåvard Pettersen2021-09-202-0/+233
| | | | using the new fnet::TransportDebugger tool
* more peer management logic directly in SBEnvArne H Juul2021-09-171-1/+1
|
* low-level testing of fnet enabled byHåvard Pettersen2021-09-161-1/+1
| | | | | | | | | | | | | | | | | | | 1. Manipulating how much time is spent waiting for events while also manipulating how the passing of time is observed by the transport threads. (fnet::TimeTools) 2. Periodic call-backs from FNET_Transport. All transport threads are blocked during these call-backs. Between each call-back, all transport threads perform a single event loop iteration and any async operations not performed in transport threads are flushed. (FNET_Transport::attach_capture_hook) 3. Combining 1 and 2 in a way that lets the test code run all transport threads one iteration at a time, letting the transport threads run concurrently with each other, but no transport thread is allowed to run concurrently with the test code. (fnet::TransportDebugger)
* always run with new logicArne H Juul2021-09-161-2/+2
| | | | | * we decided to avoid any warnings on unregister, so update unit test accordingly.
* simplify request completion handlingArne H Juul2021-09-151-1/+1
|
* extend testHåvard Pettersen2021-09-091-3/+50
|
* handle addLocal for down services betterArne H Juul2021-09-091-2/+19
| | | | | | | | * if we already have a registration in progress, hook the second one to the first so they get the same answer at the same time * if we think the service is down, restart its monitoring to avoid getting stale information, and add the inflight hook so we get an answer when the new ping returns.
* added test for local rpc monitor mapHåvard Pettersen2021-09-092-0/+276
|
* make it easy to run servers with valgrindArne Juul2021-08-182-4/+6
|
* use guards for subscriptionsArne Juul2021-08-162-15/+13
|
* some minor test improvementsArne Juul2021-08-131-2/+44
|
* some fixups for mirror of remote slobrok map:Arne Juul2021-08-123-70/+143
| | | | | | | | | * require symmetrical register/unregister calls * modernize a bit * add unit test for ServiceMapMirror * use common mock listener in unit tests * add an explicit shutdown() when removing a RemoteSlobrok instance, and perform clear() after canceling all RPC requests and tasks
* add unit test for UnionServiceMapArne Juul2021-08-052-0/+189
|
* let ServiceMapHistory implement MapListener APIArne Juul2021-07-141-5/+5
|
* check cancel() return value alsoArne Juul2021-06-281-1/+4
|
* add ServiceMapHistory classArne Juul2021-06-282-0/+234
|
* try to avoid valgrind complaints during shutdownArne Juul2021-06-081-0/+2
|
* Use a hash map for specs. If the request is a point lookup then just use a ↵Henning Baldersheim2021-06-021-1/+1
| | | | | | | | hash lookup. If it is a wildcard lookup iterate as earlier on. Also use vespalib::stringref in interface to avoid conversion. Use vespalib:string in the hash map to locate string in object aswe are still on old abi.
* Use int for FastOS_UNIX_Application::GetOpt() return value.Tor Egge2021-04-301-1/+1
|
* Reapply "add more logging" (new and updated slobrok logging)Arne Juul2021-04-211-63/+25
| | | | This reverts commit 9aa3d6fe6567e3eee9108d6fffbc50d5874e72e3.
* Revert "add more logging"Harald Musum2021-04-201-25/+63
|
* simpler backoff testArne Juul2021-04-191-63/+25
| | | | * remove un-needed "static"
* Use vespalib::duration for timeoutsHenning Baldersheim2021-01-314-0/+4
|
* Use std::mutex over vespalib::Lock and reduce code visibility.Henning Baldersheim2020-10-081-2/+2
|
* Use vespalib::Lock -> std::mutexHenning Baldersheim2020-10-081-1/+1
|
* - Redo the servicepool to resolve addresses first time and not loadbalance.Henning Baldersheim2020-04-011-9/+3
| | | | | | - Make it thread safe. - Remove any loadbalancing tests - Assert that no loadbalancing is requested.