aboutsummaryrefslogtreecommitdiffstats
path: root/slobrok
Commit message (Collapse)AuthorAgeFilesLines
* try to avoid valgrind complaints during shutdownArne Juul2021-06-081-0/+2
|
* Remove unused variables.Tor Egge2021-06-042-2/+0
|
* Use a hash map for specs. If the request is a point lookup then just use a ↵Henning Baldersheim2021-06-026-54/+41
| | | | | | | | 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.
* ask Transport for slobrok server to drop empty buffersArne Juul2021-06-021-1/+1
|
* Avoid coredump on bad/empty config.Henning Baldersheim2021-05-252-2/+4
|
* allow adding un-configured peer slobrokArne Juul2021-05-191-1/+1
|
* Use int for FastOS_UNIX_Application::GetOpt() return value.Tor Egge2021-04-302-2/+2
|
* Reapply "add more logging" (new and updated slobrok logging)Arne Juul2021-04-219-108/+105
| | | | This reverts commit 9aa3d6fe6567e3eee9108d6fffbc50d5874e72e3.
* Revert "add more logging"Harald Musum2021-04-209-105/+108
|
* simpler backoff testArne Juul2021-04-193-65/+27
| | | | * remove un-needed "static"
* add more loggingArne Juul2021-04-198-45/+80
| | | | | | | | * make it possible to track which location broker various components are registered with or mirroring information from. * most of these log messages should now look the same in the Java and C++ implementations
* Use vespalib::duration for timeoutsHenning Baldersheim2021-01-314-0/+4
|
* Misc cleanup of includes and code healthHenning Baldersheim2020-12-011-1/+0
|
* Reduce loglevel from error to infoHenning Baldersheim2020-11-121-1/+1
|
* Add some more info to error messages to ease debugging.Henning Baldersheim2020-11-121-4/+5
|
* GC unuse code and use std::mutex/std:condition_variable over vespalib::MonitorHenning Baldersheim2020-10-141-6/+2
|
* Use std::mutex over vespalib::Lock and reduce code visibility.Henning Baldersheim2020-10-081-2/+2
|
* Use vespalib::Lock -> std::mutexHenning Baldersheim2020-10-084-7/+7
|
* - GC unused code.Henning Baldersheim2020-10-072-4/+3
| | | | - vespalib::Lock -> std::mutex
* - 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.
* avoid race in slobrok unit testArne Juul2020-03-181-0/+6
|
* FastOS_THread::Sleep -> std::chrono::sleep_forHenning Baldersheim2019-12-044-10/+10
| | | | | Renamed Timer -> ScheduledExecutor. Do not include thread.h when not needed in header files.
* FastOS_Time -> std::chrono.Henning Baldersheim2019-11-201-3/+2
|
* seconds are not millisecondsHenning Baldersheim2019-11-201-1/+1
|
* Remove FastOS_Time usageHenning Baldersheim2019-11-202-11/+27
|
* Ensure static `SBEnv` instance is destroyed when exceptions are triggeredTor Brede Vekterli2019-09-121-3/+6
| | | | | | | Since the instance is declared as `static` it will otherwise be destroyed as part of the global destructor invocation cycle at exit. Any transitive dependencies that are also static may or may not be destroyed prior to the `SBEnv` instance itself, causing undefined behavior.
* Avoid calling time(nullptr)Henning Baldersheim2019-08-262-6/+12
|
* Use std::_Exit instead of std::quick_exit.Tor Egge2019-08-061-1/+1
|
* 25s -> 60s stabilization time limitHåvard Pettersen2019-06-191-1/+1
|
* remove usage and implementation of "slobrok.mirror.fetch" APIArne Juul2019-05-146-194/+1
|
* GC unused ancient apiHenning Baldersheim2019-05-136-534/+0
|
* Stop threadsHenning Baldersheim2019-05-112-0/+2
|
* Take full control over the supervisorHenning Baldersheim2019-05-112-4/+12
|
* Simplify the supervisor responsibilityHenning Baldersheim2019-05-1010-109/+77
|
* protect from invoking new requests during destructorArne Juul2019-03-141-1/+5
| | | | | * race condition during shutdown would lead to core dump in some rare cases.
* Remove files used by old unit test runner.Tor Egge2019-02-1910-10/+0
|
* Adjust forward declarations in slobrok.Tor Egge2019-02-081-3/+3
|
* Make slobrok RegisterAPI busy flag polling data race freeTor Brede Vekterli2019-01-102-6/+7
|
* Expose exception information. If totally unknown, generate core.Henning Baldersheim2018-10-092-7/+3
|
* Modernize slobrok internals moreArne Juul2018-10-0810-124/+128
| | | | | | | | * simplify / clarify some code * modernize slightly * reduce data multiplication * rename command class to ScriptCommand * use "localhost" in test
* Revert "Arnej/avoid multiple callbacks 2"Henning Baldersheim2018-10-0812-158/+130
|
* RequestDone must still cleanup after AbortArne Juul2018-10-082-10/+17
|
* avoid multiple callbacks, take 2Arne Juul2018-10-0812-127/+148
| | | | | | | | | | * postpone actual work to scheduled tasks, to avoid multiple threads doing callbacks at the same time * simplify / clarify some code * modernize slightly * reduce data multiplication * rename command class to ScriptCommand * use "localhost" in test
* Revert "Arnej/avoid multiple callbacks"Harald Musum2018-10-0312-148/+127
|
* reduce data multiplicationArne Juul2018-10-032-13/+12
|
* simplify / clarify code somewhatArne Juul2018-10-031-9/+16
|
* simplify some APIsArne Juul2018-10-035-24/+28
|
* rename class to something readableArne Juul2018-10-037-81/+75
|
* modernize slightlyArne Juul2018-10-032-8/+7
|
* avoid multi-thread issueArne Juul2018-10-034-3/+21
| | | | | * postpone actual work to scheduled tasks, to avoid multiple threads doing callbacks at the same time