1. 26 9月, 2017 1 次提交
    • A
      Generalized gp_add_segment() · aecb8e69
      Ashwin Agrawal 提交于
      Originally, gp_add_segment() is only used to add a primary segment. We
      created a new gp_add_segment_primary() to keep the original
      functionality, which automatically generate dbid and contentid.
      
      We generalized the gp_add_segment() to be able to directly update
      gp_segment_configuration and pg_filespace_entry for adding any type of
      segments with full specification of segment and filespace mappings. In
      this case, the new gp_add_segment() doesn't generate dbid and contentid
      automatically, and rely on input parameters.
      
      Originally there is separate code path in gp_add_segment_mirror() to
      figure out primary dbid, such logic is actually common even with
      gp_add_segment(), which can add both primary and mirror.
      
      In that case, we refactor the primary dbid detection logic in common
      function add_segment(), and refactor the gp_add_segment_mirror() to use
      the add_segment() instead of add_segment_config_entry().
      
      We update gpinitsystem to use the function gp_add_segment() instead of
      update the gp_segment_configuration and pg_filespace_entry tables
      directly via SQL.
      Signed-off-by: NXin Zhang <xzhang@pivotal.io>
      aecb8e69
  2. 25 9月, 2017 2 次提交
    • P
      Add pipeline support for AIX clients and loaders · 68362b41
      Peifeng Qiu 提交于
      Concourse doesn't support AIX natively, we need to clone the repo
      with the correspond commit on remote machine, compile the packages,
      and download them back to concourse container as output.
      
      Testing client and loader for platform without gpdb server is
      another challenge. We setup GPDB server on concourse container just
      like most installcheck tests, and use SSH tunnel to forward ports
      from and to the remote host. This way both CL tools and GPDB server
      feel they are on the same machine, and the test can run normally.
      68362b41
    • Z
      Fix cgroup mount point detect in gpconfig. · 37e3e66d
      Zhenghua Lyu 提交于
      Previous code us python package psutil to get the mount
      information of the system which will read the content
      of /etc/mtab. In some environments, /etc/mtab does not
      contain the mount point information of cgroups. In this
      commit, we scan /proc/self/mounts to find out cgroup
      mount point.
      37e3e66d
  3. 23 9月, 2017 1 次提交
  4. 21 9月, 2017 1 次提交
    • A
      Fix aix7_ppc_64 making script · 15c04803
      Adam Lee 提交于
          $ make -j -s install
          ...
          --- subprocess32, Linux only
          /bin/sh: line 3: [: =: unary operator expected
          --- stream
          ...
          Greenplum Database installation complete.
      
      When `$(BLD_ARCH)` is empty, the check becomes `[ = 'aix7_ppc_64' ]`, and gets
      the unary operator expected error.
      15c04803
  5. 15 9月, 2017 1 次提交
    • A
      Remove gp_fault_strategy catalog table and corresponding code. · f5b5c218
      Ashwin Agrawal 提交于
      Using gp_segment_configuration catalog table easily can find if mirrors exist or
      not, do not need special table to communicate the same. Earlier
      gp_fault_strategy used to convey 'n' for mirrorless system, 'f' for replication
      and 's' for san mirrors. Since support for 's' was removed in 5.0 only purpose
      gp_fault_strategy served was mirrored or not mirrored system. Hence deleting the
      gp_fault_strategy table and at required places using gp_segment_configuration to
      find the required info.
      f5b5c218
  6. 14 9月, 2017 1 次提交
  7. 13 9月, 2017 5 次提交
  8. 12 9月, 2017 3 次提交
  9. 08 9月, 2017 2 次提交
  10. 07 9月, 2017 2 次提交
    • C
      Remove proiswindow column from gptransfer verification query · 8539adcd
      Chris Hajas 提交于
      This column has a different name between master and previous GPDB
      versions.
      Signed-off-by: NKaren Huddleston <khuddleston@pivotal.io>
      8539adcd
    • M
      gp_era: change usage from md5 to sha256 · c13a9177
      Marbin Tan 提交于
      There is a bug with python 2.7 where you can't use hashlib.md5() with a
      system that has fips mode on. python 2.7 will segfault if you run the
      following
      `python -c "import ssl; import hashlib; m = hashlib.md5(); m.update('abc');"`
      
      Use sha256 instead as a workaround of the python 2.7 md5 issue.
      
      gp_era saves the hashed value into a file which gets read when creating
      a new mirror. It's mainly used to see if any segments gets out of
      synced with the new era file.
      c13a9177
  11. 05 9月, 2017 1 次提交
  12. 04 9月, 2017 1 次提交
  13. 01 9月, 2017 10 次提交
  14. 31 8月, 2017 3 次提交
    • L
      gpinitsystem: instantiate standby after master · 6f0c85d6
      Larry Hamel 提交于
      Previously, during gpinitsystem, the standby was instantiated in the middle of
      setting up the master. This ordering caused problems because
      initializing the standby could cause an exit when an error
      occurred. As a result of this early exit, the gp_toolkit and DCA gucs
      were not set properly.
      
      Instead, initialize the standby after the master is finished.
      ------------------------------------------
      Previously the exit return code for gpinitsystem was always non-zero.
      Now, it is non-zero only in an error or warning case.
      
      The issue was due to SCAN_LOG interpretation of an empty string as a line count of one.
      Fixed by changing to word count.
      ------------------------------------------
      Initializing a standby can no longer cause gpinitsystem to exit early.
      Added extra logging/output about standby master status.
      Tell user at the end of gpinitsystem if gpinitstandby failed.
      ------------------------------------------
      Signed-off-by: NMarbin Tan <mtan@pivotal.io>
      6f0c85d6
    • N
      gpaddmirrors: verify heap_checksum is set consistently · ec59b312
      Nadeem Ghani 提交于
      This change adds a check to gpaddmirrors: First check if heap_checksum
      setting is consistent across cluster. If not, fail immediately, else
      continue with the normal workflow.
      Signed-off-by: NShoaib Lari <slari@pivotal.io>
      Signed-off-by: NMarbin Tan <mtan@pivotal.io>
      ec59b312
    • S
      Whitespace commit · 65f4f86d
      Shoaib Lari 提交于
      Signed-off-by: NNadeem Ghani <nghani@pivotal.io>
      65f4f86d
  15. 30 8月, 2017 6 次提交