1. 09 8月, 2017 19 次提交
    • P
      Do not include gp-libpq-fe.h and gp-libpq-int.h in cdbconn.h · cf7cddf7
      Pengzhou Tang 提交于
      The whole cdb directory was shipped to end users and all header files
      that cdb*.h included are also need to be shipped to make checkinc.py
      pass. However, exposing gp_libpq_fe/*.h will confuse customer because
      they are almost the same as libpq/*, as Heikki's suggestion, we should
      keep gp_libpq_fe/* unchanged. So to make system work, we include
      gp-libpg-fe.h and gp-libpq-int.h directly in c files that need them
      cf7cddf7
    • P
      Install src/include/cdb server-side dev · ae759a5d
      Pengzhou Tang 提交于
      Formarly, GPDB are not allowed to expose gpdb-specified headers in
      cdb to the end users, so some public headers depend
      on those headers need to do some additional work like re-typedef,
      adjusting the header order in c files to pass checkinc.py. Now the
      limitation is unnecessary, so we expose them too for relief.
      cdbicudpfaultinjection.h may include sys/poll.h, so add it to the
      hard code standard includes
      ae759a5d
    • P
      Add debug info for interconnect network timeout · 9a9cd48b
      Pengzhou Tang 提交于
      It was very difficult to verify if interconnect is stucked in resending
      phase or if there is udp resending latency within interconnect. To improve
      it, this commit record a debug message every Gp_interconnect_debug_retry_interval
      times when gp_log_interconnect is set to DEBUG.
      9a9cd48b
    • P
      Fix intermittent testcase as_alias · e2e852d4
      Pengzhou Tang 提交于
      This case assumed that 'now' in bellow queries will produce
      different results.
      -- insert into xxx values (timestamp(2) without time zone 'now');
      -- select timestamp(2) without time zone 'now';
      However, the results are undetermined and may be equal on powerful
      agents, the test is all about as alias so it's ok to add 2 seconds
      to the second 'now' to guarantee they are never equal.
      e2e852d4
    • B
      [#149699023] Handle interrupts in ORCA to avoid crashes · 17322684
      Bhuvnesh Chaudhary 提交于
      In ORCA, we donot process interrupts during planning stage, however
      if there are elog/ereport (which further calls errfinish) statements to
      print additional messages we prematurely exit out the planning stage
      without cleaning up the memory pools leading to inconsistent memory pool
      state. This results in crashes for the subsequent queries.
      
      This commit fixes the issue by handling interrupts while
      printing messages using elog/ereport in ORCA.
      Signed-off-by: NEkta Khanna <ekhanna@pivotal.io>
      17322684
    • M
      gpinitsystem: Fix gpinitsystem -I with mixed case names · ae86afac
      Marbin Tan 提交于
      We are hitting an issue where gpinitsystem sends a gpstop command that
      has the data directory in all lower case. This causes an issue in
      Linux, but is fine with macOS; linux platforms are case sensitive vs
      macOS is not.
      
      Remove the lower casing part of the code as it doesn't seem necessary.
      gpinitsystem -c command eventually overwrites the SEG_PREFIX variable in a
      different function to use the mixed case, while the gpinitsystem -I does not.
      
      Fix: keep the mixed case segment names
      ae86afac
    • X
      Add behave test for gpinitsystem to CI · 3e96667f
      Xin Zhang 提交于
      Signed-off-by: NMarbin Tan <mtan@pivotal.io>
      3e96667f
    • S
      Adds HEAP_CHECKSUM functionality to gpinitsystem · 71c62b2c
      Shoaib Lari 提交于
      gpinitsystem did not check for HEAP_CHECKSUM in the cluster
      configuration file with a -c switch. This commit accepts the
      HEAP_CHECKSUM setting, and additionally exports it to an
      output_configuration_file when specified with the -O switch.
      
      This commit also adds behave tests for the above, and for
      reading the input_configuration_file with the -I switch.
      Signed-off-by: NLarry Hamel <lhamel@pivotal.io>
      Signed-off-by: NXin Zhang <xzhang@pivotal.io>
      71c62b2c
    • L
      add MM_analyzedb task to concourse · 213aaff2
      Larry Hamel 提交于
      Signed-off-by: NNadeem Ghani <nghani@pivotal.io>
      213aaff2
    • N
      Synchronize writes for concurrent analyzedb runs · 75e0070d
      Nadeem Ghani 提交于
      Bug fix for a scenario with multiple analyzedb processes running
      concurrently: the resulting report files were incorrect and/or
      overwritten.
      
      This commit adds a lock (a file semaphore) for synchronization between analyzedb processes.
      Each process will acquire an exclusive lock, per database, read the most recent report
      files (possibly written by concurrently running analyzedb processes) and
      incorporate that latest information into its own report.
      Signed-off-by: NLarry Hamel <lhamel@pivotal.io>
      75e0070d
    • L
      Whitespace reformat and handle lint warnings · 3040c387
      Larry Hamel 提交于
      Signed-off-by: NNadeem Ghani <nghani@pivotal.io>
      Signed-off-by: NLarry Hamel <lhamel@pivotal.io>
      3040c387
    • H
      Whitespace fixes, to remove unnecessary differences from upstream. · a14fa2f5
      Heikki Linnakangas 提交于
      Will hopefully reduce silly merge conflicts in the future.
      a14fa2f5
    • H
      Remove list_find_* functions. · 0340f543
      Heikki Linnakangas 提交于
      They don't exist in the upstream. All but one of the callers actually just
      needed list_member_*().
      0340f543
    • H
      Move function prototype to where it belongs. · 15ae5084
      Heikki Linnakangas 提交于
      These functions are defined in cdbpartition.c, not tablecmds.c. The
      prototypes should be in matching header file.
      15ae5084
    • H
      Remove unnecessary #includes · 4d573999
      Heikki Linnakangas 提交于
      4d573999
    • H
      Remove unused function. · 9637bb1d
      Heikki Linnakangas 提交于
      9637bb1d
    • H
      Remove unnecessary forward declarations. · 06719101
      Heikki Linnakangas 提交于
      To match the upstream code.
      06719101
    • H
      Set Natts_pg_appendonly correctly. · 25001e8a
      Heikki Linnakangas 提交于
      Seems harmless, in this direction, but let's be tidy.
      25001e8a
    • H
      Replace special "QE details" protocol message with standard ParameterStatus msg. · d85257f7
      Heikki Linnakangas 提交于
      This gets rid of the GPDB-specific "QE details" message, that was only sent
      once at QE backend startup, to notify the QD about the motion listener port
      of the QE backend. Use a standard ParameterStatus message instead, pretending
      that there is a GUC called "qe_listener_port". This reduces the difference
      between the gp_libpq_fe copy of libpq, and libpq proper. I have a dream that
      one day we will start using the standard libpq also for QD-QE communication,
      and get rid of the special gp_libpq_fe copy altogether, and this is a small
      step in that direction.
      
      In the passing, change the type of Gp_listener_port variable from signed to
      unsigned. Gp_listener_port actually holds two values: the TCP and UDP
      listener ports, and there is bit-shifting code to store those two 16-bit
      port numbers in the single 32-bit integer. But the bit-shifting was a bit
      iffy, on a signed integer. Making it unsigned makes it more clear what's
      happening.
      d85257f7
  2. 08 8月, 2017 14 次提交
  3. 07 8月, 2017 5 次提交
  4. 05 8月, 2017 2 次提交