Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-11143

LeveldbTimelineStateStore gives inaccurate log message saying "Creating a new database at th path ... " after already created the database

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • None
    • None
    • yarn
    • None

    Description

      Hello,

      While viewing the MAPREDUCE-4262, I found that the logging statements might give inaccurate messages. 

      I also found that the in the line 119 of the file {}LeveldbTimelineStateStore{}, the log messages says "Creating a new database at th path:  ". However, the database creation should already completed in previous code (line 117 and 118).

      Would it be better if we change the verb "Creating" to "Created" to indicate the action is completed? Or can we move the logging statement to the line before 117? Since when there was an exception in line 117 and 118, the logging message would not be printed, which may be not good for debugging. 

      Attachments

        Activity

          People

            Unassigned Unassigned
            zisding Ding Ding
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified