You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "terry zhang (JIRA)" <ji...@apache.org> on 2012/08/21 07:14:37 UTC
[jira] [Created] (HBASE-6623) [replication] replication metrics
value AgeOfLastShippedOp is not set correctly
terry zhang created HBASE-6623:
----------------------------------
Summary: [replication] replication metrics value AgeOfLastShippedOp is not set correctly
Key: HBASE-6623
URL: https://issues.apache.org/jira/browse/HBASE-6623
Project: HBase
Issue Type: Bug
Components: replication
Affects Versions: 0.94.1
Reporter: terry zhang
Assignee: terry zhang
Priority: Minor
>From code below we can see AgeOfLastShippedOp is not set correctly
{code:title=ReplicationSource.java|borderStyle=solid}
// entriesArray init
public void init(){
this.entriesArray = new HLog.Entry[this.replicationQueueNbCapacity];
for (int i = 0; i < this.replicationQueueNbCapacity; i++) {
this.entriesArray[i] = new HLog.Entry();
}
}
//set the metrics value should not get the array length
protected void shipEdits() {
...
this.metrics.setAgeOfLastShippedOp(
this.entriesArray[this.entriesArray.length-1].getKey().getWriteTime());
...
}
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HBASE-6623) [replication] replication metrics
value AgeOfLastShippedOp is not set correctly
Posted by "terry zhang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-6623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13438461#comment-13438461 ]
terry zhang commented on HBASE-6623:
------------------------------------
we can use currentNbEntries instead of this.entriesArray.length
> [replication] replication metrics value AgeOfLastShippedOp is not set correctly
> -------------------------------------------------------------------------------
>
> Key: HBASE-6623
> URL: https://issues.apache.org/jira/browse/HBASE-6623
> Project: HBase
> Issue Type: Bug
> Components: replication
> Affects Versions: 0.94.1
> Reporter: terry zhang
> Assignee: terry zhang
> Priority: Minor
>
> From code below we can see AgeOfLastShippedOp is not set correctly
> {code:title=ReplicationSource.java|borderStyle=solid}
> // entriesArray init
> public void init(){
> this.entriesArray = new HLog.Entry[this.replicationQueueNbCapacity];
> for (int i = 0; i < this.replicationQueueNbCapacity; i++) {
> this.entriesArray[i] = new HLog.Entry();
> }
> }
> //set the metrics value should not get the array length
> protected void shipEdits() {
> ...
> this.metrics.setAgeOfLastShippedOp(
> this.entriesArray[this.entriesArray.length-1].getKey().getWriteTime());
> ...
> }
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HBASE-6623) [replication] replication metrics
value AgeOfLastShippedOp is not set correctly
Posted by "terry zhang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-6623?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
terry zhang updated HBASE-6623:
-------------------------------
Attachment: jira-6623.patch
> [replication] replication metrics value AgeOfLastShippedOp is not set correctly
> -------------------------------------------------------------------------------
>
> Key: HBASE-6623
> URL: https://issues.apache.org/jira/browse/HBASE-6623
> Project: HBase
> Issue Type: Bug
> Components: replication
> Affects Versions: 0.94.1
> Reporter: terry zhang
> Assignee: terry zhang
> Priority: Minor
> Attachments: jira-6623.patch
>
>
> From code below we can see AgeOfLastShippedOp is not set correctly
> {code:title=ReplicationSource.java|borderStyle=solid}
> // entriesArray init
> public void init(){
> this.entriesArray = new HLog.Entry[this.replicationQueueNbCapacity];
> for (int i = 0; i < this.replicationQueueNbCapacity; i++) {
> this.entriesArray[i] = new HLog.Entry();
> }
> }
> //set the metrics value should not get the array length
> protected void shipEdits() {
> ...
> this.metrics.setAgeOfLastShippedOp(
> this.entriesArray[this.entriesArray.length-1].getKey().getWriteTime());
> ...
> }
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HBASE-6623) [replication] replication metrics
value AgeOfLastShippedOp is not set correctly
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-6623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13448325#comment-13448325 ]
Hudson commented on HBASE-6623:
-------------------------------
Integrated in HBase-0.94-security-on-Hadoop-23 #7 (See [https://builds.apache.org/job/HBase-0.94-security-on-Hadoop-23/7/])
HBASE-6623 [replication] replication metrics value AgeOfLastShippedOp is not set correctly (Revision 1377036)
Result = FAILURE
stack :
Files :
* /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSource.java
> [replication] replication metrics value AgeOfLastShippedOp is not set correctly
> -------------------------------------------------------------------------------
>
> Key: HBASE-6623
> URL: https://issues.apache.org/jira/browse/HBASE-6623
> Project: HBase
> Issue Type: Bug
> Components: replication
> Affects Versions: 0.94.1
> Reporter: terry zhang
> Assignee: terry zhang
> Priority: Minor
> Fix For: 0.92.2, 0.94.2
>
> Attachments: jira-6623.patch
>
>
> From code below we can see AgeOfLastShippedOp is not set correctly
> {code:title=ReplicationSource.java|borderStyle=solid}
> // entriesArray init
> public void init(){
> this.entriesArray = new HLog.Entry[this.replicationQueueNbCapacity];
> for (int i = 0; i < this.replicationQueueNbCapacity; i++) {
> this.entriesArray[i] = new HLog.Entry();
> }
> }
> //set the metrics value should not get the array length
> protected void shipEdits() {
> ...
> this.metrics.setAgeOfLastShippedOp(
> this.entriesArray[this.entriesArray.length-1].getKey().getWriteTime());
> ...
> }
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HBASE-6623) [replication] replication metrics
value AgeOfLastShippedOp is not set correctly
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-6623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13442853#comment-13442853 ]
Hudson commented on HBASE-6623:
-------------------------------
Integrated in HBase-0.92-security #117 (See [https://builds.apache.org/job/HBase-0.92-security/117/])
HBASE-6623 [replication] replication metrics value AgeOfLastShippedOp is not set correctly (Revision 1377035)
Result = SUCCESS
stack :
Files :
* /hbase/branches/0.92/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSource.java
> [replication] replication metrics value AgeOfLastShippedOp is not set correctly
> -------------------------------------------------------------------------------
>
> Key: HBASE-6623
> URL: https://issues.apache.org/jira/browse/HBASE-6623
> Project: HBase
> Issue Type: Bug
> Components: replication
> Affects Versions: 0.94.1
> Reporter: terry zhang
> Assignee: terry zhang
> Priority: Minor
> Fix For: 0.92.2, 0.94.2
>
> Attachments: jira-6623.patch
>
>
> From code below we can see AgeOfLastShippedOp is not set correctly
> {code:title=ReplicationSource.java|borderStyle=solid}
> // entriesArray init
> public void init(){
> this.entriesArray = new HLog.Entry[this.replicationQueueNbCapacity];
> for (int i = 0; i < this.replicationQueueNbCapacity; i++) {
> this.entriesArray[i] = new HLog.Entry();
> }
> }
> //set the metrics value should not get the array length
> protected void shipEdits() {
> ...
> this.metrics.setAgeOfLastShippedOp(
> this.entriesArray[this.entriesArray.length-1].getKey().getWriteTime());
> ...
> }
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira