[jira] [Created] (HAWQ-1321) failNames wrongly uses memory context to build message when ANALYZE failed

2017-02-09 Thread Yi Jin (JIRA)
Yi Jin created HAWQ-1321:


 Summary: failNames wrongly uses memory context to build message 
when ANALYZE failed
 Key: HAWQ-1321
 URL: https://issues.apache.org/jira/browse/HAWQ-1321
 Project: Apache HAWQ
  Issue Type: Bug
  Components: Core
Reporter: Yi Jin
Assignee: Ed Espino
 Fix For: 2.2.0.0-incubating


I find one bug exist in generating error message for ANALYZE when the message 
size is large. 

In analyzeStmt(), there is a variable called failNames. It is initialized in 
caller's memory context, but it repallocs memory in relation context, and it is 
freed in statement context. This is bug of wrongly using memory context. when 
the relation and statement context are dropped at then end of function 
analyzeStmt(), pat of its content will be flushed with 0. This explain why 
another block's header was randomly wiped out in the bug.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


Build failed in Jenkins: HAWQ-rat #40

2017-02-09 Thread Apache Jenkins Server
See 

Changes:

[wlin] HAWQ-1318. Fix the bug of cannot start/stop master successfully if

--
Started by GitHub push by asfgit
[EnvInject] - Loading node environment variables.
Building remotely on H10 (ubuntu) in workspace 

 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url https://github.com/apache/incubator-hawq.git # 
 > timeout=10
