1. 09 9月, 2019 3 次提交
  2. 07 9月, 2019 1 次提交
  3. 06 9月, 2019 4 次提交
    • D
      Remove incorrect parameter description from usage output · cd83f8d7
      Daniel Gustafsson 提交于
      Commit 6fa3bce8 repurposed the -S
      parameter making the existing use instead be --mirror-mode, but
      the help text remained. Remove the now incorrect usage entry.
      
      Reported by Github user boazhh in issue #8579
      Backported from master commit a398b437
      cd83f8d7
    • P
      Fix answer file of test sql/resgroup/resgroup_unassign_entrydb · 3909dfe7
      Paul Guo 提交于
      ci pipeline uses two segment nodes for resgroup testing which is different than
      ususal three segment node test configuration. Modifying the test to make it
      independent of segment numbers.
      
      cherry-picked from 89c55b08
      3909dfe7
    • P
      8e3cf17e
    • P
      Fix potential shared memory corruption in resource group slot management when... · 0277e960
      Paul Guo 提交于
      Fix potential shared memory corruption in resource group slot management when query involves entrydb.
      
      We've observed that when we terminate a query that involves entrydb, if QD
      detaches from a resource group before the entrydb backend does that in
      UnassignResGroup(), data corruption on shared slot pool could happen.  In a
      cassert enabled gpdb version, you could see below FATAL message as below when
      terminating the query using pg_terminate_backend().
      
      FATAL:  Unexpected internal error (resgroup.c:1545)
      DETAIL:  FailedAssertion("!(slot->nProcs == 0)", File: "resgroup.c", Line: 1545)
      HINT:  Process 9903 will wait for gp_debug_linger=120 seconds before termination.
      Note that its locks and other resources will not be released until then.
      
      While on product release that without cassert enabled some subsequent queries
      could lead to panic.
      
      We fix this by let the final process (either QD or entrydb process) do clean up
      when the nProcs reference number is zero. This is more robust and is less bug
      prone cross future code change and upstream merge.
      
      This patch refactors the related resource code a bit and also moves the fault
      inject related negative tests ahead so that we could capture some potential
      errors which happen later (typically the case in this patch).
      
      Besides, it fixes another panic caused by potential MySessionState NULL
      resetting (see code comment for details). That was revealed when running tests
      in my dev machine so it's a potential flaky testing part.
      Co-authored-by: NPaul Guo <pguo@pivotal.io>
      Co-authored-by: NNing Yu <nyu@pivotal.io>
      Co-authored-by: NGang Xiong <gxiong@pivotal.io>
      
      Cherry-picked from 8913827b
      0277e960
  4. 05 9月, 2019 4 次提交
  5. 04 9月, 2019 6 次提交
  6. 31 8月, 2019 2 次提交
  7. 30 8月, 2019 6 次提交
  8. 29 8月, 2019 3 次提交
    • D
      Docs - removing some stray Beta references · 131891f9
      David Yozie 提交于
      131891f9
    • C
      Fix crash when the qual under DynamicTableScan has a subplan · c4a3ce09
      Chris Hajas 提交于
      Consider the query below:
      
      ```
      test=# explain select * from foo, jazz where foo.c = jazz.e and jazz.f = 10 and a in (select b+1 from bar);
      						 QUERY PLAN
      --------------------------------------------------------------------------------------------------------------------
      Gather Motion 3:1  (slice4; segments: 3)  (cost=0.00..1324469.30 rows=1 width=20)
      ->  Hash Join  (cost=0.00..1324469.30 rows=1 width=20)
           Hash Cond: foo.c = jazz.e
           ->  Dynamic Table Scan on foo (dynamic scan id: 1)  (cost=0.00..1324038.29 rows=34 width=12)
      	   Filter: a = (b + 1) AND ((subplan))
      	   SubPlan 1
      	     ->  Materialize  (cost=0.00..431.00 rows=1 width=4)
      		   ->  Broadcast Motion 1:3  (slice2)  (cost=0.00..431.00 rows=3 width=4)
      			 ->  Limit  (cost=0.00..431.00 rows=1 width=4)
      			       ->  Gather Motion 3:1  (slice1; segments: 3)  (cost=0.00..431.00 rows=1 width=4)
      				     ->  Limit  (cost=0.00..431.00 rows=1 width=4)
      					   ->  Table Scan on bar  (cost=0.00..431.00 rows=34 width=4)
           ->  Hash  (cost=100.00..100.00 rows=34 width=4)
      	   ->  Partition Selector for foo (dynamic scan id: 1)  (cost=10.00..100.00 rows=34 width=4)
      		 ->  Broadcast Motion 3:3  (slice3; segments: 3)  (cost=0.00..431.00 rows=1 width=8)
      		       ->  Table Scan on jazz  (cost=0.00..431.00 rows=1 width=8)
      			     Filter: f = 10
      Optimizer status: PQO version 3.65.0
      (18 rows)
      ```
      
      Previously, since the subplan was in a qual, we did not populate the
      qual properly when executing a dynamic table scan node. Thus the
      subplan attribute in PlanState of the dynamic table scan was incorrectly
      set to NULL, causing a later crash.
      
      We now populate this similarly to how we do it for dynamic index/bitmap
      scans.
      Co-authored-by: NSambitesh Dash <sdash@pivotal.io>
      Co-authored-by: NChris Hajas <chajas@pivotal.io>
      Co-authored-by: NAshuka Xue <axue@pivotal.io>
      
      (cherry picked from commit 81a671f6)
      c4a3ce09
    • D
      Docs: update MADlib versions · dd250493
      David Yozie 提交于
      dd250493
  9. 27 8月, 2019 11 次提交