phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ankit Singhal (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PHOENIX-3495) Ignore NamespaceExistException when namespace mapping enabled
Date Fri, 18 Nov 2016 10:23:58 GMT

    [ https://issues.apache.org/jira/browse/PHOENIX-3495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15676394#comment-15676394
] 

Ankit Singhal commented on PHOENIX-3495:
----------------------------------------

Yep, patch will certainly avoid race condition but I also did the same change but reverted
in subsequent push to pull request after [~speleato] reported below error while he was testing
namespace with CSVBulkLoad.
{code}

2016-04-26 21:10:38,067|beaver.machine|INFO|2566|140169846208256|MainThread|16/04/26 21:10:38
INFO client.RpcRetryingCaller: Call exception, tries=10, retries=35, started=48781 ms ago,
cancelled=false, msg=
2016-04-26 21:10:58,115|beaver.machine|INFO|2566|140169846208256|MainThread|16/04/26 21:10:58
INFO client.RpcRetryingCaller: Call exception, tries=11, retries=35, started=68831 ms ago,
cancelled=false, msg=
2016-04-26 21:11:18,148|beaver.machine|INFO|2566|140169846208256|MainThread|16/04/26 21:11:18
INFO client.RpcRetryingCaller: Call exception, tries=12, retries=35, started=88864 ms ago,
cancelled=false, msg=
2016-04-26 21:11:38,281|beaver.machine|INFO|2566|140169846208256|MainThread|16/04/26 21:11:38
INFO client.RpcRetryingCaller: Call exception, tries=13, retries=35, started=108998 ms ago,
cancelled=false, msg=
...
...
...
2016-04-26 21:18:00,824|beaver.machine|INFO|2566|140169846208256|MainThread|16/04/26 21:18:00
INFO client.RpcRetryingCaller: Call exception, tries=32, retries=35, started=491541 ms ago,
cancelled=false, msg=
2016-04-26 21:18:21,031|beaver.machine|INFO|2566|140169846208256|MainThread|16/04/26 21:18:21
INFO client.RpcRetryingCaller: Call exception, tries=33, retries=35, started=511747 ms ago,
cancelled=false, msg=
2016-04-26 21:18:41,104|beaver.machine|INFO|2566|140169846208256|MainThread|16/04/26 21:18:41
INFO client.RpcRetryingCaller: Call exception, tries=34, retries=35, started=531820 ms ago,
cancelled=false, msg=
2016-04-26 21:18:41,214|beaver.machine|INFO|2566|140169846208256|MainThread|Exception in thread
"main" org.apache.phoenix.exception.PhoenixIOException: Failed after attempts=35, exceptions:
2016-04-26 21:18:41,214|beaver.machine|INFO|2566|140169846208256|MainThread|Tue Apr 26 21:09:49
UTC 2016, RpcRetryingCaller{globalStartTime=1461704989282, pause=100, retries=35}, org.apache.hadoop.hbase.ipc.RemoteWithExtrasException(org.apache.hadoop.hbase.NamespaceExistException):
org.apache.hadoop.hbase.NamespaceExistException: SYSTEM
2016-04-26 21:18:41,215|beaver.machine|INFO|2566|140169846208256|MainThread|at org.apache.hadoop.hbase.master.TableNamespaceManager.create(TableNamespaceManager.java:156)
2016-04-26 21:18:41,215|beaver.machine|INFO|2566|140169846208256|MainThread|at org.apache.hadoop.hbase.master.TableNamespaceManager.create(TableNamespaceManager.java:131)
2016-04-26 21:18:41,215|beaver.machine|INFO|2566|140169846208256|MainThread|at org.apache.hadoop.hbase.master.HMaster.createNamespace(HMaster.java:2553)
2016-04-26 21:18:41,216|beaver.machine|INFO|2566|140169846208256|MainThread|at org.apache.hadoop.hbase.master.MasterRpcServices.createNamespace(MasterRpcServices.java:447)
2016-04-26 21:18:41,216|beaver.machine|INFO|2566|140169846208256|MainThread|at org.apache.hadoop.hbase.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java:58043)
2016-04-26 21:18:41,216|beaver.machine|INFO|2566|140169846208256|MainThread|at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2115)
2016-04-26 21:18:41,216|beaver.machine|INFO|2566|140169846208256|MainThread|at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:102)
2016-04-26 21:18:41,217|beaver.machine|INFO|2566|140169846208256|MainThread|at org.apache.hadoop.hbase.ipc.RpcExecutor.consumerLoop(RpcExecutor.java:133)
2016-04-26 21:18:41,217|beaver.machine|INFO|2566|140169846208256|MainThread|at org.apache.hadoop.hbase.ipc.RpcExecutor$1.run(RpcExecutor.java:108)
2016-04-26 21:18:41,217|beaver.machine|INFO|2566|140169846208256|MainThread|at java.lang.Thread.run(Thread.java:745)
2016-04-26 21:18:41,217|beaver.machine|INFO|2566|140169846208256|MainThread|

{code}

It is expected that HBase should not retry after NamespaceExistsException but it's not the
case when executed with CSVBulkLoadTool. I'll try to reproduce same with recent version and
get some RCA.



> Ignore NamespaceExistException when namespace mapping enabled
> -------------------------------------------------------------
>
>                 Key: PHOENIX-3495
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-3495
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: Samarth Jain
>            Assignee: Samarth Jain
>             Fix For: 4.9.0, 4.8.2
>
>         Attachments: PHOENIX-3495.patch, PHOENIX-3495_v2.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message