Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-7814

DateRangePrefixTree trouble finding years >= 292,000,000

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.0, 6.6
    • Component/s: modules/spatial-extras
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      Using DateRangePrefixTree (in spatial-extras): When indexing years on or after the last million-year period supported by most computer systems, +292,000,000, a range query like [1970 TO *] will fail to find it. This happens as a result of some off-by-one errors in DateRangePrefixTree.

        Activity

        Hide
        dsmiley David Smiley added a comment -

        RandomizedTesting FTW; eventually a year in this millennia turned up with the right circumstances It could have been made more likely by some point (time instance) optimizations I'm working on now which will get its own issue, plus some crude beasting.

        Here's a patch.

        The only pertinent part of DateNRStrategyTest is the new test method testLastMillennia; the rest is related to some WIP.

        Show
        dsmiley David Smiley added a comment - RandomizedTesting FTW; eventually a year in this millennia turned up with the right circumstances It could have been made more likely by some point (time instance) optimizations I'm working on now which will get its own issue, plus some crude beasting. Here's a patch. The only pertinent part of DateNRStrategyTest is the new test method testLastMillennia; the rest is related to some WIP.
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 40c8ea4b1a82ffab841de87e236ecdb9483381e8 in lucene-solr's branch refs/heads/master from David Smiley
        [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=40c8ea4 ]

        LUCENE-7814: DateRangePrefixTree bug in years >= 292M

        Show
        jira-bot ASF subversion and git services added a comment - Commit 40c8ea4b1a82ffab841de87e236ecdb9483381e8 in lucene-solr's branch refs/heads/master from David Smiley [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=40c8ea4 ] LUCENE-7814 : DateRangePrefixTree bug in years >= 292M
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit d7583ba67dd75e69d86d982f98a3073a9ca59ebe in lucene-solr's branch refs/heads/branch_6x from David Smiley
        [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=d7583ba ]

        LUCENE-7814: DateRangePrefixTree bug in years >= 292M

        (cherry picked from commit 40c8ea4)

        Show
        jira-bot ASF subversion and git services added a comment - Commit d7583ba67dd75e69d86d982f98a3073a9ca59ebe in lucene-solr's branch refs/heads/branch_6x from David Smiley [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=d7583ba ] LUCENE-7814 : DateRangePrefixTree bug in years >= 292M (cherry picked from commit 40c8ea4)

          People

          • Assignee:
            dsmiley David Smiley
            Reporter:
            dsmiley David Smiley
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development