Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 308969 Details for
Bug 233642
MMR breaks with time skew errors
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
script to check CSN state
readNsState.py (text/plain), 1.15 KB, created by
Rich Megginson
on 2008-06-11 18:00:03 UTC
(
hide
)
Description:
script to check CSN state
Filename:
MIME Type:
Creator:
Rich Megginson
Created:
2008-06-11 18:00:03 UTC
Size:
1.15 KB
patch
obsolete
>#!/usr/bin/env python > >import sys >import struct >import base64 >import time > >def printGenState(dn, nsstate): > print "For replica", dn > print " len of nsstate is", len(nsstate) > (rid, sampled_time, local_offset, remote_offset, seq_num) = struct.unpack('LLLLL', nsstate) > now = int(time.time()) > print """ CSN generator state: > Replica ID : %d > Sampled Time : %d > Time in hex : 0x%x > Time as str : %s > Local Offset : %d > Remote Offset : %d > Seq. num : %d > System time : %s > Diff in sec. : %d >""" % (rid, sampled_time, sampled_time, time.ctime(sampled_time), local_offset, > remote_offset, seq_num, time.ctime(now), now-sampled_time) > >def main(): > dn = '' > nsstate = '' > for line in open(sys.argv[1]): > if line.startswith("dn: "): > dn = line[4:].strip() > if line.startswith("nsState:: ") and dn.startswith("cn=replica"): > b64val = line[10:].strip() > nsstate = base64.b64decode(b64val) > printGenState(dn, nsstate) > if not nsstate: > print "Error: nsstate not found in file", sys.argv[1] > sys.exit(1) > >if __name__ == '__main__': > main()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 233642
:
308969
|
310040
|
310083
|
310193
|
310196
|
310201
|
310525
|
310526
|
314403
|
314404
|
314765
|
314770