[jira] [Commented] (HBASE-9902) Region Server is starting normally even if clock skew is more than default 30 seconds(or any configured). - Regionserver node time is greater than master node time

2013-11-13 Thread Hudson (JIRA)

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

Hudson commented on HBASE-9902:
---

SUCCESS: Integrated in hbase-0.96-hadoop2 #118 (See 
[https://builds.apache.org/job/hbase-0.96-hadoop2/118/])
HBASE-9902 Region Server is starting normally even if clock skew is more than 
default 30 seconds(or any configured). - Regionserver node time is greater 
than master node time(Kashif) (rajeshbabu: rev 1541113)
* 
/hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/master/ServerManager.java
* 
/hbase/branches/0.96/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestClockSkewDetection.java


 Region Server is starting normally even if clock skew is more than default 30 
 seconds(or any configured). - Regionserver node time is greater than master 
 node time
 

 Key: HBASE-9902
 URL: https://issues.apache.org/jira/browse/HBASE-9902
 Project: HBase
  Issue Type: Bug
  Components: master
Affects Versions: 0.94.11
Reporter: Kashif J S
Assignee: Kashif J S
 Fix For: 0.98.0, 0.96.1, 0.94.14

 Attachments: HBASE-9902.patch, HBASE-9902_v2-0.94.patch, 
 HBASE-9902_v2.patch


 When Region server's time is ahead of Master's time and the difference is 
 more than hbase.master.maxclockskew value, region server startup is not 
 failing with ClockOutOfSyncException.
 This causes some abnormal behavior as detected by our Tests.
 ServerManager.java#checkClockSkew
   long skew = System.currentTimeMillis() - serverCurrentTime;
 if (skew  maxSkew) {
   String message = Server  + serverName +  has been  +
 rejected; Reported time is too far out of sync with master.   +
 Time difference of  + skew + ms  max allowed of  + maxSkew + 
 ms;
   LOG.warn(message);
   throw new ClockOutOfSyncException(message);
 }
 Above line results in negative value when Master's time is lesser than 
 region server time and   if (skew  maxSkew)  check fails to find the skew 
 in this case.
 Please Note: This was tested in hbase 0.94.11 version and the trunk also 
 currently has the same logic.
 The fix for the same would be to make the skew positive value first as below:
  long skew = System.currentTimeMillis() - serverCurrentTime;
 skew = (skew  0 ? -skew : skew);
 if (skew  maxSkew) {.



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Commented] (HBASE-9902) Region Server is starting normally even if clock skew is more than default 30 seconds(or any configured). - Regionserver node time is greater than master node time

2013-11-12 Thread Hudson (JIRA)

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

Hudson commented on HBASE-9902:
---

SUCCESS: Integrated in HBase-TRUNK-on-Hadoop-2.0.0 #835 (See 
[https://builds.apache.org/job/HBase-TRUNK-on-Hadoop-2.0.0/835/])
HBASE-9902 Region Server is starting normally even if clock skew is more than 
default 30 seconds(or any configured). - Regionserver node time is greater 
than master node time(Kashif) (rajeshbabu: rev 1541112)
* 
/hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/master/ServerManager.java
* 
/hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestClockSkewDetection.java


 Region Server is starting normally even if clock skew is more than default 30 
 seconds(or any configured). - Regionserver node time is greater than master 
 node time
 

 Key: HBASE-9902
 URL: https://issues.apache.org/jira/browse/HBASE-9902
 Project: HBase
  Issue Type: Bug
  Components: master
Affects Versions: 0.94.11
Reporter: Kashif J S
Assignee: Kashif J S
 Fix For: 0.98.0, 0.96.1, 0.94.14

 Attachments: HBASE-9902.patch, HBASE-9902_v2-0.94.patch, 
 HBASE-9902_v2.patch


 When Region server's time is ahead of Master's time and the difference is 
 more than hbase.master.maxclockskew value, region server startup is not 
 failing with ClockOutOfSyncException.
 This causes some abnormal behavior as detected by our Tests.
 ServerManager.java#checkClockSkew
   long skew = System.currentTimeMillis() - serverCurrentTime;
 if (skew  maxSkew) {
   String message = Server  + serverName +  has been  +
 rejected; Reported time is too far out of sync with master.   +
 Time difference of  + skew + ms  max allowed of  + maxSkew + 
 ms;
   LOG.warn(message);
   throw new ClockOutOfSyncException(message);
 }
 Above line results in negative value when Master's time is lesser than 
 region server time and   if (skew  maxSkew)  check fails to find the skew 
 in this case.
 Please Note: This was tested in hbase 0.94.11 version and the trunk also 
 currently has the same logic.
 The fix for the same would be to make the skew positive value first as below:
  long skew = System.currentTimeMillis() - serverCurrentTime;
 skew = (skew  0 ? -skew : skew);
 if (skew  maxSkew) {.



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Commented] (HBASE-9902) Region Server is starting normally even if clock skew is more than default 30 seconds(or any configured). - Regionserver node time is greater than master node time

2013-11-12 Thread Hudson (JIRA)

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

Hudson commented on HBASE-9902:
---

SUCCESS: Integrated in HBase-TRUNK #4678 (See 
[https://builds.apache.org/job/HBase-TRUNK/4678/])
HBASE-9902 Region Server is starting normally even if clock skew is more than 
default 30 seconds(or any configured). - Regionserver node time is greater 
than master node time(Kashif) (rajeshbabu: rev 1541112)
* 
/hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/master/ServerManager.java
* 
/hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestClockSkewDetection.java


 Region Server is starting normally even if clock skew is more than default 30 
 seconds(or any configured). - Regionserver node time is greater than master 
 node time
 

 Key: HBASE-9902
 URL: https://issues.apache.org/jira/browse/HBASE-9902
 Project: HBase
  Issue Type: Bug
  Components: master
Affects Versions: 0.94.11
Reporter: Kashif J S
Assignee: Kashif J S
 Fix For: 0.98.0, 0.96.1, 0.94.14

 Attachments: HBASE-9902.patch, HBASE-9902_v2-0.94.patch, 
 HBASE-9902_v2.patch


 When Region server's time is ahead of Master's time and the difference is 
 more than hbase.master.maxclockskew value, region server startup is not 
 failing with ClockOutOfSyncException.
 This causes some abnormal behavior as detected by our Tests.
 ServerManager.java#checkClockSkew
   long skew = System.currentTimeMillis() - serverCurrentTime;
 if (skew  maxSkew) {
   String message = Server  + serverName +  has been  +
 rejected; Reported time is too far out of sync with master.   +
 Time difference of  + skew + ms  max allowed of  + maxSkew + 
 ms;
   LOG.warn(message);
   throw new ClockOutOfSyncException(message);
 }
 Above line results in negative value when Master's time is lesser than 
 region server time and   if (skew  maxSkew)  check fails to find the skew 
 in this case.
 Please Note: This was tested in hbase 0.94.11 version and the trunk also 
 currently has the same logic.
 The fix for the same would be to make the skew positive value first as below:
  long skew = System.currentTimeMillis() - serverCurrentTime;
 skew = (skew  0 ? -skew : skew);
 if (skew  maxSkew) {.



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Commented] (HBASE-9902) Region Server is starting normally even if clock skew is more than default 30 seconds(or any configured). - Regionserver node time is greater than master node time

2013-11-12 Thread Hudson (JIRA)

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

Hudson commented on HBASE-9902:
---

SUCCESS: Integrated in hbase-0.96 #187 (See 
[https://builds.apache.org/job/hbase-0.96/187/])
HBASE-9902 Region Server is starting normally even if clock skew is more than 
default 30 seconds(or any configured). - Regionserver node time is greater 
than master node time(Kashif) (rajeshbabu: rev 1541113)
* 
/hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/master/ServerManager.java
* 
/hbase/branches/0.96/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestClockSkewDetection.java


 Region Server is starting normally even if clock skew is more than default 30 
 seconds(or any configured). - Regionserver node time is greater than master 
 node time
 

 Key: HBASE-9902
 URL: https://issues.apache.org/jira/browse/HBASE-9902
 Project: HBase
  Issue Type: Bug
  Components: master
Affects Versions: 0.94.11
Reporter: Kashif J S
Assignee: Kashif J S
 Fix For: 0.98.0, 0.96.1, 0.94.14

 Attachments: HBASE-9902.patch, HBASE-9902_v2-0.94.patch, 
 HBASE-9902_v2.patch


 When Region server's time is ahead of Master's time and the difference is 
 more than hbase.master.maxclockskew value, region server startup is not 
 failing with ClockOutOfSyncException.
 This causes some abnormal behavior as detected by our Tests.
 ServerManager.java#checkClockSkew
   long skew = System.currentTimeMillis() - serverCurrentTime;
 if (skew  maxSkew) {
   String message = Server  + serverName +  has been  +
 rejected; Reported time is too far out of sync with master.   +
 Time difference of  + skew + ms  max allowed of  + maxSkew + 
 ms;
   LOG.warn(message);
   throw new ClockOutOfSyncException(message);
 }
 Above line results in negative value when Master's time is lesser than 
 region server time and   if (skew  maxSkew)  check fails to find the skew 
 in this case.
 Please Note: This was tested in hbase 0.94.11 version and the trunk also 
 currently has the same logic.
 The fix for the same would be to make the skew positive value first as below:
  long skew = System.currentTimeMillis() - serverCurrentTime;
 skew = (skew  0 ? -skew : skew);
 if (skew  maxSkew) {.



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Commented] (HBASE-9902) Region Server is starting normally even if clock skew is more than default 30 seconds(or any configured). - Regionserver node time is greater than master node time

2013-11-12 Thread Hudson (JIRA)

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

Hudson commented on HBASE-9902:
---

SUCCESS: Integrated in HBase-0.94-security #334 (See 
[https://builds.apache.org/job/HBase-0.94-security/334/])
HBASE-9902 Region Server is starting normally even if clock skew is more than 
default 30 seconds(or any configured). - Regionserver node time is greater 
than master node time(Kashif) (rajeshbabu: rev 1541115)
* 
/hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/master/ServerManager.java
* 
/hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/master/TestClockSkewDetection.java


 Region Server is starting normally even if clock skew is more than default 30 
 seconds(or any configured). - Regionserver node time is greater than master 
 node time
 

 Key: HBASE-9902
 URL: https://issues.apache.org/jira/browse/HBASE-9902
 Project: HBase
  Issue Type: Bug
  Components: master
Affects Versions: 0.94.11
Reporter: Kashif J S
Assignee: Kashif J S
 Fix For: 0.98.0, 0.96.1, 0.94.14

 Attachments: HBASE-9902.patch, HBASE-9902_v2-0.94.patch, 
 HBASE-9902_v2.patch


 When Region server's time is ahead of Master's time and the difference is 
 more than hbase.master.maxclockskew value, region server startup is not 
 failing with ClockOutOfSyncException.
 This causes some abnormal behavior as detected by our Tests.
 ServerManager.java#checkClockSkew
   long skew = System.currentTimeMillis() - serverCurrentTime;
 if (skew  maxSkew) {
   String message = Server  + serverName +  has been  +
 rejected; Reported time is too far out of sync with master.   +
 Time difference of  + skew + ms  max allowed of  + maxSkew + 
 ms;
   LOG.warn(message);
   throw new ClockOutOfSyncException(message);
 }
 Above line results in negative value when Master's time is lesser than 
 region server time and   if (skew  maxSkew)  check fails to find the skew 
 in this case.
 Please Note: This was tested in hbase 0.94.11 version and the trunk also 
 currently has the same logic.
 The fix for the same would be to make the skew positive value first as below:
  long skew = System.currentTimeMillis() - serverCurrentTime;
 skew = (skew  0 ? -skew : skew);
 if (skew  maxSkew) {.



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Commented] (HBASE-9902) Region Server is starting normally even if clock skew is more than default 30 seconds(or any configured). - Regionserver node time is greater than master node time

2013-11-12 Thread Hudson (JIRA)

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

Hudson commented on HBASE-9902:
---

SUCCESS: Integrated in HBase-0.94 #1200 (See 
[https://builds.apache.org/job/HBase-0.94/1200/])
HBASE-9902 Region Server is starting normally even if clock skew is more than 
default 30 seconds(or any configured). - Regionserver node time is greater 
than master node time(Kashif) (rajeshbabu: rev 1541115)
* 
/hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/master/ServerManager.java
* 
/hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/master/TestClockSkewDetection.java


 Region Server is starting normally even if clock skew is more than default 30 
 seconds(or any configured). - Regionserver node time is greater than master 
 node time
 

 Key: HBASE-9902
 URL: https://issues.apache.org/jira/browse/HBASE-9902
 Project: HBase
  Issue Type: Bug
  Components: master
Affects Versions: 0.94.11
Reporter: Kashif J S
Assignee: Kashif J S
 Fix For: 0.98.0, 0.96.1, 0.94.14

 Attachments: HBASE-9902.patch, HBASE-9902_v2-0.94.patch, 
 HBASE-9902_v2.patch


 When Region server's time is ahead of Master's time and the difference is 
 more than hbase.master.maxclockskew value, region server startup is not 
 failing with ClockOutOfSyncException.
 This causes some abnormal behavior as detected by our Tests.
 ServerManager.java#checkClockSkew
   long skew = System.currentTimeMillis() - serverCurrentTime;
 if (skew  maxSkew) {
   String message = Server  + serverName +  has been  +
 rejected; Reported time is too far out of sync with master.   +
 Time difference of  + skew + ms  max allowed of  + maxSkew + 
 ms;
   LOG.warn(message);
   throw new ClockOutOfSyncException(message);
 }
 Above line results in negative value when Master's time is lesser than 
 region server time and   if (skew  maxSkew)  check fails to find the skew 
 in this case.
 Please Note: This was tested in hbase 0.94.11 version and the trunk also 
 currently has the same logic.
 The fix for the same would be to make the skew positive value first as below:
  long skew = System.currentTimeMillis() - serverCurrentTime;
 skew = (skew  0 ? -skew : skew);
 if (skew  maxSkew) {.



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Commented] (HBASE-9902) Region Server is starting normally even if clock skew is more than default 30 seconds(or any configured). - Regionserver node time is greater than master node time

2013-11-11 Thread Hadoop QA (JIRA)

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

Hadoop QA commented on HBASE-9902:
--

{color:red}-1 overall{color}.  Here are the results of testing the latest 
attachment 
  
http://issues.apache.org/jira/secure/attachment/12613119/HBASE-9902_v2-0.94.patch
  against trunk revision .

{color:green}+1 @author{color}.  The patch does not contain any @author 
tags.

{color:green}+1 tests included{color}.  The patch appears to include 3 new 
or modified tests.

{color:red}-1 patch{color}.  The patch command could not apply the patch.

Console output: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7809//console

This message is automatically generated.

 Region Server is starting normally even if clock skew is more than default 30 
 seconds(or any configured). - Regionserver node time is greater than master 
 node time
 

 Key: HBASE-9902
 URL: https://issues.apache.org/jira/browse/HBASE-9902
 Project: HBase
  Issue Type: Bug
  Components: master
Affects Versions: 0.94.11
Reporter: Kashif J S
Assignee: Kashif J S
 Fix For: 0.98.0, 0.96.1, 0.94.14

 Attachments: HBASE-9902.patch, HBASE-9902_v2-0.94.patch, 
 HBASE-9902_v2.patch


 When Region server's time is ahead of Master's time and the difference is 
 more than hbase.master.maxclockskew value, region server startup is not 
 failing with ClockOutOfSyncException.
 This causes some abnormal behavior as detected by our Tests.
 ServerManager.java#checkClockSkew
   long skew = System.currentTimeMillis() - serverCurrentTime;
 if (skew  maxSkew) {
   String message = Server  + serverName +  has been  +
 rejected; Reported time is too far out of sync with master.   +
 Time difference of  + skew + ms  max allowed of  + maxSkew + 
 ms;
   LOG.warn(message);
   throw new ClockOutOfSyncException(message);
 }
 Above line results in negative value when Master's time is lesser than 
 region server time and   if (skew  maxSkew)  check fails to find the skew 
 in this case.
 Please Note: This was tested in hbase 0.94.11 version and the trunk also 
 currently has the same logic.
 The fix for the same would be to make the skew positive value first as below:
  long skew = System.currentTimeMillis() - serverCurrentTime;
 skew = (skew  0 ? -skew : skew);
 if (skew  maxSkew) {.



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Commented] (HBASE-9902) Region Server is starting normally even if clock skew is more than default 30 seconds(or any configured). - Regionserver node time is greater than master node time

2013-11-11 Thread Hadoop QA (JIRA)

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

Hadoop QA commented on HBASE-9902:
--

{color:red}-1 overall{color}.  Here are the results of testing the latest 
attachment 
  
http://issues.apache.org/jira/secure/attachment/12613138/HBASE-9902_v2-0.94.patch
  against trunk revision .

{color:green}+1 @author{color}.  The patch does not contain any @author 
tags.

{color:green}+1 tests included{color}.  The patch appears to include 3 new 
or modified tests.

{color:red}-1 patch{color}.  The patch command could not apply the patch.

Console output: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7810//console

This message is automatically generated.

 Region Server is starting normally even if clock skew is more than default 30 
 seconds(or any configured). - Regionserver node time is greater than master 
 node time
 

 Key: HBASE-9902
 URL: https://issues.apache.org/jira/browse/HBASE-9902
 Project: HBase
  Issue Type: Bug
  Components: master
Affects Versions: 0.94.11
Reporter: Kashif J S
Assignee: Kashif J S
 Fix For: 0.98.0, 0.96.1, 0.94.14

 Attachments: HBASE-9902.patch, HBASE-9902_v2-0.94.patch, 
 HBASE-9902_v2.patch


 When Region server's time is ahead of Master's time and the difference is 
 more than hbase.master.maxclockskew value, region server startup is not 
 failing with ClockOutOfSyncException.
 This causes some abnormal behavior as detected by our Tests.
 ServerManager.java#checkClockSkew
   long skew = System.currentTimeMillis() - serverCurrentTime;
 if (skew  maxSkew) {
   String message = Server  + serverName +  has been  +
 rejected; Reported time is too far out of sync with master.   +
 Time difference of  + skew + ms  max allowed of  + maxSkew + 
 ms;
   LOG.warn(message);
   throw new ClockOutOfSyncException(message);
 }
 Above line results in negative value when Master's time is lesser than 
 region server time and   if (skew  maxSkew)  check fails to find the skew 
 in this case.
 Please Note: This was tested in hbase 0.94.11 version and the trunk also 
 currently has the same logic.
 The fix for the same would be to make the skew positive value first as below:
  long skew = System.currentTimeMillis() - serverCurrentTime;
 skew = (skew  0 ? -skew : skew);
 if (skew  maxSkew) {.



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Commented] (HBASE-9902) Region Server is starting normally even if clock skew is more than default 30 seconds(or any configured). - Regionserver node time is greater than master node time

2013-11-11 Thread stack (JIRA)

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

stack commented on HBASE-9902:
--

+1

 Region Server is starting normally even if clock skew is more than default 30 
 seconds(or any configured). - Regionserver node time is greater than master 
 node time
 

 Key: HBASE-9902
 URL: https://issues.apache.org/jira/browse/HBASE-9902
 Project: HBase
  Issue Type: Bug
  Components: master
Affects Versions: 0.94.11
Reporter: Kashif J S
Assignee: Kashif J S
 Fix For: 0.98.0, 0.96.1, 0.94.14

 Attachments: HBASE-9902.patch, HBASE-9902_v2-0.94.patch, 
 HBASE-9902_v2.patch


 When Region server's time is ahead of Master's time and the difference is 
 more than hbase.master.maxclockskew value, region server startup is not 
 failing with ClockOutOfSyncException.
 This causes some abnormal behavior as detected by our Tests.
 ServerManager.java#checkClockSkew
   long skew = System.currentTimeMillis() - serverCurrentTime;
 if (skew  maxSkew) {
   String message = Server  + serverName +  has been  +
 rejected; Reported time is too far out of sync with master.   +
 Time difference of  + skew + ms  max allowed of  + maxSkew + 
 ms;
   LOG.warn(message);
   throw new ClockOutOfSyncException(message);
 }
 Above line results in negative value when Master's time is lesser than 
 region server time and   if (skew  maxSkew)  check fails to find the skew 
 in this case.
 Please Note: This was tested in hbase 0.94.11 version and the trunk also 
 currently has the same logic.
 The fix for the same would be to make the skew positive value first as below:
  long skew = System.currentTimeMillis() - serverCurrentTime;
 skew = (skew  0 ? -skew : skew);
 if (skew  maxSkew) {.



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Commented] (HBASE-9902) Region Server is starting normally even if clock skew is more than default 30 seconds(or any configured). - Regionserver node time is greater than master node time

2013-11-08 Thread Hadoop QA (JIRA)

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

Hadoop QA commented on HBASE-9902:
--

{color:red}-1 overall{color}.  Here are the results of testing the latest 
attachment 
  http://issues.apache.org/jira/secure/attachment/12612809/HBASE-9902_v2.patch
  against trunk revision .

{color:green}+1 @author{color}.  The patch does not contain any @author 
tags.

{color:green}+1 tests included{color}.  The patch appears to include 3 new 
or modified tests.

{color:green}+1 hadoop1.0{color}.  The patch compiles against the hadoop 
1.0 profile.

{color:green}+1 hadoop2.0{color}.  The patch compiles against the hadoop 
2.0 profile.

{color:red}-1 javadoc{color}.  The javadoc tool appears to have generated 1 
warning messages.

{color:green}+1 javac{color}.  The applied patch does not increase the 
total number of javac compiler warnings.

{color:green}+1 findbugs{color}.  The patch does not introduce any new 
Findbugs (version 1.3.9) warnings.

{color:green}+1 release audit{color}.  The applied patch does not increase 
the total number of release audit warnings.

{color:green}+1 lineLengths{color}.  The patch does not introduce lines 
longer than 100

{color:red}-1 site{color}.  The patch appears to cause mvn site goal to 
fail.

{color:green}+1 core tests{color}.  The patch passed unit tests in .

Test results: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7795//testReport/
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7795//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-prefix-tree.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7795//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-client.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7795//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-common.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7795//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-protocol.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7795//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-server.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7795//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-hadoop1-compat.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7795//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-examples.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7795//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-thrift.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7795//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-hadoop-compat.html
Console output: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7795//console

This message is automatically generated.

 Region Server is starting normally even if clock skew is more than default 30 
 seconds(or any configured). - Regionserver node time is greater than master 
 node time
 

 Key: HBASE-9902
 URL: https://issues.apache.org/jira/browse/HBASE-9902
 Project: HBase
  Issue Type: Bug
  Components: master
Affects Versions: 0.94.11
Reporter: Kashif J S
Assignee: Kashif J S
 Fix For: 0.98.0, 0.96.1, 0.94.14

 Attachments: HBASE-9902.patch, HBASE-9902_v2.patch


 When Region server's time is ahead of Master's time and the difference is 
 more than hbase.master.maxclockskew value, region server startup is not 
 failing with ClockOutOfSyncException.
 This causes some abnormal behavior as detected by our Tests.
 ServerManager.java#checkClockSkew
   long skew = System.currentTimeMillis() - serverCurrentTime;
 if (skew  maxSkew) {
   String message = Server  + serverName +  has been  +
 rejected; Reported time is too far out of sync with master.   +
 Time difference of  + skew + ms  max allowed of  + maxSkew + 
 ms;
   LOG.warn(message);
   throw new ClockOutOfSyncException(message);
 }
 Above line results in negative value when Master's time is lesser than 
 region server time and   if (skew  maxSkew)  check fails to find the skew 
 in this case.
 Please Note: This was tested in hbase 0.94.11 version and the trunk also 
 currently has the same logic.
 The fix for the same would be to make the skew positive value first as below:
  long skew = System.currentTimeMillis() - serverCurrentTime;
 skew = (skew  0 ? -skew : skew);
 if (skew  maxSkew) 

[jira] [Commented] (HBASE-9902) Region Server is starting normally even if clock skew is more than default 30 seconds(or any configured). - Regionserver node time is greater than master node time

2013-11-08 Thread rajeshbabu (JIRA)

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

rajeshbabu commented on HBASE-9902:
---

+1

 Region Server is starting normally even if clock skew is more than default 30 
 seconds(or any configured). - Regionserver node time is greater than master 
 node time
 

 Key: HBASE-9902
 URL: https://issues.apache.org/jira/browse/HBASE-9902
 Project: HBase
  Issue Type: Bug
  Components: master
Affects Versions: 0.94.11
Reporter: Kashif J S
Assignee: Kashif J S
 Fix For: 0.98.0, 0.96.1, 0.94.14

 Attachments: HBASE-9902.patch, HBASE-9902_v2.patch


 When Region server's time is ahead of Master's time and the difference is 
 more than hbase.master.maxclockskew value, region server startup is not 
 failing with ClockOutOfSyncException.
 This causes some abnormal behavior as detected by our Tests.
 ServerManager.java#checkClockSkew
   long skew = System.currentTimeMillis() - serverCurrentTime;
 if (skew  maxSkew) {
   String message = Server  + serverName +  has been  +
 rejected; Reported time is too far out of sync with master.   +
 Time difference of  + skew + ms  max allowed of  + maxSkew + 
 ms;
   LOG.warn(message);
   throw new ClockOutOfSyncException(message);
 }
 Above line results in negative value when Master's time is lesser than 
 region server time and   if (skew  maxSkew)  check fails to find the skew 
 in this case.
 Please Note: This was tested in hbase 0.94.11 version and the trunk also 
 currently has the same logic.
 The fix for the same would be to make the skew positive value first as below:
  long skew = System.currentTimeMillis() - serverCurrentTime;
 skew = (skew  0 ? -skew : skew);
 if (skew  maxSkew) {.



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Commented] (HBASE-9902) Region Server is starting normally even if clock skew is more than default 30 seconds(or any configured). - Regionserver node time is greater than master node time

2013-11-08 Thread Ted Yu (JIRA)

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

Ted Yu commented on HBASE-9902:
---

+1

Patch is needed for 0.94 

 Region Server is starting normally even if clock skew is more than default 30 
 seconds(or any configured). - Regionserver node time is greater than master 
 node time
 

 Key: HBASE-9902
 URL: https://issues.apache.org/jira/browse/HBASE-9902
 Project: HBase
  Issue Type: Bug
  Components: master
Affects Versions: 0.94.11
Reporter: Kashif J S
Assignee: Kashif J S
 Fix For: 0.98.0, 0.96.1, 0.94.14

 Attachments: HBASE-9902.patch, HBASE-9902_v2.patch


 When Region server's time is ahead of Master's time and the difference is 
 more than hbase.master.maxclockskew value, region server startup is not 
 failing with ClockOutOfSyncException.
 This causes some abnormal behavior as detected by our Tests.
 ServerManager.java#checkClockSkew
   long skew = System.currentTimeMillis() - serverCurrentTime;
 if (skew  maxSkew) {
   String message = Server  + serverName +  has been  +
 rejected; Reported time is too far out of sync with master.   +
 Time difference of  + skew + ms  max allowed of  + maxSkew + 
 ms;
   LOG.warn(message);
   throw new ClockOutOfSyncException(message);
 }
 Above line results in negative value when Master's time is lesser than 
 region server time and   if (skew  maxSkew)  check fails to find the skew 
 in this case.
 Please Note: This was tested in hbase 0.94.11 version and the trunk also 
 currently has the same logic.
 The fix for the same would be to make the skew positive value first as below:
  long skew = System.currentTimeMillis() - serverCurrentTime;
 skew = (skew  0 ? -skew : skew);
 if (skew  maxSkew) {.



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Commented] (HBASE-9902) Region Server is starting normally even if clock skew is more than default 30 seconds(or any configured). - Regionserver node time is greater than master node time

2013-11-07 Thread Hadoop QA (JIRA)

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

Hadoop QA commented on HBASE-9902:
--

{color:red}-1 overall{color}.  Here are the results of testing the latest 
attachment 
  http://issues.apache.org/jira/secure/attachment/12612543/HBASE-9902.patch
  against trunk revision .

{color:green}+1 @author{color}.  The patch does not contain any @author 
tags.

{color:green}+1 tests included{color}.  The patch appears to include 3 new 
or modified tests.

{color:green}+1 hadoop1.0{color}.  The patch compiles against the hadoop 
1.0 profile.

{color:green}+1 hadoop2.0{color}.  The patch compiles against the hadoop 
2.0 profile.

{color:red}-1 javadoc{color}.  The javadoc tool appears to have generated 1 
warning messages.

{color:green}+1 javac{color}.  The applied patch does not increase the 
total number of javac compiler warnings.

{color:red}-1 findbugs{color}.  The patch appears to introduce 4 new 
Findbugs (version 1.3.9) warnings.

{color:green}+1 release audit{color}.  The applied patch does not increase 
the total number of release audit warnings.

{color:green}+1 lineLengths{color}.  The patch does not introduce lines 
longer than 100

{color:red}-1 site{color}.  The patch appears to cause mvn site goal to 
fail.

 {color:red}-1 core tests{color}.  The patch failed these unit tests:
   org.apache.hadoop.hbase.master.TestClockSkewDetection

Test results: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7776//testReport/
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7776//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-protocol.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7776//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-thrift.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7776//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-client.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7776//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-examples.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7776//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-hadoop1-compat.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7776//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-prefix-tree.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7776//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-common.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7776//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-server.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7776//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-hadoop-compat.html
Console output: 
https://builds.apache.org/job/PreCommit-HBASE-Build/7776//console

This message is automatically generated.

 Region Server is starting normally even if clock skew is more than default 30 
 seconds(or any configured). - Regionserver node time is greater than master 
 node time
 

 Key: HBASE-9902
 URL: https://issues.apache.org/jira/browse/HBASE-9902
 Project: HBase
  Issue Type: Bug
  Components: master
Affects Versions: 0.94.11
Reporter: Kashif J S
 Fix For: 0.98.0, 0.96.1

 Attachments: HBASE-9902.patch


 When Region server's time is ahead of Master's time and the difference is 
 more than hbase.master.maxclockskew value, region server startup is not 
 failing with ClockOutOfSyncException.
 This causes some abnormal behavior as detected by our Tests.
 ServerManager.java#checkClockSkew
   long skew = System.currentTimeMillis() - serverCurrentTime;
 if (skew  maxSkew) {
   String message = Server  + serverName +  has been  +
 rejected; Reported time is too far out of sync with master.   +
 Time difference of  + skew + ms  max allowed of  + maxSkew + 
 ms;
   LOG.warn(message);
   throw new ClockOutOfSyncException(message);
 }
 Above line results in negative value when Master's time is lesser than 
 region server time and   if (skew  maxSkew)  check fails to find the skew 
 in this case.
 Please Note: This was tested in hbase 0.94.11 version and the trunk also 
 currently has the same logic.
 The fix for the same would be to make the skew positive value first as below:
  long skew = System.currentTimeMillis() - serverCurrentTime;
 skew = (skew  0 ? -skew : skew);
 if (skew  

[jira] [Commented] (HBASE-9902) Region Server is starting normally even if clock skew is more than default 30 seconds(or any configured). - Regionserver node time is greater than master node time

2013-11-06 Thread Jyothi Mandava (JIRA)

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

Jyothi Mandava commented on HBASE-9902:
---

we can use change as below.

 long skew = Math.abs(System.currentTimeMillis() - serverCurrentTime);
 if (skew  maxSkew) 

 Region Server is starting normally even if clock skew is more than default 30 
 seconds(or any configured). - Regionserver node time is greater than master 
 node time
 

 Key: HBASE-9902
 URL: https://issues.apache.org/jira/browse/HBASE-9902
 Project: HBase
  Issue Type: Bug
  Components: master
Affects Versions: 0.94.11
Reporter: Kashif J S

 When Region server's time is ahead of Master's time and the difference is 
 more than hbase.master.maxclockskew value, region server startup is not 
 failing with ClockOutOfSyncException.
 This causes some abnormal behavior as detected by our Tests.
 ServerManager.java#checkClockSkew
   long skew = System.currentTimeMillis() - serverCurrentTime;
 if (skew  maxSkew) {
   String message = Server  + serverName +  has been  +
 rejected; Reported time is too far out of sync with master.   +
 Time difference of  + skew + ms  max allowed of  + maxSkew + 
 ms;
   LOG.warn(message);
   throw new ClockOutOfSyncException(message);
 }
 Above line results in negative value when Master's time is lesser than 
 region server time and   if (skew  maxSkew)  check fails to find the skew 
 in this case.
 Please Note: This was tested in hbase 0.94.11 version and the trunk also 
 currently has the same logic.
 The fix for the same would be to make the skew positive value first as below:
  long skew = System.currentTimeMillis() - serverCurrentTime;
 skew = (skew  0 ? -skew : skew);
 if (skew  maxSkew) {.



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Commented] (HBASE-9902) Region Server is starting normally even if clock skew is more than default 30 seconds(or any configured). - Regionserver node time is greater than master node time

2013-11-06 Thread Nicolas Liochon (JIRA)

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

Nicolas Liochon commented on HBASE-9902:


bq. we can use change as below.
That would do it :-)
Do you want to submit a patch, [~jyothi.mandava]?

 Region Server is starting normally even if clock skew is more than default 30 
 seconds(or any configured). - Regionserver node time is greater than master 
 node time
 

 Key: HBASE-9902
 URL: https://issues.apache.org/jira/browse/HBASE-9902
 Project: HBase
  Issue Type: Bug
  Components: master
Affects Versions: 0.94.11
Reporter: Kashif J S

 When Region server's time is ahead of Master's time and the difference is 
 more than hbase.master.maxclockskew value, region server startup is not 
 failing with ClockOutOfSyncException.
 This causes some abnormal behavior as detected by our Tests.
 ServerManager.java#checkClockSkew
   long skew = System.currentTimeMillis() - serverCurrentTime;
 if (skew  maxSkew) {
   String message = Server  + serverName +  has been  +
 rejected; Reported time is too far out of sync with master.   +
 Time difference of  + skew + ms  max allowed of  + maxSkew + 
 ms;
   LOG.warn(message);
   throw new ClockOutOfSyncException(message);
 }
 Above line results in negative value when Master's time is lesser than 
 region server time and   if (skew  maxSkew)  check fails to find the skew 
 in this case.
 Please Note: This was tested in hbase 0.94.11 version and the trunk also 
 currently has the same logic.
 The fix for the same would be to make the skew positive value first as below:
  long skew = System.currentTimeMillis() - serverCurrentTime;
 skew = (skew  0 ? -skew : skew);
 if (skew  maxSkew) {.



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Commented] (HBASE-9902) Region Server is starting normally even if clock skew is more than default 30 seconds(or any configured). - Regionserver node time is greater than master node time

2013-11-06 Thread Jyothi Mandava (JIRA)

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

Jyothi Mandava commented on HBASE-9902:
---

Kashif will submit the patch soon for 0.94, 0.96 and trunk versions

 Region Server is starting normally even if clock skew is more than default 30 
 seconds(or any configured). - Regionserver node time is greater than master 
 node time
 

 Key: HBASE-9902
 URL: https://issues.apache.org/jira/browse/HBASE-9902
 Project: HBase
  Issue Type: Bug
  Components: master
Affects Versions: 0.94.11
Reporter: Kashif J S

 When Region server's time is ahead of Master's time and the difference is 
 more than hbase.master.maxclockskew value, region server startup is not 
 failing with ClockOutOfSyncException.
 This causes some abnormal behavior as detected by our Tests.
 ServerManager.java#checkClockSkew
   long skew = System.currentTimeMillis() - serverCurrentTime;
 if (skew  maxSkew) {
   String message = Server  + serverName +  has been  +
 rejected; Reported time is too far out of sync with master.   +
 Time difference of  + skew + ms  max allowed of  + maxSkew + 
 ms;
   LOG.warn(message);
   throw new ClockOutOfSyncException(message);
 }
 Above line results in negative value when Master's time is lesser than 
 region server time and   if (skew  maxSkew)  check fails to find the skew 
 in this case.
 Please Note: This was tested in hbase 0.94.11 version and the trunk also 
 currently has the same logic.
 The fix for the same would be to make the skew positive value first as below:
  long skew = System.currentTimeMillis() - serverCurrentTime;
 skew = (skew  0 ? -skew : skew);
 if (skew  maxSkew) {.



--
This message was sent by Atlassian JIRA
(v6.1#6144)