Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-19126

[AMv2] RegionStates/RegionStateNode needs cleanup

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      // Mutable/Immutable? Changes have to be synchronized or not?
      // Data members are volatile which seems to say multi-threaded access is fine.
      // In the below we do check and set but the check state could change before
      // we do the set because no synchronization....which seems dodgy. Clear up
      // understanding here... how many threads accessing? Do locks make it so one
      // thread at a time working on a single Region's RegionStateNode? Lets presume
      // so for now. Odd is that elsewhere in this RegionStates, we synchronize on
      // the RegionStateNode instance
      Copied from TODO in RegionState.java

      Open this jira to track some cleanups for RegionStates/RegionStateNode

      Attachments

        Activity

          People

            Unassigned Unassigned
            easyliangjob Yi Liang
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated: