Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-291

Iterator attachment and removal should be more atomic

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.5-incubating
    • Fix Version/s: 1.3.6, 1.4.0
    • Component/s: client
    • Labels:
      None

      Description

      It could be a very bad thing for an iterator to come into use without all its options set. This can be avoided by setting iterator options first and removing them last.

        Activity

        Hide
        kturner Keith Turner added a comment -

        I do not understand this ticket. Is this related to calling the init() method on an iterator, or something else?

        Show
        kturner Keith Turner added a comment - I do not understand this ticket. Is this related to calling the init() method on an iterator, or something else?
        Hide
        billie.rinaldi Billie Rinaldi added a comment -

        No, it's related to using setiter in the shell or the attachIterator method of TableOperations. Previously they have set the main iterator property first (e.g. table.iterator.scan.myfilter=10,org.apache.accumulo.core.iterators.user.AgeOffFilter), and then set the options properties for the iterator (e.g. table.iterator.scan.myfilter.opt.ttl=30000). If a scan or compaction occured before the options were fully configured, something unexpected could happen.

        Show
        billie.rinaldi Billie Rinaldi added a comment - No, it's related to using setiter in the shell or the attachIterator method of TableOperations. Previously they have set the main iterator property first (e.g. table.iterator.scan.myfilter=10,org.apache.accumulo.core.iterators.user.AgeOffFilter), and then set the options properties for the iterator (e.g. table.iterator.scan.myfilter.opt.ttl=30000). If a scan or compaction occured before the options were fully configured, something unexpected could happen.

          People

          • Assignee:
            billie.rinaldi Billie Rinaldi
            Reporter:
            billie.rinaldi Billie Rinaldi
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development