Uploaded image for project: 'Hyrax Data Server'
  1. HYRAX-802

Issues remain in the Aggregation rename fix...

    Details

    • Type: Bug
    • Status: Done (View workflow)
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: ncml_handler
    • Labels:
      None
    • Epic Link:
    • Sprint:
      Datause-18.3.4

      Description

      Test 101 of the NCML handler's regression tests show the following error:

      [nori:tests jimg$] besstandalone -c bes.conf -i test_101.bescmd | more

      <?xml version="1.0" encoding="ISO-8859-1"?>
      <response reqID="some_unique_value" xmlns="http://xml.opendap.org/ns/bes/1.0#">
          <getDODS>
              <BESError>
                  <Type>3</Type>
                  <Message>libdap error transmitting DataDDS: The Array was already projected differently in the constraint expression: precipitate.</Message>
                  <Administrator>admin.email.address@your.domain.name</Administrator>
                  <Location>
                      <File>BESDapTransmit.cc</File>
                      <Line>88</Line>
                  </Location>
              </BESError>
          </getDODS>
      </response>
      

      Here's what's in the test_101.bescmd (the ncml tests automatically generate the test.bescmd files, but errant tests save them in testsuite.dir/101/, ... and I copied it out and will attach it here):

      <?xml version="1.0" encoding="UTF-8"?>
      <request reqID="some_unique_value" >
          <setContext name="dap_format">dap2</setContext>
          <setContainer name="c" space="catalog">/data/ncml/var_orgName_Structure.ncml</setContainer>
          <define name="d">
              <container name="c"><constraint> DataGranule.PlanetaryGrid.precipitate[0][179][0:79] </constraint></container>
          </define>
          <get type="dods" definition="d" />
      </request>
      

      And here's the NcML file (_ ../data/ncml/var_orgName_Structure.ncml_)

      <?xml version="1.0" encoding="UTF-8"?>
      <netcdf location="data/ncml/3B42.001003.5.HDF">
        
        <!-- Rename the top level Structure to test Structure name changes -->
        <variable name="DataGranule" orgName="DATA_GRANULE" type="Structure">
          <!-- Test adding attribute to a renamed variable -->
          <attribute name="NewAttrib" type="String">
            Make sure we can add to renamed variable!
          </attribute>
          <!-- Then traverse the existing Structure -->
          <variable name="PlanetaryGrid" type="Structure">
            <!-- Finally, rename the variable to spell it correctly -->
            <variable name="precipitate" orgName="percipitate">
            </variable>
          </variable>
        </variable>
      
      </netcdf>
      

      Test 97 shows a different, but almost certainly related error:

      Here's the bescmd (also attached; test_97.bescmd)

      <?xml version="1.0" encoding="UTF-8"?>
      <request reqID="some_unique_value" >
          <setContext name="dap_format">dap2</setContext>
          <setContainer name="c" space="catalog">/data/ncml/var_orgName_Structure.ncml</setContainer>
          <define name="d">
              <container name="c"><constraint> DataGranule.PlanetaryGrid.precipitate </constraint></container>
          </define>
          <get type="dods" definition="d" />
      </request>
      

      The response _ besstandalone -c $abs_builddir/bes.conf -i ./test.bescmd_

      Note that there are two variables in the response.

      stderr:
      stdout:
      Dataset {
          Structure {
              Structure {
                  Float32 relError[scan = 1][longitude = 360][latitude = 80];
                  Float32 precipitate[scan = 1][longitude = 360][latitude = 80];
              } PlanetaryGrid;
          } DataGranule;
      } var_orgName_Structure.ncml;
      Data:
      ^@^@p<80>^@^@p<80>=<AF><F8><8D>=<AF><F8><8D>=<AF><F8><8D>>^Y<DE><C5>?^Q<EA>Z?L^R<EB>>p<AD><D8>><9F>e
      ...
      

      The response should only have one (see the baseline here baselines/var_orgName_Structure_constraint_1.ncml)

      Dataset {
          Structure {
              Structure {
                  Float32 precipitate[scan = 1][longitude = 360][latitude = 80];
              } PlanetaryGrid;
          } DataGranule;
      } var_orgName_Structure.ncml;
      

        Attachments

          Activity

            People

            • Assignee:
              jimg James Gallagher
              Reporter:
              jimg James Gallagher
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 30 minutes
                1h 30m