[jira] [Commented] (HBASE-10295) Refactor the replication implementation to eliminate permanent zk node

2014-09-19 Thread stack (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14141332#comment-14141332
 ] 

stack commented on HBASE-10295:
---

[~mantonov] This one sounds up you fellas' alley?  Let me backport the one the 
undoes table enable/disable.

 Refactor the replication  implementation to eliminate permanent zk node
 ---

 Key: HBASE-10295
 URL: https://issues.apache.org/jira/browse/HBASE-10295
 Project: HBase
  Issue Type: Bug
  Components: Replication
Reporter: Honghua Feng
Priority: Critical
  Labels: beginner
 Fix For: 0.99.1


 Though this is a broader and bigger change, it original motivation derives 
 from HBASE-8751: the newly introduced per-peer tableCFs attribute should be 
 treated the same way as the peer-state, which is a permanent sub-node under 
 peer node but using permanent zk node is deemed as an incorrect practice. So 
 let's refactor to eliminate the permanent zk node. And the HBASE-8751 can 
 then align its newly introduced per-peer tableCFs attribute with this 
 *correct* implementation theme.



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


[jira] [Commented] (HBASE-10295) Refactor the replication implementation to eliminate permanent zk node

2014-04-09 Thread Enis Soztutar (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13964056#comment-13964056
 ] 

Enis Soztutar commented on HBASE-10295:
---

bq. Over on HBASE-9864, there is something a little simpler that came of a chat 
w/ my man Matteo.
Agreed, we should continue this over at HBASE-9864. Let me carry my writing 
there as well. 

 Refactor the replication  implementation to eliminate permanent zk node
 ---

 Key: HBASE-10295
 URL: https://issues.apache.org/jira/browse/HBASE-10295
 Project: HBase
  Issue Type: Bug
  Components: Replication
Reporter: Honghua Feng
 Fix For: 0.99.0


 Though this is a broader and bigger change, it original motivation derives 
 from [HBASE-8751|https://issues.apache.org/jira/browse/HBASE-8751]: the newly 
 introduced per-peer tableCFs attribute should be treated the same way as the 
 peer-state, which is a permanent sub-node under peer node but using permanent 
 zk node is deemed as an incorrect practice. So let's refactor to eliminate 
 the permanent zk node. And the HBASE-8751 can then align its newly introduced 
 per-peer tableCFs attribute with this *correct* implementation theme.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10295) Refactor the replication implementation to eliminate permanent zk node

2014-04-07 Thread Mikhail Antonov (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13961726#comment-13961726
 ] 

Mikhail Antonov commented on HBASE-10295:
-

I'm thinking if this jira kind of fits the umbrella of HBASE-10909?

 Refactor the replication  implementation to eliminate permanent zk node
 ---

 Key: HBASE-10295
 URL: https://issues.apache.org/jira/browse/HBASE-10295
 Project: HBase
  Issue Type: Bug
  Components: Replication
Reporter: Honghua Feng
 Fix For: 0.99.0


 Though this is a broader and bigger change, it original motivation derives 
 from [HBASE-8751|https://issues.apache.org/jira/browse/HBASE-8751]: the newly 
 introduced per-peer tableCFs attribute should be treated the same way as the 
 peer-state, which is a permanent sub-node under peer node but using permanent 
 zk node is deemed as an incorrect practice. So let's refactor to eliminate 
 the permanent zk node. And the HBASE-8751 can then align its newly introduced 
 per-peer tableCFs attribute with this *correct* implementation theme.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10295) Refactor the replication implementation to eliminate permanent zk node

2014-04-07 Thread Mikhail Antonov (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13961728#comment-13961728
 ] 

Mikhail Antonov commented on HBASE-10295:
-

Just thinking it may be good to have all jiras which are about 
eliminating..something permanent in ZK under the same umbrella.

 Refactor the replication  implementation to eliminate permanent zk node
 ---

 Key: HBASE-10295
 URL: https://issues.apache.org/jira/browse/HBASE-10295
 Project: HBase
  Issue Type: Bug
  Components: Replication
Reporter: Honghua Feng
 Fix For: 0.99.0


 Though this is a broader and bigger change, it original motivation derives 
 from [HBASE-8751|https://issues.apache.org/jira/browse/HBASE-8751]: the newly 
 introduced per-peer tableCFs attribute should be treated the same way as the 
 peer-state, which is a permanent sub-node under peer node but using permanent 
 zk node is deemed as an incorrect practice. So let's refactor to eliminate 
 the permanent zk node. And the HBASE-8751 can then align its newly introduced 
 per-peer tableCFs attribute with this *correct* implementation theme.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10295) Refactor the replication implementation to eliminate permanent zk node

