Skip to content

Jlo fixes/rlhistorylogger r w pointer and frequent restarts#22

Open
johannes-lode wants to merge 9 commits intopvbrowser:masterfrom
johannes-lode:jlo-fixes/rlhistorylogger-R-W-pointer-and-frequent-restarts
Open

Jlo fixes/rlhistorylogger r w pointer and frequent restarts#22
johannes-lode wants to merge 9 commits intopvbrowser:masterfrom
johannes-lode:jlo-fixes/rlhistorylogger-R-W-pointer-and-frequent-restarts

Conversation

@johannes-lode
Copy link

Rearrange the ring buffer initialization to reduce data loss on frequent restarts of a logger.

Johannes Lode and others added 9 commits January 21, 2019 16:11
To avoid time calculation errors by mixing absolute time values with
relative time value in the same class, the interface was changed for the
application of relative amounts of time against absolute points in time.

Added interface for simple formatting options of time differences.
Intermediate commit for transfer to another workstation.
Meanwhile added a proxy interface, so the traditional interface of
operating with two operands of rlTimeEx is available. 
One small exception is there of returning double for the difference 
of two rlTimeEx object by default and returning rlTimeEx objects only 
on request by casting the second operand to RelativeTime(rltime_object).
By inspecting the logging files on logger start the data loss from 
deleted ring buffer files is reduced. 

This is achieved by avoiding the deletion of the oldest of the ring 
buffer files in case the youngest file is still in time window for 
further logging events.

This way occurred a problem in Windows, where read and write pointer are 
not independent. So the inspection of the files and writing to the files 
is done from different file descriptors, opend for the special purpose. 

By the way reduced this problems with data logging, reopening the log
files etc. after a server crash and restart.
jlo-fixes/rlhistorylogger-R-W-pointer-and-frequent-restarts

Conflicts:
	.gitignore - resolved by using incoming
	rllib/lib/rltime.cpp - resolved by using incoming
	rllib/lib/rltime.h - resolved by using incoming
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant