Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
BP-47 (task3): Abstract interface for entrylogger (#3197)
* Interface for entrylogger Define the interface and contract for entrylogger. This is mostly taking the entrylogger methods used by other components and prettying them up a bit. Notable changes are: - internalReadEntry is now readEntry. There is no 'validate' flag. Instead there are two overloads for the method, and validation only runs if ledgerId and entryId are passed in. - shutdown has been renamed to close. - the compaction entrylog methods have been put behind an interface. As it was they were leaking implementation details. Ultimitely compaction itself should be hidden behind the entrylogger, but that's a larger refactor. (cherry picked from commit c927f4b) * abstract interface for entrylogger * format code * format code * address comments * Apply suggestions from code review Co-authored-by: Andrey Yegorov <8622884+dlg99@users.noreply.github.com> * address comments * format code Co-authored-by: Ivan Kelly <ikelly@splunk.com> Co-authored-by: Andrey Yegorov <8622884+dlg99@users.noreply.github.com>
- Loading branch information