Bug 49872 - After pruning the transaction file, the Index.okay in transaction.index is 'no'
After pruning the transaction file, the Index.okay in transaction.index is 'no'
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: LDAP
UCS 4.4
Other Linux
: P5 normal (vote)
: UCS 4.4-1-errata
Assigned To: Philipp Hahn
Arvid Requate
:
Depends on: 48729
Blocks:
  Show dependency treegraph
 
Reported: 2019-07-19 14:09 CEST by Christina Scheinig
Modified: 2019-09-11 15:25 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 1: Cosmetic issue or missing function but workaround exists
Who will be affected by this bug?: 3: Will affect average number of installed domains
How will those affected feel about the bug?: 1: Nuisance – not a big deal but noticeable
User Pain: 0.017
Enterprise Customer affected?: Yes
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2019071621000544
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christina Scheinig univentionstaff 2019-07-19 14:09:24 CEST
Debugging and fixing a translog issue, after the final rebuild the output of 
/usr/share/univention-directory-notifier/univention-translog stat  
shows:                                                                   
Index.file: /var/lib/univention-ldap/notify/transaction.index
Index.size: 1130674328
Index.count: 125630479
Index.okay: no
Translog.file: /var/lib/univention-ldap/notify/transaction
Translog.size: 172706700
Translog.first: 123672201
Translog.last: 125630479
Translog.count: 1958279
Ldap.last: 125630479
Ldap.okay: yes
-----------------------------------
→ Index.okay is no

The code shows why:
print("Index.okay: %s" % ('yes' if index.count == translog.count else 'no',))
----------------------------------
The cause seems to be the pruned transaction file.
The transaction file was pruned by the customer when he tries to fix the issue by himself.
( UCS: 4.3-4 errata545 has not provide the command 
/usr/share/univention-directory-notifier/univention-translog prune <TID>
yet)

The output Index.okay: no was confusing for the customer.
Comment 1 Philipp Hahn univentionstaff 2019-08-14 14:54:52 CEST
[4.4-1] ac61a578bd Bug #49872 udn: Fix `univention-translog stat` check for index
 doc/errata/staging/univention-directory-notifier.yaml        | 10 ++++++++++
 management/univention-directory-notifier/debian/changelog    |  6 ++++++
 management/univention-directory-notifier/univention-translog |  2 +-
 3 files changed, 17 insertions(+), 1 deletion(-)

Package: univention-directory-notifier
Version: 13.0.1-18A~4.4.0.201908141449
Branch: ucs_4.4-0
Scope: errata4.4-1

[4.4-1] d0574362ef Bug #49872: univention-directory-notifier 13.0.1-18A~4.4.0.201908141449
 doc/errata/staging/univention-directory-notifier.yaml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 2 Arvid Requate univentionstaff 2019-09-10 14:19:31 CEST
Verified:
* Code adjustment
* Advisory
Comment 3 Erik Damrose univentionstaff 2019-09-11 15:25:26 CEST
<http://errata.software-univention.de/ucs/4.4/265.html>