[jira] [Updated] (HAWQ-1226) HAWQ core dump due to enable ranger while RPS is down

2016-12-19 Thread Hongxu Ma (JIRA)

 [ 
https://issues.apache.org/jira/browse/HAWQ-1226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hongxu Ma updated HAWQ-1226:

Summary: HAWQ core dump due to enable ranger while RPS is down   (was: HAWQ 
core dump due to enable ranger while RPS is down. )

> HAWQ core dump due to enable ranger while RPS is down 
> --
>
> Key: HAWQ-1226
> URL: https://issues.apache.org/jira/browse/HAWQ-1226
> Project: Apache HAWQ
>  Issue Type: Bug
>Reporter: Hongxu Ma
>Assignee: Hongxu Ma
>
> Core dump when starting hawq without starting RPS with enable_ranger is true.
> {code}
> (lldb) bt
> * thread #1: tid = 0x, 0x7fffe9264dda 
> libsystem_kernel.dylib`__pthread_kill + 10, stop reason = signal SIGSTOP
>   * frame #0: 0x7fffe9264dda libsystem_kernel.dylib`__pthread_kill + 10
> frame #1: 0x7fffe9350787 libsystem_pthread.dylib`pthread_kill + 90
> frame #2: 0x7fffe917b497 libsystem_c.dylib`raise + 26
> frame #3: 0x00010cbdd93f 
> postgres`SafeHandlerForSegvBusIll(processName="Process", 
> postgres_signal_arg=11) + 591 at elog.c:4519
> frame #4: 0x00010cbdd6cb 
> postgres`StandardHandlerForSigillSigsegvSigbus_OnMainThread(processName="Process",
>  postgres_signal_arg=11) + 43 at elog.c:4597
> frame #5: 0x00010cab66ef 
> postgres`CdbProgramErrorHandler(postgres_signal_arg=11) + 319 at 
> postgres.c:3512
> frame #6: 0x7fffe9343bba libsystem_platform.dylib`_sigtramp + 26
> frame #7: 0x7fffe916cb53 libsystem_c.dylib`strlen + 19
> frame #8: 0x00010c951215 
> postgres`parse_ranger_response(buffer=0x) + 21 at 
> rangerrest.c:59
> frame #9: 0x00010c951c8e 
> postgres`check_privilege_from_ranger(user="wuhong", kind=ACL_KIND_NAMESPACE, 
> object="template1", actions=0x7ff338036598, how=0x) + 254 
> at rangerrest.c:339
> frame #10: 0x00010c7890c4 
> postgres`pg_rangercheck(objkind=ACL_KIND_NAMESPACE, object_oid=2200, 
> roleid=10, mask=256, how=ACLMASK_ANY) + 164 at aclchk.c:2678
> frame #11: 0x00010c78b085 
> postgres`pg_namespace_aclcheck(nsp_oid=2200, roleid=10, mode=256) + 101 at 
> aclchk.c:3752
> frame #12: 0x00010c77ea48 postgres`recomputeNamespacePath + 600 at 
> namespace.c:2010
> frame #13: 0x00010c77dec1 
> postgres`RelnameGetRelid(relname="gp_segment_configuration") + 17 at 
> namespace.c:423
> frame #14: 0x00010c77db61 
> postgres`RangeVarGetRelid(relation=0x7ff3388cef60, failOK='\0', 
> allowHcatalog='\x01') + 449 at namespace.c:278
> frame #15: 0x00010c671f6e 
> postgres`CdbOpenRelationRv(relation=0x7ff3388cef60, reqmode=3, 
> noWait='\0', lockUpgraded=0x) + 46 at heapam.c:1075
> frame #16: 0x00010c7f718c 
> postgres`setTargetTable(pstate=0x7ff3388cf460, 
> relation=0x7ff3388cef60, inh='\x01', alsoSource='\x01', requiredPerms=8) 
> + 140 at parse_clause.c:866
> frame #17: 0x00010c7b9a6e 
> postgres`transformDeleteStmt(pstate=0x7ff3388cf460, 
> stmt=0x7ff3388cf3c0) + 174 at analyze.c:943
> frame #18: 0x00010c7b5249 
> postgres`transformStmt(pstate=0x7ff3388cf460, 
> parseTree=0x7ff3388cf3c0, extras_before=0x7fff535bcba0, 
> extras_after=0x7fff535bcb98) + 841 at analyze.c:769
> frame #19: 0x00010c7a5b60 
> postgres`do_parse_analyze(parseTree=0x7ff3388cf3c0, 
> pstate=0x7ff3388cf460) + 112 at analyze.c:497
> frame #20: 0x00010c7a5acf 
> postgres`parse_analyze(parseTree=0x7ff3388cf3c0, sourceText="DELETE FROM 
> gp_segment_configuration WHERE role = 'p' or role = 'm'", 
> paramTypes=0x, numParams=0) + 95 at analyze.c:351
> frame #21: 0x00010cab5960 
> postgres`pg_analyze_and_rewrite(parsetree=0x7ff3388cf3c0, 
> query_string="DELETE FROM gp_segment_configuration WHERE role = 'p' or role = 
> 'm'", paramTypes=0x, numParams=0) + 64 at postgres.c:812
> frame #22: 0x00010caba448 
> postgres`exec_simple_query(query_string="DELETE FROM gp_segment_configuration 
> WHERE role = 'p' or role = 'm'", seqServerHost=0x, 
> seqServerPort=-1) + 1416 at postgres.c:1739
> frame #23: 0x00010cab8b15 postgres`PostgresMain(argc=8, 
> argv=0x7ff338818698, username="wuhong") + 7189 at postgres.c:4840
> frame #24: 0x00010ca62295 
> postgres`BackendRun(port=0x7ff337416a60) + 981 at postmaster.c:5915
> frame #25: 0x00010ca5f6e5 
> postgres`BackendStartup(port=0x7ff337416a60) + 373 at postmaster.c:5484
> frame #26: 0x00010ca5cbb0 postgres`ServerLoop + 1248 at 
> postmaster.c:2163
> frame #27: 0x00010ca5b2e3 postgres`PostmasterMain(argc=9, 
> argv=0x7ff337415af0) + 4835 at postmaster.c:1454
> frame #28: 0x00010c96742c postgres`main(argc=9, 
> argv=0x7ff337415af0) 

