Commit Graph

14 Commits

Author SHA1 Message Date
ionutboangiu
cb7ea790de Update rpcclient library to latest version
Replace all instances of rpcclient.ClientConnector with birpc.ClientConnector.

Pass context, maxReconnectInterval, delayFunc and birpcClient to rpcclient
constructors.

Remove redundant time.Duration conversions (e.g. time.Duration(1*time.Second)
now becomes time.Second.

Add context where needed (context.Background() for tests, context.TODO()
for places where it should be passed from somewhere else).

Implement that functionality of the SessionSv1.Sleep call, in sessions/sessions
instead of apier/v1.

Make changes in utils/server.go (replacing the old rpc2 library with github.com/cgrates/birpc).

Change the way we register birpc methods for sessions in services, using a helper function
defined in engine/libengine.go.
2023-05-03 10:02:15 +02:00
ionutboangiu
0473e66555 Revise config reload tests in services
A time.Sleep() of 10 milliseconds has been added after starting the services in order to wait for the goroutine that handles reloads to get instantiated. This solves the occasional deadlock that happens when a reload signal is sent to a subsystem that requires storDB before sending it to storDB itself. One consequence of waiting is that where we previously expected the DataDB service to not be running yet, now it has enough time.
2023-03-28 17:59:32 +02:00
gezimbll
7dcbd09a1f replacing non-meta constants for storage types 2023-03-08 19:14:24 +01:00
Trial97
db3bf9f40d Updated build tags 2021-08-30 17:55:51 +03:00
Trial97
467ae7d271 Updated gob integration tests 2020-04-28 15:54:53 +02:00
TeoV
1947bef4ae Update integration test for services 2020-01-30 10:23:41 +01:00
Trial97
d60ac504b1 Updated ConfigSv1.ReloadSections to ConfigSv1.ReloadConfigFromJSON 2020-01-09 08:05:20 +02:00
Trial97
21285b4bbc Removed unused connmanager service 2020-01-06 17:43:54 +02:00
TeoV
7b72c943a0 Add connections from remote and replicate throuh ConnManager 2020-01-06 09:27:34 -05:00
TeoV
28868e8852 Add connections from Agents through ConnManager 2019-12-12 08:54:42 +02:00
Trial97
b4fe82c6d7 Updated rpcclient library 2019-12-09 18:04:26 +02:00
TeoV
4a201c6f9e Remove prefix when add items in internalDB 2019-12-04 07:29:32 -05:00
Trial97
f17b4140c3 Added DB reload for LoaderS 2019-10-28 12:17:15 +01:00
Trial97
c18a0c83c4 Added test for DataManagerService 2019-10-28 12:17:15 +01:00