1. 29 6月, 2017 3 次提交
    • T
      gpperfmon: refactor quantum name to be more explicit · 607c594a
      Tushar Dadlani 提交于
      Signed-off-by: NMarbin Tan <mtan@pivotal.io>
      607c594a
    • M
      gpperfmon: refactor to make 'skew' calculation more readable · 411d3c82
      Marbin Tan 提交于
      Coefficient of Variation Calculation
      
      Coefficient of variation is the standard deviation divided by the mean.
      
      We're using the term skew very loosely in our description, as we're
      actually calculating coefficient of variation.
      
      With coefficient of variation, we can tell how dispersed the data points are across
      the segments. The higher the coefficient of variation, the more
      non-uniform the distribution of the data in cluster.
      
      Coefficient of variation is unitless so it could be used for comparing
      different clusters and how they are performing relative to each other.
      
      CPU Skew calculation:
      mean(cpu) = sum(per segment cpu cycle) / sum(segments)
      variance(cpu) = sqrt( sum(((cpu(segment) - mean(cpu))^2) ... ) / sum(segments) )
      std_dev(cpu) = sqrt(variance(cpu))
      skew(cpu) = coeffecient of variation = std_dev(cpu)/mean(cpu)
      
      Row out Skew calculation:
      mean(row) = sum(per segment row) / sum(segments)
      variance(row) = sqrt( sum(((row(segment) - mean(row))^2) ... ) / sum(segments) )
      std_dev(row) = sqrt(variance(row))
      skew(row) = coeffecient of variation = std_dev(row)/mean(row)
      Signed-off-by: NTushar Dadlani <tdadlani@pivotal.io>
      411d3c82
    • M
      behave: decouple substeps within a gpperfmon step · ea5b0504
      Marbin Tan 提交于
      The behave test is intermittently failing because the substep is trying
      to install gpperfmon eventhough gpperfmon is already installed. Trying
      to figure out which part of failing the correct value is hard with the
      current setup.
      Decouple the checks to determine which part is actually failing.
      Signed-off-by: NTushar Dadlani <tdadlani@pivotal.io>
      ea5b0504
  2. 28 6月, 2017 14 次提交
  3. 27 6月, 2017 9 次提交
  4. 24 6月, 2017 14 次提交
    • T
      Creates installation directions for macOS · e4f357f5
      Todd Sedano 提交于
      e4f357f5
    • C
      Restore statistics file in gpdbrestore --restore-stats with ddboost · 481cdcef
      Chris Hajas 提交于
      The gp_statsistics prefix was not included in the list of files to
      restore from ddboost, causing restore to fail when gpdbrestore
      --restore-stats was used.
      481cdcef
    • C
      Fix gpcrondump to correctly backup ordered aggregates · 7256defe
      Chris Hajas 提交于
      This functionality was included with pg_dump, but was missing from
      gpcrondump.
      7256defe
    • J
      Update timestamps, correct example (#2682) · a638dfee
      Jane Beckman 提交于
      a638dfee
    • A
      5c3be9a0
    • A
      Delete files on mirror for AO/CO tables. · 99af62c4
      Ashwin Agrawal 提交于
      With --enable-segwalrep, mirror leverages replay of xl_mm_fs_obj records to
      delete files. Code was not correctly handling appendonly tables as was calling
      `smgrdounlink()`, which is for heap tables or indexes. For AO/CO tables, need to
      perform drop of specific single file mentioned in xlog record, which is
      performed by `MirroredAppendOnly_Drop()`. Without this code currently files like
      <relfilenode>.127, <relfilenode>.129,... etc get left behind on mirror. The
      problem was not seen so far as master never stores data for AO/CO tables hence
      these files are not created on master. Only when now we start enabling wal
      replication for segments this is required.
      99af62c4
    • A
      Change DEBUG1 to LOG for messages under Debug_print_qd_mirroring. · b938a87b
      Ashwin Agrawal 提交于
      Helpful for debugging to set GUC Debug_print_qd_mirroring but the message were
      with DEBUG1. Just enabling and disabling is guc enough to control the logging
      don't need second level.
      b938a87b
    • A
      Enable xlogging for create fs objects on segments. · 9efec6b2
      Ashwin Agrawal 提交于
      Incase of --enable-segwalrep, write-ahead logging should not be skipped for
      anything, as it relies on that mechanism to construct the things on
      mirror. Write-ahead logging for these pieces were only enabled performed for
      master, with this commit gets enabled for segments as well.
      9efec6b2
    • A
      Make get_filespaces_to_send() work for QEs for default filespaces. · a758cb32
      Ashwin Agrawal 提交于
      Currently, get_filespaces_to_send() only works for QD. To enable pg_basebackup
      and wal replication for QEs, this function must also work on QEs. This function
      relies on pg_filespace_entry table to provide information, as its only available
      on QD currently can't be leveraged. Hence just enabling basic support for QEs
      for default filespace. Supporting user defined filespaces and non-default
      transaction filespace, will be dealt incrementally later.
      a758cb32
    • J
      Add gpcheckcat behave test for dependency check · fbe35fe5
      Jimmy Yih 提交于
      In this behave test, we delete some entries in pg_depend and in some
      relative catalog tables to simulate a corruption around pg_depend. The
      gpcheckcat tool should then flag these down.
      fbe35fe5
    • J
      Update gpcheckcat dependency check · 6375e9bc
      Jimmy Yih 提交于
      The current gpcheckcat dependency check only checked for extra
      pg_depend entries where a pg_depend entry's objid or refobjid did not
      exist as an OID of any catalog table with hasoids set. We also need to
      check the reverse scenario where a catalog entry is missing an entry
      in pg_depend. This particular scenario is difficult to flag due to
      catalog entries having multiple unique pg_depend references or are
      created later from a query that may add dependency (e.g. granting
      ownership of a database to a certain user). Therefore, we add a very
      basic check only against catalog tables that immediately create
      dependencies upon its relative query.
      6375e9bc
    • J
      Change gpcheckcat missing/extra check to include pg_depend. · 4bdc7e45
      Jimmy Yih 提交于
      We did not check for missing or extra pg_depend entries across the
      cluster during gpcheckcat. We would be unaware of scenarios where a
      pg_depend entry went missing and the object that used that dependency
      is dropped. Those scenarios could lead to leftover catalog entries and
      prevent some simple CREATE statements.
      4bdc7e45
    • J
      Fix gpcheckcat output · 843b2109
      Jimmy Yih 提交于
      As gpcheckcat builds its mapping of catalog issues, it can flag
      objects whose parents no longer exist (e.g. a toast table left over
      after dropping a table). When these get caught, gpcheckcat will
      unfortunately error out on the reporting step. To prevent erroring
      out, we just check for None in the RelationObject's vars during
      reporting.
      
      Another issue that is fixed is the repetitive reporting of issues on
      the testing's current database following testing of a different
      database. The catalog issues reported were invalid for the current
      database and were actually issues from the previous database that was
      checked. This was caused by the improper resetting of the GPObjects
      and GPObjectGraph global dictionaries. To fix the issue, we properly
      use the clear() function to reuse the global variables.
      843b2109
    • F
      Stop enabling codegen in PR pipeline · fd8854bf
      Foyzur Rahman and Jesse Zhang 提交于
      [#147538353]
      fd8854bf