[jira] [Updated] (HAWQ-1226) HAWQ core dump due to enable ranger while RPS is down.

2016-12-19 Thread Hongxu Ma (JIRA)

 [ 
https://issues.apache.org/jira/browse/HAWQ-1226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hongxu Ma updated HAWQ-1226:

Summary: HAWQ core dump due to enable ranger while RPS is down.   (was: 
HAWQ core dump due to Enable ranger while RPS is down. )

> HAWQ core dump due to enable ranger while RPS is down. 
> ---
>
> Key: HAWQ-1226
> URL: https://issues.apache.org/jira/browse/HAWQ-1226
> Project: Apache HAWQ
>  Issue Type: Bug
>Reporter: Hongxu Ma
>Assignee: Hongxu Ma
>
> Core dump when starting hawq without starting RPS with enable_ranger is true.
> {code}
> (lldb) bt
> * thread #1: tid = 0x, 0x7fffe9264dda 
> libsystem_kernel.dylib`__pthread_kill + 10, stop reason = signal SIGSTOP
>   * frame #0: 0x7fffe9264dda libsystem_kernel.dylib`__pthread_kill + 10
> frame #1: 0x7fffe9350787 libsystem_pthread.dylib`pthread_kill + 90
> frame #2: 0x7fffe917b497 libsystem_c.dylib`raise + 26
> frame #3: 0x00010cbdd93f 
> postgres`SafeHandlerForSegvBusIll(processName="Process", 
> postgres_signal_arg=11) + 591 at elog.c:4519
> frame #4: 0x00010cbdd6cb 
> postgres`StandardHandlerForSigillSigsegvSigbus_OnMainThread(processName="Process",
>  postgres_signal_arg=11) + 43 at elog.c:4597
> frame #5: 0x00010cab66ef 
> postgres`CdbProgramErrorHandler(postgres_signal_arg=11) + 319 at 
> postgres.c:3512
> frame #6: 0x7fffe9343bba libsystem_platform.dylib`_sigtramp + 26
> frame #7: 0x7fffe916cb53 libsystem_c.dylib`strlen + 19
> frame #8: 0x00010c951215 
> postgres`parse_ranger_response(buffer=0x) + 21 at 
> rangerrest.c:59
> frame #9: 0x00010c951c8e 
> postgres`check_privilege_from_ranger(user="wuhong", kind=ACL_KIND_NAMESPACE, 
> object="template1", actions=0x7ff338036598, how=0x) + 254 
> at rangerrest.c:339
> frame #10: 0x00010c7890c4 
> postgres`pg_rangercheck(objkind=ACL_KIND_NAMESPACE, object_oid=2200, 
> roleid=10, mask=256, how=ACLMASK_ANY) + 164 at aclchk.c:2678
> frame #11: 0x00010c78b085 
> postgres`pg_namespace_aclcheck(nsp_oid=2200, roleid=10, mode=256) + 101 at 
> aclchk.c:3752
> frame #12: 0x00010c77ea48 postgres`recomputeNamespacePath + 600 at 
> namespace.c:2010
> frame #13: 0x00010c77dec1 
> postgres`RelnameGetRelid(relname="gp_segment_configuration") + 17 at 
> namespace.c:423
> frame #14: 0x00010c77db61 
> postgres`RangeVarGetRelid(relation=0x7ff3388cef60, failOK='\0', 
> allowHcatalog='\x01') + 449 at namespace.c:278
> frame #15: 0x00010c671f6e 
> postgres`CdbOpenRelationRv(relation=0x7ff3388cef60, reqmode=3, 
> noWait='\0', lockUpgraded=0x) + 46 at heapam.c:1075
> frame #16: 0x00010c7f718c 
> postgres`setTargetTable(pstate=0x7ff3388cf460, 
> relation=0x7ff3388cef60, inh='\x01', alsoSource='\x01', requiredPerms=8) 
> + 140 at parse_clause.c:866
> frame #17: 0x00010c7b9a6e 
> postgres`transformDeleteStmt(pstate=0x7ff3388cf460, 
> stmt=0x7ff3388cf3c0) + 174 at analyze.c:943
> frame #18: 0x00010c7b5249 
> postgres`transformStmt(pstate=0x7ff3388cf460, 
> parseTree=0x7ff3388cf3c0, extras_before=0x7fff535bcba0, 
> extras_after=0x7fff535bcb98) + 841 at analyze.c:769
> frame #19: 0x00010c7a5b60 
> postgres`do_parse_analyze(parseTree=0x7ff3388cf3c0, 
> pstate=0x7ff3388cf460) + 112 at analyze.c:497
> frame #20: 0x00010c7a5acf 
> postgres`parse_analyze(parseTree=0x7ff3388cf3c0, sourceText="DELETE FROM 
> gp_segment_configuration WHERE role = 'p' or role = 'm'", 
> paramTypes=0x, numParams=0) + 95 at analyze.c:351
> frame #21: 0x00010cab5960 
> postgres`pg_analyze_and_rewrite(parsetree=0x7ff3388cf3c0, 
> query_string="DELETE FROM gp_segment_configuration WHERE role = 'p' or role = 
> 'm'", paramTypes=0x, numParams=0) + 64 at postgres.c:812
> frame #22: 0x00010caba448 
> postgres`exec_simple_query(query_string="DELETE FROM gp_segment_configuration 
> WHERE role = 'p' or role = 'm'", seqServerHost=0x, 
> seqServerPort=-1) + 1416 at postgres.c:1739
> frame #23: 0x00010cab8b15 postgres`PostgresMain(argc=8, 
> argv=0x7ff338818698, username="wuhong") + 7189 at postgres.c:4840
> frame #24: 0x00010ca62295 
> postgres`BackendRun(port=0x7ff337416a60) + 981 at postmaster.c:5915
> frame #25: 0x00010ca5f6e5 
> postgres`BackendStartup(port=0x7ff337416a60) + 373 at postmaster.c:5484
> frame #26: 0x00010ca5cbb0 postgres`ServerLoop + 1248 at 
> postmaster.c:2163
> frame #27: 0x00010ca5b2e3 postgres`PostmasterMain(argc=9, 
> argv=0x7ff337415af0) + 4835 at postmaster.c:1454
> frame #28: 0x00010c96742c postgres`main(argc=9, 
> 

