diff options
| author | Milind Changire <mchangir@redhat.com> | 2018-09-24 17:53:35 +0530 | 
|---|---|---|
| committer | Amar Tumballi <amarts@redhat.com> | 2018-09-24 17:56:42 +0000 | 
| commit | 48a06e0eaff8b613c3e05d8168e8faff838b727f (patch) | |
| tree | 14ffae401e2f61e9d61cddb13fb697a6a3df7057 /tools | |
| parent | 81ea27c82c30282dd1fb7d67458aa874b33f6797 (diff) | |
glusterfind: add logs to identify parsing phases
Add logs to idenitfy start and finish of changelog parsing phases.
Change-Id: Id250231f2af7829f887401d30ac98875ae1ae793
fixes: bz#1632236
Signed-off-by: Milind Changire <mchangir@redhat.com>
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/glusterfind/src/changelog.py | 10 | 
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/glusterfind/src/changelog.py b/tools/glusterfind/src/changelog.py index fab6dbbdab7..feef2aebdef 100644 --- a/tools/glusterfind/src/changelog.py +++ b/tools/glusterfind/src/changelog.py @@ -276,6 +276,7 @@ def get_changes(brick, hash_dir, log_file, start, end, args):          fail("%s: %s Historical Changelogs not available: %s" %               (args.node, brick, e), logger=logger) +    logger.info("[1/4] Starting changelog parsing ...")      try:          # scan followed by getchanges till scan returns zero.          # history_scan() is blocking call, till it gets the number @@ -304,18 +305,27 @@ def get_changes(brick, hash_dir, log_file, start, end, args):          fail("%s Error during Changelog Crawl: %s" % (brick, e),               logger=logger) +    logger.info("[1/4] Finished changelog parsing.") +      # Convert all pgfid available from Changelogs +    logger.info("[2/4] Starting 'pgfid to path' conversions ...")      pgfid_to_path(brick, changelog_data)      changelog_data.commit() +    logger.info("[2/4] Finished 'pgfid to path' conversions.")      # Convert all GFIDs for which no other additional details available +    logger.info("[3/4] Starting 'gfid to path using pgfid' conversions ...")      gfid_to_path_using_pgfid(brick, changelog_data, args)      changelog_data.commit() +    logger.info("[3/4] Finished 'gfid to path using pgfid' conversions.")      # If some GFIDs fail to get converted from previous step,      # convert using find +    logger.info("[4/4] Starting 'gfid to path using batchfind' " +                "conversions ...")      gfid_to_path_using_batchfind(brick, changelog_data)      changelog_data.commit() +    logger.info("[4/4] Finished 'gfid to path using batchfind' conversions.")      return actual_end  | 
