Accumulo
  1. Accumulo
  2. ACCUMULO-291

Iterator attachment and removal should be more atomic

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.5
    • 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

        Billie Rinaldi created issue -
        Hide
        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
        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 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 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.
        Billie Rinaldi made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Gavin made changes -
        Workflow no-reopen-closed, patch-avail [ 12648478 ] patch-available, re-open possible [ 12671306 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        1d 6h 27m 1 Billie Rinaldi 10/Jan/12 21:00

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development