1. 16 4月, 2019 3 次提交
    • J
      UtilsTestCase: improve test reporting for flake · 48c8379d
      Jacob Champion 提交于
      test_RemoteOperation_logger_debug() has been flaking out on the CI
      pipeline, and there's no indication of what is going wrong. Replace the
      assertTrue() call, which gives no indication of the difference between
      actual and expected, with mock.assert_has_calls(), which will tell us
      exactly what the calls were in case of failure.
      
      It's possible that this will fix the flake entirely. The previous test
      implementation depended on logger.debug() to be called *first* with our
      expected output, but given the poor isolation of our global logger
      system, it's entirely possible that some other code occasionally calls
      debug(). (That this is an issue at all indicates that this isn't really
      a unit test, but that's not something to tackle here.) assert_has_calls()
      doesn't mind how many other calls happen as long as the one we're
      looking for is eventually made, and I think that matches the intent of
      the test better anyway.
      
      Backport to 6X_STABLE.
      
      (cherry picked from commit 0fe07f49)
      48c8379d
    • S
      gpmovemirrors: Don't delete data directories if they are same · 68c6b398
      Shoaib Lari 提交于
      In the case where the user wants to change the port of a mirror, but
      leave it in the same directory on the same host, gpmovemirrors was
      previously deleting the directory as part of the cleanup because it
      did not recognize that the old and new directories were the same.
      This commit adds a check to prevent that.
      
      This commit also logs a warning if the move_config_file contains
      identical attributes(host,port,data directory) for the old and new
      mirror.
      Co-authored-by: NJamie McAtamney <jmcatamney@pivotal.io>
      Co-authored-by: NShoaib Lari <slari@pivotal.io>
      Co-authored-by: NDavid Krieger <dkrieger@pivotal.io>
      (cherry picked from commit d15258a4)
      68c6b398
    • J
      gpmovemirrors: Remove filespace-related code · 411ad882
      Jamie McAtamney 提交于
      While actual logic relating to filespaces was already removed from gpmovemirrors
      in a previous commit, there were still some comments and dead code referencing
      filespaces, which this commit removes.
      Co-authored-by: NJamie McAtamney <jmcatamney@pivotal.io>
      Co-authored-by: NShoaib Lari <slari@pivotal.io>
      (cherry picked from commit b54840bc)
      411ad882
  2. 13 4月, 2019 1 次提交
  3. 11 4月, 2019 6 次提交
  4. 10 4月, 2019 1 次提交
  5. 09 4月, 2019 2 次提交
    • D
      Fix typo in gprestore documentation · a1f27819
      Daniel Gustafsson 提交于
      Backported from master commit 2b78a302
      
      Reported-by: Cyrille Lintz
      a1f27819
    • D
      Disallow joins between nested RECURSIVE clauses · ba70dbbd
      Daniel Gustafsson 提交于
      Joining nested REURSIVE clauses is planned as a join between
      two WorkTableScan nodes, which we currently cannot do. Detect
      and disallow for now until we have the required infrastructure
      to handle this class of queries. The below query is an example
      of this:
      
        WITH RECURSIVE r1 AS (
            SELECT 1 AS a
            UNION ALL
             (
                WITH RECURSIVE r2 AS (
                    SELECT 2 as b
                    UNION ALL
                    SELECT b FROM r1, r2
                )
                SELECT b FROM r2
            )
        )
        SELECT * FROM r1 LIMIT 1;
      
      In upstream PostgreSQL, the resulting plan exhibits the same
      behavior as in GPDB, but there is no restiction on WorkTableScan
      on the inner side of joins in PostgreSQL:
      
                                 QUERY PLAN
        -------------------------------------------------------------
         Limit
           CTE r1
             ->  Recursive Union
                   ->  Result
                   ->  CTE Scan on r2 r2_1
                         CTE r2
                           ->  Recursive Union
                                 ->  Result
                                 ->  Nested Loop
                                       ->  WorkTable Scan on r1 r1_1
                                       ->  WorkTable Scan on r2
           ->  CTE Scan on r1
        (12 rows)
      
      Backported from master commit e9c0e77a
      ba70dbbd
  6. 08 4月, 2019 8 次提交
  7. 06 4月, 2019 2 次提交
  8. 05 4月, 2019 10 次提交
    • D
      Fix LOCK_DEBUG in LWLock acquiring · c12b71e2
      Daniel Gustafsson 提交于
      Commit ea9df812 relaxes the requirement
      that all LWLocks are in a single array, which broke the LOCK_DEBUG
      code for trying to acquiring an LWLock. This is a meatball surgery
      attempt at making it at least compile and run, without trying to
      reinvent the old usecase.
      
      Minor tweaking of the code is also done to make LOCK_DEBUG cases be
      identified identically.
      
      Backported from master 3a1ced8f
      Reported-by: Simon Gao in Github issue #7251
      Reviewed-by: Ashwin Agrawal
      c12b71e2
    • L
      Add unzip module to ubuntu docker image · 2549a0fc
      Lav Jain 提交于
      2549a0fc
    • L
      Create a public dockerfile for compiling greenplum on ubuntu (#7330) · 8d557155
      Lav Jain 提交于
      * Create a public dockerfile for compiling gpdb on ubuntu
      * Create directory /usr/local/greenplum-db-devel for installing greenplum
      * Move current ubuntu files to ubuntu16_ppa. Update readme
      8d557155
    • C
      docs - remove ALTER SYSTEM reference page from docs (#7374) · 7ea8f396
      Chuck Litzell 提交于
      * docs - remove ALTER SYSTEM reference
      
      * Restore source for ALTER SYSTEM ref, but leave out of maps.
      
      * Add ALTER SYSTEM to list of unsupported PostgreSQL features
      7ea8f396
    • C
      Docs - removes replication port references (#7368) · 13dcd2bd
      Chuck Litzell 提交于
      * Docs - removes replication port references
      
      Also replaces gpstate -p command output with more recent version
      
      * add missing line break to example
      13dcd2bd
    • D
      Disable sanity assertion for itempointer offsetnumber · e74fc536
      Daniel Gustafsson 提交于
      Commit 99360f54 extended the offset
      numbers in the GIN posting list to 16 bits over upstream who use
      11 bits. This however means that the assertion around ip_posid is
      no longer valid as it's always true, causing a compiler warning:
      
      ginpostinglist.c:89:24: warning: result of comparison of constant
                                       65536 with expression of type
      								 'OffsetNumber' (aka 'unsigned short')
      								 is always true
      [-Wtautological-constant-out-of-range-compare]
      Assert(iptr->ip_posid < (1 << MaxHeapTuplesPerPageBits));
      ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      ../../../../src/include/c.h:784:10: note: expanded from macro 'Assert'
      Trap(!(condition), "FailedAssertion")
      ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      ../../../../src/include/c.h:766:28: note: expanded from macro 'Trap'
      if ((assert_enabled) && (condition))
      ^~~~~~~~~
      1 warning generated.
      
      Fix by commenting out the assertion with preprocessor blocks in an
      attempt to make future merge conflicts easier to resolve.
      
      A previous version of this patch was reviewed by Adam Berlin.
      e74fc536
    • A
      Lower the log level of the fts probe while unpacking response. · 0348582e
      Adam Berlin 提交于
      The level of TERSE or greater was set during development, we can lower
      this to DEBUG now that this feature has stablized.
      0348582e
    • A
      Remove addition of gpfdist_ssl test. · 05107512
      Adam Berlin 提交于
      It fails and appears to not be maintained when:
      
      --enable-gpfdist and --with-openssl are configured.
      05107512
    • D
      gpinitsystem: gpinitsystem_help reflects flag changes · ee7b5905
      David Krieger 提交于
      (cherry picked from commit 813528e7)
      ee7b5905
    • J
      gpinitsystem: Change flags for mirroring and standby datadir · 2710bc21
      Jamie McAtamney 提交于
      Because the gpinitstandby flag for passing in a standby master data directory
      was changed from -F to -S, this commit changes -F to -S in gpinitsystem to
      match.
      
      -S was already in use for specifying that the cluster should have its mirrors
      set up in spread configuration, so that flag is changed to --mirror-mode, which
      accepts the mirror mode ('group' or 'spread') as an argument.
      Co-authored-by: NJamie McAtamney <jmcatamney@pivotal.io>
      Co-authored-by: NMark Sliva <msliva@pivotal.io>
      (cherry picked from commit 6fa3bce8)
      2710bc21
  9. 04 4月, 2019 7 次提交