1. 29 3月, 2018 2 次提交
    • A
      Make gp_fts_probe_retries guc user facing. · 5ad527f0
      Ashwin Agrawal 提交于
      Not seeing reason for blocking visibility of this guc. Similar to all
      other fts gucs, its useful.
      5ad527f0
    • A
      CHECK_FOR_INTERRUPTS for infinite_loop fault type. · 06f3fb4d
      Ashwin Agrawal 提交于
      If infinite_loop fault is set and shut-down is requested, bail-out
      instead of waiting and needing forced kill. It was this way till
      commit ae760e25 removed the
      `IsFtsShudownRequested()` check. Didn't intentionaly change the
      suspend fault as it never had shut-down check and don't wish to change
      behavior of any tests using the same.
      06f3fb4d
  2. 28 3月, 2018 6 次提交
    • A
      Remove redundant distributed transaction state. · ecc217e8
      Asim R P 提交于
      The DTX_STATE_FORCED_COMMITTED was identical to
      DTX_STATE_INSERTED_COMMITTED.
      ecc217e8
    • A
      Cleanup CommitTransaction and related code and align closer to upstream · 01d88778
      Asim R P 提交于
      Remove a log message to indicate if a QE reader is writing an XLOG
      record.  Back in GPDB 4.3 when lazy XID feature didn't exist, a QE
      reader would be assigned a valid transaction ID.  That could lead to
      extending CLOG and generating XLOG.  This case no longer applies to
      GPDB.
      01d88778
    • A
      Avoid infinite loop in processCopyEndResults · 25bc3855
      Asim R P 提交于
      The command "COPY enumtest FROM stdin;" hit an infinite loop on merge
      branch.  Code indicates that the issue can happen on master as well.
      QD backend went into infinite loop when the connection was already
      closed from QE end.  The TCP connection was in CLOSE_WAIT state.
      Libpq connection status was CONNECTION_BAD and asyncStatus was
      PGASYNC_BUSY.
      
      Fix the infinite loop by checking libpq connection status in each
      iteration.
      25bc3855
    • K
      Bump gpbackup version to 1.0.2 · 88abdd0f
      Karen Huddleston 提交于
      Authored-by: NKaren Huddleston <khuddleston@pivotal.io>
      88abdd0f
    • B
      Add GUC to enable / disable Join Associativity in ORCA · bb68b5c6
      Bhuvnesh Chaudhary 提交于
      This commit introduces a GUC `optimizer_enable_associativity` to enable
      or disable join associativity. Join Associativity increases the search
      space as it increases the numbers of groups to represent a join and its
      associative counterpart, i.e (A X B) X C ~ A X (B X C).
      
      This patch, by default disables join associativity transform, if
      required the users can enable the transform. There are few plan changes
      which are observed due to this change. However, further evaluation of
      the plan changes revealed that even though the cost of the the resulting
      plan has increased, the execution time went down by 1-2 seconds.
      
      For the queries with plan changes, there are 3 tables which are joined,
      i.e A, B and C. If we increase the number of tuples returned by the
      subquery which forms A', we see the old plan. But if the tuples in
      relation B and C is significantly higher, the plan changes with the
      patch yeild faster execution times. This suggests that we may need to
      tune the cost model to adapt to such cases.
      
      The plan cost increase is 1000x as compared to the old plans, this 1000x
      factor is due to the value of `optimizer_nestloop_factor=1024`, if you
      set the value of the GUC `optimizer_nestloop_factor=1`, the plan before
      or after the patch remains same.
      bb68b5c6
    • A
      Use gpxlogloc data type in missing_xlog test. · 6f1353c7
      Ashwin Agrawal 提交于
      Thank You Heikki for pointing out the presence of `gpxlogloc` data type to
      compare xlog locations instead of exiting hacks in test.
      6f1353c7
  3. 27 3月, 2018 5 次提交
  4. 24 3月, 2018 2 次提交
    • G
      Apply DEB_BUILD_OPTIONS for debuild command · c3093daa
      Goutam Tadi 提交于
      - Use nocheck to skip `make check` in test
      - Use parallel to use 6 parallel processes
      c3093daa
    • S
      Remove FIXMEs from create_view test · 997f67d0
      Shreedhar Hardikar 提交于
      Although standard SQL ignores the ORDER BYs in views (and sub-selects),
      PostgreSQL and thus GPDB preserves them.
      
      For the query in create_view.sql, the expected output will be sorted
      according to the ORDER BY clause in the view definition. But, if the
      rows come in the wrong order from the view then gpdiff.pl will not
      report it as an error.
      
      Remove the FIXME in this file, since there is no way to enforce the
      order via gpdiff.pl.
      
      Instead, to test the output row ordering, this commit modifies the
      queries in gp_create_view.sql and adds an order-sensitive operator -
      row_number().
      Signed-off-by: NDhanashree Kashid <dkashid@pivotal.io>
      997f67d0
  5. 23 3月, 2018 6 次提交
  6. 22 3月, 2018 17 次提交
    • R
      d5fb628f
    • P
      Fix SIGSEGV issue when freeing gangs · 772bca3f
      Pengzhou Tang 提交于
      Previously, to avoid the leak of the gang if someone terminates
      the query in the middle of gang creation, we added a global pointer
      named CurrentGangCreating so the partially created gang can also be
      destroyed at the end of the transaction. However, the memory context
      named GangContext where CurrentGangCreating was created may be reset
      before CurrentGangCreating is actually destroyed and a SIGSEGV may
      occur. So this commit makes sure that CurrentGangCreating is destroyed
      ahead of other created gangs and the reset of GangContext.
      772bca3f
    • A
      Add info to help debug if missing_xlog test fails. · ee722999
      Ashwin Agrawal 提交于
      ee722999
    • K
      ci: split icw_extensions_gpcloud by platform · f4965548
      Kris Macoskey 提交于
      f4965548
    • K
      ci: remove icw gate and restructure passing conditions · 46fe563a
      Kris Macoskey 提交于
      Allows the compile and icw tests for each platform to pass
      and fail independently of other platforms.
      
      The gate jobs were born out of necessity to handle infrastructure issues
      with concourse. Now that infrastructure issues have been stabilized,
      it's time to review the layout of the pipeline again.
      
      This commit removes the icw_start_gate job that multiplexed a passing
      condition from all of the compile jobs that sat in front of every icw
      job. This was not desirable following a longer running
      issue with the compilation on one platform, ubuntu16, that then blocked
      icw tests on the remaining platforms.
      
      Replacing the passing condition of icw_start_gate on each icw job is the
      corresponding compilation job for the test, based on platform.
      
      E.G.
      
      This:
                          (blocks)          (blocks)
      compile_gpdb_centos6  -> gate_icw_start -> icw_planner_centos6
      compile_gpdb_ubuntu16 ->                -> icw_planner_ubuntu16
      
      Is now this:
      
                          (blocks)
      compile_gpdb_centos6  -> icw_planner_centos6
                          (blocks)
      compile_gpdb_ubuntu16 -> icw_planner_ubuntu16
      Signed-off-by: NTaylor Vesely <tvesely@pivotal.io>
      46fe563a
    • L
      docs - fix incorrect R version reference (#4734) · 4a65bde9
      Lisa Owen 提交于
      4a65bde9
    • A
      Remove not supported concurrent bitmap index test. · bb5b9160
      Ashwin Agrawal 提交于
      Concurrent index builds are not supoorted in greenplum. Seems there exist GUC
      gp_create_index_concurrently under which we still allow the creations. But still
      with the same for bitmap indexes CONCURRENTLY cannot be supported.
      
      This test keeps failing randomly in CI due to "WARNING: ignoring query cancel
      request for synchronous replication to ensure cluster consistency." This happens
      as during bitmap index creation it locally commits on each segment and then one
      of the segment errors during index build with "ERROR: CONCURRENTLY is not
      supported when creating bitmap indexes", issues cancelation message to other
      segments.
      bb5b9160
    • A
      Bump number of retries in missing_xlog test. · 735ca6d1
      Ashwin Agrawal 提交于
      Failures are seen in CI randomly where
      checkpoint_and_wait_for_replication_replay return false, but when check on the
      box later the primaries and mirrors are in sync. So, seems its timing related
      failures maybe sometimes containers are running slow causing delays. This test
      is for checking functionality and not performance, so avoiding flaky failures is
      better with increased number of retries, which in general shouldn't affect
      runtime.
      735ca6d1
    • D
      Fix wrong results for queries of type NOT (select <>) · a0a38df9
      Dhanashree Kashid 提交于
      For queries of the form "NOT (subselect)", planner lost the "NOT" operator
      during the initial pull-up in pull_up_sublinks_qual_recurse() which resulted in
      incorrect filter and hence wrong results. Inside
      pull_up_sublinks_qual_recurse(), when a qual contains NOT, we check if sublink
      type is any one of these: EXISTS, ANY or ALL, and invoke appropriate sublink
      pull up routines. In case of qual of the form "NOT (SELECT <>)" the sublink
      type is EXPR; hence we recurse into the argument of NOT; at which point we
      lose the information about NOT operator.
      
      This commit fixes the issue by returning the node unmodified when the argument
      of NOT is an EXPR sublink. The EXPR sublink, later gets pulled up by
      preprocess_qual_conditions() wherein, pull_up_sublinks() is invoked again to
      handle sublinks in an expression.
      Signed-off-by: NSambitesh Dash <sdash@pivotal.io>
      a0a38df9
    • M
      Remove GPDB_84_MERGE_FIXME from outfuncs.c · 30271024
      Melanie Plageman 提交于
      The pseudocols field was added to RangeTblEntry to avoid duplicates in the
      target list. When the field was added, a WRITE_NODE_FIELD was added in
      _outRangeTblEntry(), but a corresponding READ_NODE_FIELD was not added in the
      _readRangeTblEntry(). Additionally, this field was not added to the readfast
      and outfast functions either since this field was not used after the planning
      stage and did not have to be dispatched to the QE's.  Later, in
      fd6741f9, a corresponding READ_NODE_FIELD was
      added along with a FIXME to decide whether or not to serialize/deserialize.
      After confirming that this field is not used after planning, we have decided to
      remove any serialization/deserialization of the pseudocols member of
      RangeTblEntry
      The pseudocols member of RangeTblEntry is a list of CdbRelColumnInfo. This
      structure was added in the same original commit. An _outCdbRelColumnInfo() was
      added for this structure as well. Similarly, no corresponding
      _readCdbRelColumnInfo() was added. This data structure is only used for making
      pseudocols, so we have also removed the _outCdbRelColumnInfo() function.
      Signed-off-by: NAbhijit Subramanya <asubramanya@pivotal.io>
      30271024
    • T
      Rename GPDB specific waiting status API · aad8cde8
      Taylor Vesely 提交于
      The GPDB specific API for pgstat_report_waiting() accepts waiting
      reason unlike the upstream counterpart, which accepts only a boolean
      flag.  Renaming the API to gpstat_report_waiting() allows us to catch
      new uses of the API introduced from upstream merges.
      Co-authored-by: NAsim R P <apraveen@pivotal.io>
      aad8cde8
    • T
      Fix ps display issues · f26b5799
      Taylor Vesely 提交于
      Without this change, ps display of postmaster child processes may get
      mangled.  E.g.
      
      postgres: 15432, gpadmin isolation2test [local] con14 cmd52 con14 cm?~??????X???
      
      This change uses the GPDB specific function get_real_act_ps_display()
      to get the ps display string before it is modified.
      
      This change also sets Gp_role of FTS daemon process to utility instead
      of the default value of dispatch.  That prevents appending "conXXX" to
      FTS daemon's ps display.
      Co-authored-by: NAsim R P <apraveen@pivotal.io>
      f26b5799
    • T
      Modify system files as root · d97eee65
      Todd Sedano 提交于
      Add missing sudo commands
      
      [ci skip]
      d97eee65
    • T
      Copy authorized_keys into ~/.ssh · 68d4847b
      Todd Sedano 提交于
      [ci skip]
      68d4847b
    • A
      PANIC in debug for "local snapshot's xmin is older". · 34bd7699
      Ashwin Agrawal 提交于
      To help debug the issue, PANIC incase encounter this shouldn't happen case.
      34bd7699
    • L
      6b1c7fc2
    • M
  7. 21 3月, 2018 2 次提交