2014-04-07 Thread Andrew Purtell (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13961744#comment-13961744
 ] 

Andrew Purtell commented on HBASE-10295:


Makes sense. 

 Refactor the replication  implementation to eliminate permanent zk node
 ---

 Key: HBASE-10295
 URL: https://issues.apache.org/jira/browse/HBASE-10295
 Project: HBase
  Issue Type: Bug
  Components: Replication
Reporter: Honghua Feng
 Fix For: 0.99.0


 Though this is a broader and bigger change, it original motivation derives 
 from [HBASE-8751|https://issues.apache.org/jira/browse/HBASE-8751]: the newly 
 introduced per-peer tableCFs attribute should be treated the same way as the 
 peer-state, which is a permanent sub-node under peer node but using permanent 
 zk node is deemed as an incorrect practice. So let's refactor to eliminate 
 the permanent zk node. And the HBASE-8751 can then align its newly introduced 
 per-peer tableCFs attribute with this *correct* implementation theme.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10295) Refactor the replication implementation to eliminate permanent zk node

2014-04-07 Thread Mikhail Antonov (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13961750#comment-13961750
 ] 

Mikhail Antonov commented on HBASE-10295:
-

[~fenghh] [~stack] [~lhofhansl] is that ok if I move it there as subtask?

 Refactor the replication  implementation to eliminate permanent zk node
 ---

 Key: HBASE-10295
 URL: https://issues.apache.org/jira/browse/HBASE-10295
 Project: HBase
  Issue Type: Bug
  Components: Replication
Reporter: Honghua Feng
 Fix For: 0.99.0


 Though this is a broader and bigger change, it original motivation derives 
 from [HBASE-8751|https://issues.apache.org/jira/browse/HBASE-8751]: the newly 
 introduced per-peer tableCFs attribute should be treated the same way as the 
 peer-state, which is a permanent sub-node under peer node but using permanent 
 zk node is deemed as an incorrect practice. So let's refactor to eliminate 
 the permanent zk node. And the HBASE-8751 can then align its newly introduced 
 per-peer tableCFs attribute with this *correct* implementation theme.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10295) Refactor the replication implementation to eliminate permanent zk node

2014-04-07 Thread Enis Soztutar (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13961801#comment-13961801
 ] 

Enis Soztutar commented on HBASE-10295:
---

bq. Make Master arbiter for these new system tables – only the master can mod 
them – and then add a response on the heartbeat to update regionservers on last 
edit? Could be as simple as master just replying w/ timestamp of last edit. 
We should do this as a part of (or using) HBASE-9864. I was thinking of 
something similar, where the data is kept in an hbase table as a snapshot + 
WAL. All transactions will have an trxid (NO timestamps please). All region 
servers open a session with a lease, and keep heartbeats to renew their lease. 
They send the last seen trxId, and the coordinator replies with the list of 
edits that they should apply to their in memory cache. If some reader looses 
it's leases, the coordinator (master) invalidates its session (so that there is 
an upper bound on the time the edits will be propogated). The coordinator keeps 
the last seen trxId per session, so that it can do recreate the snapshot and 
get rid of write ahead log entries. 

However, astute readers might have noticed that this is indeed similar to zk's 
own protocol except that the data is not replicated via ZAB, but via datanode 
pipelines and hbase.  


 Refactor the replication  implementation to eliminate permanent zk node
 ---

 Key: HBASE-10295
 URL: https://issues.apache.org/jira/browse/HBASE-10295
 Project: HBase
  Issue Type: Bug
  Components: Replication
Reporter: Honghua Feng
 Fix For: 0.99.0


 Though this is a broader and bigger change, it original motivation derives 
 from [HBASE-8751|https://issues.apache.org/jira/browse/HBASE-8751]: the newly 
 introduced per-peer tableCFs attribute should be treated the same way as the 
 peer-state, which is a permanent sub-node under peer node but using permanent 
 zk node is deemed as an incorrect practice. So let's refactor to eliminate 
 the permanent zk node. And the HBASE-8751 can then align its newly introduced 
 per-peer tableCFs attribute with this *correct* implementation theme.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10295) Refactor the replication implementation to eliminate permanent zk node

