<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-text-html" lang="x-unicode">
      <br>
      We've had an issue for quite awhile where some small set of tests
      fail infrequently with the error &quot;Query required more than 12
      iterations&quot;.&nbsp; I think I now have a general idea of what's going
      on, and thought I'd describe what I've seen in case others have
      insight.&nbsp;
      <br>
      <br>
      In some tests (e.g. FunctionTest.testLastPeriods()) a cell request
      is made for [1998].[Q1].&nbsp; The cache at this point contains the
      following two segments:<br>
      <blockquote><small>Axes:[&nbsp;&nbsp;&nbsp; <br>
          &nbsp;&nbsp;&nbsp; {time_by_day.the_year=('1998')}</small><br>
        <small>&nbsp;&nbsp;&nbsp; {time_by_day.quarter=(*)}</small><br>
        <small>&nbsp;&nbsp;&nbsp;
          {time_by_day.month_of_year=('2','3','4','5','6','7')}]</small><br>
        <br>
        <small>Axes:[</small>&nbsp;&nbsp;&nbsp; <small><br>
          &nbsp;&nbsp;&nbsp; {time_by_day.the_year=(*)}</small><br>
        <small>&nbsp;&nbsp;&nbsp; {time_by_day.quarter=(*)}</small><br>
        <small>&nbsp;&nbsp;&nbsp;
          {time_by_day.month_of_year=('1','8','9','10','11','12')}]</small><br>
      </blockquote>
      <br>
      Which get rolled up to <br>
      <blockquote><small>Axes:[<br>
          &nbsp;&nbsp;&nbsp; {time_by_day.the_year=)}</small><br>
        <small>&nbsp;&nbsp;&nbsp; {time_by_day.quarter=(*)}]</small><br>
      </blockquote>
      <br>
      Note that the_year=&lt;blank&gt;, which occurs when the values
      list is non-null but empty.&nbsp; Because the_year has an empty values
      list, the cell request for [1998].[Q1] cannot be answered, and we
      repeat the cycle, again rolling up the same 2 segments.<br>
      <br>
      I believe the rolled up segment in this case should be constrained
      by '1998'.&nbsp; Does that sound right?<br>
      <br>
      <br>
    </div>
  </body>
</html>