Travelping Open Subscriber Server 0.4.65
Travelping Open Subscriber Server (TPOSS) in version 0.4.65 provides the bump
of the TPOSS image to version 6.9.6 which comes with fixes and improvements related to CDR
partitions and the carriers' cache.
Fixes
Fix re-initialization of carriers' cache
To avoid fetching carriers and related MCC/MNC(s) from the database during allocation of quotas, TPOSS stores carriers in the in-memory cache. If the user called TPOSS HTTP REST API to update the carriers, the carriers were updated in the database, but not in the carriers' cache. In this case, when carriers were deleted, the carriers' cache kept storing the records. This wrong behaviour was fixed in this release and now both database and carriers' cache is updated.
Check database name during creation of CDR partitions
Before initial CDR partitions are created during migration, TPOSS checks if such
partitions were already created before. Previously, the check was done via information_schema system
database for the CDR table name. However, the MySQL database server may have multiple
CDR tables within different databases. If one of such tables already had partitions
created, the partitions creation failed for other databases. This release fixes the
check for the already created partitions by adding the database name to the check.
NO_UNSIGNED_SUBTRACTION SQL mode added to MySQL events
When a partition is deleted, TPOSS tries to adjust the CDR counter metric. If the previous value of the metric was wrong because of different database issues, negative values could occur during the calculation of the proper value for this metric. In such a case, the whole procedure of adjusting the metric failed. From this release, calling procedures with the NO_UNSIGNED_SUBTRACTION SQL mode allows for negative values during calculation.
Migration guide
0.4.64 → 0.4.65
The new version does not have new configuration options. However, migrate the database to apply new versions of the stored procedures to manage CDR partitions.