2014-04-07 Thread Honghua Feng (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13962510#comment-13962510
 ] 

Honghua Feng commented on HBASE-10295:
--

bq.Honghua Feng stack Lars Hofhansl is that ok if I move it there as subtask?
Sounds good to me

 Refactor the replication  implementation to eliminate permanent zk node
 ---

 Key: HBASE-10295
 URL: https://issues.apache.org/jira/browse/HBASE-10295
 Project: HBase
  Issue Type: Bug
  Components: Replication
Reporter: Honghua Feng
 Fix For: 0.99.0


 Though this is a broader and bigger change, it original motivation derives 
 from [HBASE-8751|https://issues.apache.org/jira/browse/HBASE-8751]: the newly 
 introduced per-peer tableCFs attribute should be treated the same way as the 
 peer-state, which is a permanent sub-node under peer node but using permanent 
 zk node is deemed as an incorrect practice. So let's refactor to eliminate 
 the permanent zk node. And the HBASE-8751 can then align its newly introduced 
 per-peer tableCFs attribute with this *correct* implementation theme.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10295) Refactor the replication implementation to eliminate permanent zk node

2014-04-07 Thread stack (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13962535#comment-13962535
 ] 

stack commented on HBASE-10295:
---

[~enis] Over on HBASE-9864, there is something a little simpler that came of a 
chat w/ my man Matteo.  I like the idea of doing the zk model but your short 
paragraph needs a bit of expansion so I understand better how you think it 
would work in our context.  Thanks.



 Refactor the replication  implementation to eliminate permanent zk node
 ---

 Key: HBASE-10295
 URL: https://issues.apache.org/jira/browse/HBASE-10295
 Project: HBase
  Issue Type: Bug
  Components: Replication