Fetching upstream changes from https://github.com/apache/incubator-hawq.git
 > git --version # timeout=10
 > git -c core.askpass=true fetch --tags --progress 
 > https://github.com/apache/incubator-hawq.git 
 > +refs/heads/*:refs/remotes/origin/*
 > git rev-parse origin/master^{commit} # timeout=10
Checking out Revision 63c856280c1fea655f99a9aea2c2196116cc2ab3 (origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 63c856280c1fea655f99a9aea2c2196116cc2ab3
 > git rev-list 8c9b45a40ec55bd7ad1589de894962aaf1540f3a # timeout=10
[HAWQ-rat] $ /home/jenkins/tools/maven/apache-maven-3.0.5/bin/mvn 
org.apache.rat:apache-rat-plugin:0.12:check
[INFO] Scanning for projects...
[INFO] 
[INFO] 
[INFO] Building hawq 2.1
[INFO] 
[INFO] 
[INFO] --- apache-rat-plugin:0.12:check (default-cli) @ hawq ---
[INFO] Added 1 additional default licenses.
[INFO] Enabled default license matchers.
[INFO] Added 2 custom approved licenses.
[INFO] Will parse SCM ignores for exclusions...
[INFO] Parsing exclusions from 

[INFO] Finished adding exclusions from SCM ignore files.
[INFO] 102 implicit excludes (use -debug for more details).
[INFO] Exclude: tools/bin/src/stream/*
[INFO] Exclude: tools/bin/pythonSrc/PyGreSQL-4.0/**
[INFO] Exclude: tools/bin/pythonSrc/lockfile-0.9.1/**
[INFO] Exclude: tools/bin/pythonSrc/PSI-0.3b2_gp/**
[INFO] Exclude: tools/bin/ext/simplejson/**
[INFO] Exclude: tools/bin/ext/yaml/**
[INFO] Exclude: depends/libhdfs3/CMake/**
[INFO] Exclude: depends/libyarn/CMake/**
[INFO] Exclude: tools/bin/pythonSrc/pychecker-0.8.18/**
[INFO] Exclude: tools/bin/pythonSrc/unittest2-0.5.1/**
[INFO] Exclude: tools/bin/ext/figleaf/**
[INFO] Exclude: tools/bin/ext/pg8000/**
[INFO] Exclude: src/include/port/win32_msvc/bzlib.h
[INFO] Exclude: depends/thirdparty/googletest/**
[INFO] Exclude: contrib/orafce/*
[INFO] Exclude: tools/bin/lib/pexpect.py
[INFO] Exclude: tools/bin/pythonSrc/pexpect-4.2/**
[INFO] Exclude: tools/bin/pythonSrc/ptyprocess-0.5.1/**
[INFO] Exclude: src/bin/gpfdist/src/gpfdist/glob.c
[INFO] Exclude: src/bin/gpfdist/src/gpfdist/include/glob.h
[INFO] Exclude: src/include/port/win32_msvc/glob.h
[INFO] Exclude: aclocal.m4
[INFO] Exclude: GNUmakefile.in
[INFO] Exclude: configure.in
[INFO] Exclude: configure
[INFO] Exclude: Makefile
[INFO] Exclude: config/*
[INFO] Exclude: src/makefiles/*
[INFO] Exclude: src/DEVELOPERS
[INFO] Exclude: src/backend/catalog/Makefile
[INFO] Exclude: src/backend/port/beos/*.c
[INFO] Exclude: src/backend/port/tas/*.s
[INFO] Exclude: src/backend/regex/re_syntax.n
[INFO] Exclude: src/backend/utils/mb/conversion_procs/regress_epilogue
[INFO] Exclude: src/backend/utils/mb/conversion_procs/regress_prolog
[INFO] Exclude: src/backend/utils/mb/Unicode/ISO10646-GB18030.TXT
[INFO] Exclude: src/backend/utils/misc/check_guc
[INFO] Exclude: src/backend/port/hpux/tas.c.template
[INFO] Exclude: src/backend/utils/mb/conversion_procs/proc.mk
[INFO] Exclude: src/include/pg_config.h.win32
[INFO] Exclude: src/bin/scripts/common.h
[INFO] Exclude: src/include/pg_config.h.in
[INFO] Exclude: src/bin/initdb/*
[INFO] Exclude: src/bin/initlocation/*
[INFO] Exclude: src/bin/ipcclean/*
[INFO] Exclude: src/bin/pg_*/**/*
[INFO] Exclude: src/bin/psql/**/*
[INFO] Exclude: src/bin/scripts/*.c
[INFO] Exclude: src/interfaces/**/*
[INFO] Exclude: src/tools/**/*
[INFO] Exclude: src/tutorial/*
[INFO] Exclude: src/pl/**/*
[INFO] Exclude: src/port/*
[INFO] Exclude: src/template/*
[INFO] Exclude: src/test/**/*
[INFO] Exclude: src/timezone/**/*
[INFO] Exclude: doc/src/sgml/fixrtf
[INFO] Exclude: doc/**/*.sgml
[INFO] Exclude: contrib/pgcrypto/*
[INFO] Exclude: depends/libhdfs3/test/data/*
[INFO] Exclude: depends/libhdfs3/debian/**
[INFO] Exclude: depends/libyarn/test/data/*
[INFO] Exclude: 
contrib/hawq-hadoop/hawq-mapreduce-common/src/test/resources/**/*.yaml
[INFO] Exclude: contrib/hawq-hadoop/hawq-mapreduce-tool/test-data/**/*.yaml
[INFO] Exclude: 
contrib/hawq-hadoop/hawq-mapreduce-tool/src/test/resources/dataset
[INFO] Exclude: contrib/hawq-ambari-plugin/build.properties
[INFO] Exclude: contrib/hawq-ambari-plugin/README.md
[INFO] Exclude: src/backend/access/index/caql.files
[INFO] Exclude: 

[GitHub] incubator-hawq-docs pull request #94: HAWQ-1304 - multiple doc changes for P...

2017-02-09 Thread lisakowen
Github user lisakowen closed the pull request at:

https://github.com/apache/incubator-hawq-docs/pull/94


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[jira] [Created] (HAWQ-1319) Remove jar files introduced with HAWQ-922

2017-02-09 Thread Ed Espino (JIRA)
Ed Espino created HAWQ-1319:
---

 Summary: Remove jar files introduced with HAWQ-922
 Key: HAWQ-1319
 URL: https://issues.apache.org/jira/browse/HAWQ-1319
 Project: Apache HAWQ
  Issue Type: Task
  Components: Build
Reporter: Ed Espino
Assignee: Ed Espino


The following twoo jar files were introduce with HAWQ-922:
* src/test/feature/UDF/sql/PLJavaAdd.jar
* src/test/feature/UDF/sql/PLJavauAdd.jar

Alan Gates identified these files during his IPMC review for Apache HAWQ 
2.1.0.0 RC3.

These files were missed by our RAT check due to the fact the "src/test" 
directory is explicitly excluded (src/test/**/*).  To avoid 
this in the future, this should be updated to exclude only the files necessary 
(example: binary test files).

