1. 26 5月, 2017 3 次提交
  2. 25 5月, 2017 10 次提交
    • J
      ICW changes for subselect_gp, gppc, and gpload. · 27d0ae5d
      Jimmy Yih 提交于
      For subselect_gp test, we were removing the distribution policy of a
      table to see if it would do a gather motion or not. Since it's
      technically a corrupted table, we should delete it after we're done
      with it. We also remove a quicklz reference that should not have been
      there.
      
      For gppc test, they were using the regression database. This made our
      gpcheckcat call at the end of ICW relatively useless since all our
      data would have been deleted due to gppc tests recreating the
      regression database.
      
      For gpload test, some generated files were previously commited. We
      should be actively cautious of this and remove them when we see them.
      27d0ae5d
    • V
      Add start/end_ignore where needed · ebc36838
      Venkatesh Raghavan 提交于
      ebc36838
    • V
      Remove disable/enable xform function · 19dd6c68
      Venkatesh Raghavan 提交于
      19dd6c68
    • V
      Rename gp_optimizer tests to gporca · b545a0c4
      Venkatesh Raghavan 提交于
      b545a0c4
    • D
      Reduce dependency on pl/perl in ICW · dfddacb7
      Daniel Gustafsson 提交于
      PL/Perl is an optional component, and the main ICW should not use
      it as it may not be present. Move the tests that seem useful to
      the plperl test suite instead and remove the ones which we have
      ample coverage for elsewhere.
      dfddacb7
    • D
      Move gpmapreduce tests from src/test/regress to gpAux · d65a54c6
      Daniel Gustafsson 提交于
      The gpmapreduce application is an optional install included via
      the --enable-mapreduce configure option. The tests were however
      still in src/test/regress and unconditionally included in the
      ICW schedule, thus causing test failures when mapreduce wasn't
      configured.
      
      Move all gpmapreduce tests to co-locate them with the mapreduce
      code and only test when configured.
      
      Also, add a dependency on Perl for gpmapreduce in autoconf since
      it's a required component.
      d65a54c6
    • C
      Combines Netbackup backup/restore test suite into main backup suite (#2497) · 18a2b39f
      Chris Hajas 提交于
      This is part of the effort to get all backup/restore tests using the
      same test suite. Since the Netbackup tests take significantly longer, we
      only run a subset of the regular test suite. We also tag scenarios to
      allow parallel runs on separate hosts in CI.
      
      This suite will take 1h, 40 mins after parallelization, down from the
      current 2h, 20 mins.
      18a2b39f
    • B
      Fix Default partition level for indexes · e0e8703e
      Bhuvnesh Chaudhary 提交于
      - Before building Index object (IMDIndex), we build LogicalIndexes
        via calling `gpdb::Plgidx(oidRel)` in which a partition tables is
        traversed and index  information (such as logicalIndexOid,
        nColumns, indexKeys, indPred, indExprs, indIsUnique, partCons,
        defaultLevels) is captured.
      - For Indexes which are available on all the partitions partCons
        and defaultLevels are NULL/empty.
      - Later in `CTranslatorRelcacheToDXL::PmdindexPartTable` to build
        Index object, we use the derived LogicalIndexes information and
        populates the array  holding the levels on which default
        partitions exists. But since defaultLevels is NIL in this case,
        pdrgpulDefaultLevels is set to empty i,e `default partitions on levels: {}`
      - This causes an issue while trying to build the propagation expression,
        as because of wrong number of default partitions on level we mark the
        scan as partial and tries to construct a test propagation expression
        instead of a const propagation expression.
      - This patch fixes the issue by marking the default partitions on
        levels for index equal to the default partitions on levels for the
        part relation if the index exists on all the parts.
      Signed-off-by: NJemish Patel <jpatel@pivotal.io>
      e0e8703e
    • N
      Clarify `make behave` behavior and remove unused call (#2490) · 97358f31
      Nadeem Ghani 提交于
      * Clarify `make behave` behavior and remove unused call
      
      * Add flags argument to pass in custom flags to behave
      
      Allows us to use more complex tag combinations for including/excluding
      scenarios. This also removes the skip_tags argument as it only worked in
      limited circumstances.
      Signed-off-by: NNadeem Ghani <nghani@pivotal.io>
      97358f31
    • C
      Fix MU_check concourse task to print failing unit test on error. (#2489) · f9ea4e79
      Chris Hajas 提交于
      Fix MU_check concourse task to print failing unit test on error.
      f9ea4e79
  3. 24 5月, 2017 5 次提交
    • N
      Fix defects in cgroup ops. · 89b66142
      Ning Yu 提交于
      This patch is to fix below defects reported by Coverity Scan.
      
      ```
      New defect(s) Reported-by: Coverity Scan
      Showing 3 of 3 defect(s)
      
      ** CID 169611:  Security best practices violations  (TOCTOU)
      /tmp/build/0e1b53a0/gpdb_src/src/backend/utils/resgroup/resgroup-ops-cgroup.c:
      272 in createDir()
      
      ________________________________________________________________________________________________________
      *** CID 169611:  Security best practices violations  (TOCTOU)
      /tmp/build/0e1b53a0/gpdb_src/src/backend/utils/resgroup/resgroup-ops-cgroup.c:
      272 in createDir()
      266
      267             buildPath(group, comp, "", path, pathsize);
      268
      269             if (access(path, F_OK))
      270             {
      271                     /* the dir is not created yet, create it */
      >>>     CID 169611:  Security best practices violations  (TOCTOU)
      >>>     Calling function "mkdir" that uses "path" after a check
      >>>     function. This can cause a time-of-check, time-of-use race
      >>>     condition.
      272                     if (mkdir(path, 0755) && errno != EEXIST)
      273                             return false;
      274             }
      275
      276             return true;
      277     }
      
      ** CID 169610:  Control flow issues  (NO_EFFECT)
      /tmp/build/0e1b53a0/gpdb_src/src/backend/utils/resgroup/resgroup-ops-cgroup.c:
      412 in writeData()
      
      ________________________________________________________________________________________________________
      *** CID 169610:  Control flow issues  (NO_EFFECT)
      /tmp/build/0e1b53a0/gpdb_src/src/backend/utils/resgroup/resgroup-ops-cgroup.c:
      412 in writeData()
      406             size_t ret = write(fd, data, datasize);
      407
      408             /* save errno before close */
      409             int err = errno;
      410             close(fd);
      411
      >>>     CID 169610:  Control flow issues  (NO_EFFECT)
      >>>     This less-than-zero comparison of an unsigned value is never
      >>>     true. "ret < 0UL".
      412             if (ret < 0)
      413                     CGROUP_ERROR("can't write data to file '%s':
      %s", path, strerror(err));
      414             if (ret != datasize)
      415                     CGROUP_ERROR("can't write all data to file
      '%s'", path);
      416     }
      417
      
      ** CID 169609:  Control flow issues  (NO_EFFECT)
      /tmp/build/0e1b53a0/gpdb_src/src/backend/utils/resgroup/resgroup-ops-cgroup.c:
      385 in readData()
      
      ________________________________________________________________________________________________________
      *** CID 169609:  Control flow issues  (NO_EFFECT)
      /tmp/build/0e1b53a0/gpdb_src/src/backend/utils/resgroup/resgroup-ops-cgroup.c:
      385 in readData()
      379             size_t ret = read(fd, data, datasize);
      380
      381             /* save errno before close() */
      382             int err = errno;
      383             close(fd);
      384
      >>>     CID 169609:  Control flow issues  (NO_EFFECT)
      >>>     This less-than-zero comparison of an unsigned value is never
      >>>     true. "ret < 0UL".
      385             if (ret < 0)
      386                     CGROUP_ERROR("can't read data from file '%s':
      %s", path, strerror(err));
      387
      388             return ret;
      389     }
      390
      ```
      89b66142
    • P
      Remove duplicate unit test in pipeline compile script · 43d3b530
      Peifeng Qiu 提交于
      Remove duplicate unittest_check_gpdb in compile_gpdb.bash, it's already run by the above "if" block when needed.
      43d3b530
    • L
      ce8ae696
    • A
      3362fb2f
    • A
      Add spaces in documentation where needed (#2482) · 5eedc6c2
      Andreas Scherbaum 提交于
      Some minor documentation fixes
      5eedc6c2
  4. 23 5月, 2017 6 次提交
  5. 22 5月, 2017 4 次提交
  6. 20 5月, 2017 8 次提交
    • C
      concourse: Revise README · 178f1c10
      C.J. Jameson 提交于
      - Provide a high-level overview welcome section
      - Remove exceptions for gpcloud -- now in this repo
      - Newline/return more frequently in the markdown
      178f1c10
    • M
      minor fix for example java code. · 3d272ac1
      mkiyama 提交于
      3d272ac1
    • T
      Adds make create-demo-cluster · af995d58
      Todd Sedano 提交于
      Based on feedback from new developers to gpdb, we are improving
      the top level make targets.
      
      https://github.com/greenplum-db/gpdb/issues/2422
      af995d58
    • A
      Basic walreceiver unit test. · be0219e6
      Ashwin Agrawal 提交于
      Just a start to have wal replication tests in ICW. This has simple protocol
      functions whichs kind-of mocks walreceiver side to help validate walsender and
      xlog stream. Mainly to portray something on these lines can be easily leveraged
      to validate like xlog generation and stream for AO tables when done, avoiding to
      fully instantiate a mirror or something on similar lines at ease.
      be0219e6
    • A
      Coverity fixes for primary_mirror_mode.c · 9015c6cf
      Ashwin Agrawal 提交于
      CID 129287 Buffer not null terminated. In primaryMirrorCheckNICFailure: The
      string buffers `localHost` and `peerHost` may not have a null terminator if the
      source string's length is equal to the buffer size. Hence use strlcpy instead to
      be same.
      
      CID 130101 Dereference before null check. In isFilespaceInfoConsistent: All
      paths that lead to `primaryFilespaceLocation` null pointer comparison already
      dereference the pointer earlier. Since `primaryFilespaceLocation` cannot be null
      else PersistentFilespace_GetPrimaryAndMirror() will error out itself, removing
      the check for null.
      
      CID 130130 Copy into fixed size buffer. In primaryMirrorPopulateFilespaceInfo: A
      source buffer `pch` of statically unknown size is copied into a fixed-size
      destination buffer `peerFilespacePath`. Hence replace strcpy with strlcpy.
      
      CID 159071 Uninitialized scalar variable. In primaryMirrorPopulateFilespaceInfo:
      Use of an uninitialized variable filespacePath. Hence initialing it in else path
      to empty string.
      9015c6cf
    • A
      Some whitespace fixes for primary_mirror_mode.c · 9e33e14f
      Ashwin Agrawal 提交于
      Currently for function isFilespaceInfoConsistent() and
      primaryMirrorPopulateFilespaceInfo().
      9e33e14f
    • D
      Gppkg doc updates (#2477) · 38f095e9
      David Yozie 提交于
      * updating gppkg reference to no longer mention PL/Java, PL/Perl as separate packages
      
      * pl\python typos; more gppkg cleanup; pgcrypto install
      
      * fixing repeated URL
      38f095e9
    • J
      Page for xml datatype (#2432) · b7331b6a
      Jane Beckman 提交于
      * Section on xml datatype
      
      * Format corrections
      
      * Fix typos
      
      * Reorganization suggested by Dave
      
      * Format updates
      
      * Update headings
      b7331b6a
  7. 19 5月, 2017 4 次提交
    • D
      Fix support for dumping ProcLangs with anonymous block support · c30579cc
      Daniel Gustafsson 提交于
      The support for anonymous blocks which was backported in commit
      cacb2839 missed updatint the query
      in getProcLangs() to correctly extract the laninline function.
      Fix by updating the query to what it looks like in upstream 9.0
      where anonymous blocks first appeared.
      
      Added a small comment to explain why for when this conflicts in
      a merge. There shouldn't be a conflict until we merge 9.0 since
      getProcLangs() was quite stable during 8.4, but one never know.
      c30579cc
    • N
      Remove resource_group from isolation2 schedule. · 2e87c5aa
      Ning Yu 提交于
      resource_group cases were already moved to the standalone resgroup
      target, however one entrance was still left in isolation2 schedule which
      caused a failure in pipeline.
      
      This commit is a cleanup to make pipeline green.
      2e87c5aa
    • N
      0341ed44
    • N
      Move all resgroup tests out of ICW. · 0c5af857
      Ning Yu 提交于
      As cgroup is now required to enable resgroup on linux and cgroup itself
      requires privileged permission to setup & config, so resgroup tests will
      fail or at least produce extra warnings in ICW pipeline. We moved them
      to the installcheck-resgroup target as there is a standalone privileged
      pipeline to run this target.
      
      Also the tests are updated as the psql output format is different
      between ICW and installcheck-resgroup.
      0c5af857