Reporter: Honghua Feng
 Fix For: 0.99.0


 Though this is a broader and bigger change, it original motivation derives 
 from [HBASE-8751|https://issues.apache.org/jira/browse/HBASE-8751]: the newly 
 introduced per-peer tableCFs attribute should be treated the same way as the 
 peer-state, which is a permanent sub-node under peer node but using permanent 
 zk node is deemed as an incorrect practice. So let's refactor to eliminate 
 the permanent zk node. And the HBASE-8751 can then align its newly introduced 
 per-peer tableCFs attribute with this *correct* implementation theme.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (HBASE-10295) Refactor the replication implementation to eliminate permanent zk node

2014-01-26 Thread Feng Honghua (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13882245#comment-13882245
 ] 

Feng Honghua commented on HBASE-10295:
--

a long-term item and need more discussion and thought, a bit related to 
HBASE-10296

 Refactor the replication  implementation to eliminate permanent zk node
 ---

 Key: HBASE-10295
 URL: https://issues.apache.org/jira/browse/HBASE-10295
 Project: HBase
  Issue Type: Bug
  Components: Replication
Reporter: Feng Honghua
 Fix For: 0.99.0


 Though this is a broader and bigger change, it original motivation derives 
 from [HBASE-8751|https://issues.apache.org/jira/browse/HBASE-8751]: the newly 
 introduced per-peer tableCFs attribute should be treated the same way as the 
 peer-state, which is a permanent sub-node under peer node but using permanent 
 zk node is deemed as an incorrect practice. So let's refactor to eliminate 
 the permanent zk node. And the HBASE-8751 can then align its newly introduced 
 per-peer tableCFs attribute with this *correct* implementation theme.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (HBASE-10295) Refactor the replication implementation to eliminate permanent zk node

2014-01-13 Thread Andrew Purtell (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13869785#comment-13869785
 ] 

Andrew Purtell commented on HBASE-10295:


Nice idea, +1

 Refactor the replication  implementation to eliminate permanent zk node
 ---

 Key: HBASE-10295
 URL: https://issues.apache.org/jira/browse/HBASE-10295
 Project: HBase
  Issue Type: Bug
  Components: Replication
Reporter: Feng Honghua
Assignee: Feng Honghua
 Fix For: 0.99.0


 Though this is a broader and bigger change, it original motivation derives 
 from [HBASE-8751|https://issues.apache.org/jira/browse/HBASE-8751]: the newly 
 introduced per-peer tableCFs attribute should be treated the same way as the 
 peer-state, which is a permanent sub-node under peer node but using permanent 
 zk node is deemed as an incorrect practice. So let's refactor to eliminate 
 the permanent zk node. And the HBASE-8751 can then align its newly introduced 
 per-peer tableCFs attribute with this *correct* implementation theme.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (HBASE-10295) Refactor the replication implementation to eliminate permanent zk node

2014-01-11 Thread Feng Honghua (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13868811#comment-13868811
 ] 

Feng Honghua commented on HBASE-10295:
--

[~stack] Yes, sound feasible, thanks :-)

 Refactor the replication  implementation to eliminate permanent zk node
 ---

 Key: HBASE-10295
 URL: https://issues.apache.org/jira/browse/HBASE-10295
 Project: HBase
  Issue Type: Bug
  Components: Replication
Reporter: Feng Honghua
Assignee: Feng Honghua
 Fix For: 0.99.0


 Though this is a broader and bigger change, it original motivation derives 
 from [HBASE-8751|https://issues.apache.org/jira/browse/HBASE-8751]: the newly 
 introduced per-peer tableCFs attribute should be treated the same way as the 
 peer-state, which is a permanent sub-node under peer node but using permanent 
 zk node is deemed as an incorrect practice. So let's refactor to eliminate 
 the permanent zk node. And the HBASE-8751 can then align its newly introduced 
 per-peer tableCFs attribute with this *correct* implementation theme.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (HBASE-10295) Refactor the replication implementation to eliminate permanent zk node

2014-01-10 Thread stack (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13868266#comment-13868266
 ] 

stack commented on HBASE-10295:
---

Make Master arbiter for these new system tables -- only the master can mod them 
-- and then add a response on the heartbeat to update regionservers on last 
edit?  Currently we return a void.  See RegionServerReportResponse in 
http://svn.apache.org/viewvc/hbase/trunk/hbase-protocol/src/main/protobuf/RegionServerStatus.proto?view=markup
  Could be as simple as master just replying w/ timestamp of last edit.  If RS 
has not seen the new edit, it goes and reads the table

 Refactor the replication  implementation to eliminate permanent zk node
 ---

 Key: HBASE-10295
 URL: https://issues.apache.org/jira/browse/HBASE-10295
 Project: HBase
  Issue Type: Bug
  Components: Replication
Reporter: Feng Honghua
Assignee: Feng Honghua
 Fix For: 0.99.0


 Though this is a broader and bigger change, it original motivation derives 
 from [HBASE-8751|https://issues.apache.org/jira/browse/HBASE-8751]: the newly 
 introduced per-peer tableCFs attribute should be treated the same way as the 
 peer-state, which is a permanent sub-node under peer node but using permanent 
 zk node is deemed as an incorrect practice. So let's refactor to eliminate 
 the permanent zk node. And the HBASE-8751 can then align its newly introduced 
 per-peer tableCFs attribute with this *correct* implementation theme.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (HBASE-10295) Refactor the replication implementation to eliminate permanent zk node

2014-01-07 Thread Feng Honghua (JIRA)

[ 
https://issues.apache.org/jira/browse/HBASE-10295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13865038#comment-13865038
 ] 

Feng Honghua commented on HBASE-10295:
--

Another HBase internal system table (similar to meta table) is a good choice 
for storing replication zk node information, but lacking the zk's  inherent 
watch/notification mechanism which is essential for the 'client change 
replication status(such as peer-state / add peer), regionservers listens and 
gets notification for such status and perform accordingly(such as disable a 
peer / add a new peer thread)' communication pattern...

No clear plan for now, but I'll spend some time these days to figure out a 
draft design for discussion and brainstorming first, any opinion/suggestion is 
welcome :-)

And change the title of this jira to make it more general and match its 
intention better. [~techbuddy01] :-)

 Refactor the replication  implementation to eliminate permanent zk node
 ---

 Key: HBASE-10295
 URL: https://issues.apache.org/jira/browse/HBASE-10295
 Project: HBase
  Issue Type: Bug
  Components: Replication
Reporter: Feng Honghua
Assignee: Feng Honghua
 Fix For: 0.99.0


 Though this is a broader and bigger change, it original motivation derives 
 from [HBASE-8751|https://issues.apache.org/jira/browse/HBASE-8751]: the newly 
 introduced per-peer tableCFs attribute should be treated the same way as the 
 peer-state, which is a permanent sub-node under peer node but using permanent 
 zk node is deemed as an incorrect practice. So let's refactor to eliminate 
 the permanent zk node. And the HBASE-8751 can then align its newly introduced 
 per-peer tableCFs attribute with this *correct* implementation theme.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)