[jira] [Updated] (HAWQ-1226) HAWQ core dump due to Enable ranger while RPS is down.

2016-12-19 Thread Hongxu Ma (JIRA)

 [ 
https://issues.apache.org/jira/browse/HAWQ-1226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hongxu Ma updated HAWQ-1226:

Summary: HAWQ core dump due to Enable ranger while RPS is down.   (was: 
Enable ranger while RPS is down cause HAWQ to core dump)

> HAWQ core dump due to Enable ranger while RPS is down. 
> ---
>
> Key: HAWQ-1226
> URL: https://issues.apache.org/jira/browse/HAWQ-1226
> Project: Apache HAWQ
>  Issue Type: Bug
>Reporter: Hongxu Ma
>Assignee: Hongxu Ma
>
> Core dump when starting hawq without starting RPS with enable_ranger is true.
> {code}
> (lldb) bt
> * thread #1: tid = 0x, 0x7fffe9264dda 
> libsystem_kernel.dylib`__pthread_kill + 10, stop reason = signal SIGSTOP
>   * frame #0: 0x7fffe9264dda libsystem_kernel.dylib`__pthread_kill + 10
> frame #1: 0x7fffe9350787 libsystem_pthread.dylib`pthread_kill + 90
> frame #2: 0x7fffe917b497 libsystem_c.dylib`raise + 26
> frame #3: 0x00010cbdd93f 
> postgres`SafeHandlerForSegvBusIll(processName="Process", 
> postgres_signal_arg=11) + 591 at elog.c:4519
> frame #4: 0x00010cbdd6cb 
> postgres`StandardHandlerForSigillSigsegvSigbus_OnMainThread(processName="Process",
>  postgres_signal_arg=11) + 43 at elog.c:4597
> frame #5: 0x00010cab66ef 
> postgres`CdbProgramErrorHandler(postgres_signal_arg=11) + 319 at 
> postgres.c:3512
> frame #6: 0x7fffe9343bba libsystem_platform.dylib`_sigtramp + 26
> frame #7: 0x7fffe916cb53 libsystem_c.dylib`strlen + 19
> frame #8: 0x00010c951215 
> postgres`parse_ranger_response(buffer=0x) + 21 at 
> rangerrest.c:59
> frame #9: 0x00010c951c8e 
> postgres`check_privilege_from_ranger(user="wuhong", kind=ACL_KIND_NAMESPACE, 
> object="template1", actions=0x7ff338036598, how=0x) + 254 
> at rangerrest.c:339
> frame #10: 0x00010c7890c4 
> postgres`pg_rangercheck(objkind=ACL_KIND_NAMESPACE, object_oid=2200, 
> roleid=10, mask=256, how=ACLMASK_ANY) + 164 at aclchk.c:2678
> frame #11: 0x00010c78b085 
> postgres`pg_namespace_aclcheck(nsp_oid=2200, roleid=10, mode=256) + 101 at 
> aclchk.c:3752
> frame #12: 0x00010c77ea48 postgres`recomputeNamespacePath + 600 at 
> namespace.c:2010
> frame #13: 0x00010c77dec1 
> postgres`RelnameGetRelid(relname="gp_segment_configuration") + 17 at 
> namespace.c:423
> frame #14: 0x00010c77db61 
> postgres`RangeVarGetRelid(relation=0x7ff3388cef60, failOK='\0', 
> allowHcatalog='\x01') + 449 at namespace.c:278
> frame #15: 0x00010c671f6e 
> postgres`CdbOpenRelationRv(relation=0x7ff3388cef60, reqmode=3, 
> noWait='\0', lockUpgraded=0x) + 46 at heapam.c:1075
> frame #16: 0x00010c7f718c 
> postgres`setTargetTable(pstate=0x7ff3388cf460, 
> relation=0x7ff3388cef60, inh='\x01', alsoSource='\x01', requiredPerms=8) 
> + 140 at parse_clause.c:866
> frame #17: 0x00010c7b9a6e 
> postgres`transformDeleteStmt(pstate=0x7ff3388cf460, 
> stmt=0x7ff3388cf3c0) + 174 at analyze.c:943
> frame #18: 0x00010c7b5249 
> postgres`transformStmt(pstate=0x7ff3388cf460, 
> parseTree=0x7ff3388cf3c0, extras_before=0x7fff535bcba0, 
> extras_after=0x7fff535bcb98) + 841 at analyze.c:769
> frame #19: 0x00010c7a5b60 
> postgres`do_parse_analyze(parseTree=0x7ff3388cf3c0, 
> pstate=0x7ff3388cf460) + 112 at analyze.c:497
> frame #20: 0x00010c7a5acf 
> postgres`parse_analyze(parseTree=0x7ff3388cf3c0, sourceText="DELETE FROM 
> gp_segment_configuration WHERE role = 'p' or role = 'm'", 
> paramTypes=0x, numParams=0) + 95 at analyze.c:351
> frame #21: 0x00010cab5960 
> postgres`pg_analyze_and_rewrite(parsetree=0x7ff3388cf3c0, 
> query_string="DELETE FROM gp_segment_configuration WHERE role = 'p' or role = 
> 'm'", paramTypes=0x, numParams=0) + 64 at postgres.c:812
> frame #22: 0x00010caba448 
> postgres`exec_simple_query(query_string="DELETE FROM gp_segment_configuration 
> WHERE role = 'p' or role = 'm'", seqServerHost=0x, 
> seqServerPort=-1) + 1416 at postgres.c:1739
> frame #23: 0x00010cab8b15 postgres`PostgresMain(argc=8, 
> argv=0x7ff338818698, username="wuhong") + 7189 at postgres.c:4840
> frame #24: 0x00010ca62295 
> postgres`BackendRun(port=0x7ff337416a60) + 981 at postmaster.c:5915
> frame #25: 0x00010ca5f6e5 
> postgres`BackendStartup(port=0x7ff337416a60) + 373 at postmaster.c:5484
> frame #26: 0x00010ca5cbb0 postgres`ServerLoop + 1248 at 
> postmaster.c:2163
> frame #27: 0x00010ca5b2e3 postgres`PostmasterMain(argc=9, 
> argv=0x7ff337415af0) + 4835 at postmaster.c:1454
> frame #28: 0x00010c96742c postgres`main(argc=9, 
>