The source is readily available in the same directory and these jar files 
should be removed.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Created] (HAWQ-1318) Can't start/stop master succesfully if ranger is enable and with a wrong RPS address

2017-02-09 Thread Lin Wen (JIRA)
Lin Wen created HAWQ-1318:
-

 Summary: Can't start/stop master succesfully if ranger is enable 
and with a wrong RPS address
 Key: HAWQ-1318
 URL: https://issues.apache.org/jira/browse/HAWQ-1318
 Project: Apache HAWQ
  Issue Type: Bug
  Components: Security
Reporter: Lin Wen
Assignee: Ed Espino


If ranger enable and with a wrong RPS address, hawq can start but can't 
start/stop succesfully.

Lins-MacBook-Pro:apache-hawq linw$ hawq stop cluster -a
20170209:10:21:51:043784 hawq_stop:Lins-MacBook-Pro:linw-[INFO]:-Prepare to do 
'hawq stop'
20170209:10:21:51:043784 hawq_stop:Lins-MacBook-Pro:linw-[INFO]:-You can find 
log in:
20170209:10:21:51:043784 
hawq_stop:Lins-MacBook-Pro:linw-[INFO]:-/Users/linw/hawqAdminLogs/hawq_stop_20170209.log
20170209:10:21:51:043784 hawq_stop:Lins-MacBook-Pro:linw-[INFO]:-GPHOME is set 
to:
20170209:10:21:51:043784 
hawq_stop:Lins-MacBook-Pro:linw-[INFO]:-/Users/linw/hawq-bin
20170209:10:21:51:043784 hawq_stop:Lins-MacBook-Pro:linw-[INFO]:-Stop hawq with 
args: ['stop', 'cluster']
20170209:10:21:51:043784 hawq_stop:Lins-MacBook-Pro:linw-[INFO]:-No standby 
host configured
20170209:10:21:51:043784 hawq_stop:Lins-MacBook-Pro:linw-[INFO]:-Stop hawq 
cluster
20170209:10:22:22:043784 hawq_stop:Lins-MacBook-Pro:linw-[ERROR]:-Failed to 
connect to the running database, please check master status
20170209:10:22:22:043784 hawq_stop:Lins-MacBook-Pro:linw-[ERROR]:-Or you can 
check hawq stop --help for other stop options

 501 43719 1   0 10:20AM ?? 0:00.58 
/Users/linw/hawq-bin/bin/postgres -D /Users/linw/hawq-data/masterdd -i -M 
master -p 5432 --silent-mode=true
  501 43721 43719   0 10:20AM ?? 0:00.02 postgres: port  5432, master 
logger process
  501 43724 43719   0 10:20AM ?? 0:00.01 postgres: port  5432, stats 
collector process
  501 43725 43719   0 10:20AM ?? 0:00.07 postgres: port  5432, writer 
process
  501 43726 43719   0 10:20AM ?? 0:00.01 postgres: port  5432, 
checkpoint process
  501 43727 43719   0 10:20AM ?? 0:00.01 postgres: port  5432, 
seqserver process
  501 43728 43719   0 10:20AM ?? 0:00.01 postgres: port  5432, WAL Send 
Server process
  501 43729 43719   0 10:20AM ?? 0:00.00 postgres: port  5432, DFS 
Metadata Cache process
  501 43743 1   0 10:20AM ?? 0:00.79 
/Users/linw/hawq-bin/bin/postgres -D /Users/linw/hawq-data/segmentdd -i -M 
segment -p 4 --silent-mode=true
  501 43744 43743   0 10:20AM ?? 0:00.02 postgres: port 4, logger 
process
  501 43747 43743   0 10:20AM ?? 0:00.01 postgres: port 4, stats 
collector process
  501 43748 43743   0 10:20AM ?? 0:00.07 postgres: port 4, writer 
process
  501 43749 43743   0 10:20AM ?? 0:00.01 postgres: port 4, 
checkpoint process
  501 43750 43743   0 10:20AM ?? 0:00.16 postgres: port 4, segment 
resource manager
  501 43830 43719   0 10:22AM ?? 0:00.01 postgres: port  5432, master 
resource manager
  501 43867 43719   0 10:24AM ?? 0:00.01 postgres: port  5432, linw 
template1 [local] cmd1 SELECT [local]




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)