[jira] [Commented] (ZOOKEEPER-1506) Re-try DNS hostname -> IP resolution if node connection fails

2014-05-16 Thread Diwaker Gupta (JIRA)

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

Diwaker Gupta commented on ZOOKEEPER-1506:
--

This is a severe issue in any environment that uses DNSMasq or relies on DHCP 
for DNS mappings. Would really like to see this fixed for 3.5.0, or better yet, 
the next bugfix release in 3.4.x if there's going to be one.

> Re-try DNS hostname -> IP resolution if node connection fails
> -
>
> Key: ZOOKEEPER-1506
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1506
> Project: ZooKeeper
>  Issue Type: Improvement
>  Components: server
>Affects Versions: 3.4.5
> Environment: Ubuntu 11.04 64-bit
>Reporter: Mike Heffner
>Assignee: Michael Lasevich
>Priority: Critical
>  Labels: patch
> Fix For: 3.5.0
>
> Attachments: ZOOKEEPER-1506.patch, ZOOKEEPER-1506.patch, 
> zk-dns-caching-refresh.patch
>
>
> In our zoo.cfg we use hostnames to identify the ZK servers that are part of 
> an ensemble. These hostnames are configured with a low (<= 60s) TTL and the 
> IP address they map to can and does change. Our procedure for 
> replacing/upgrading a ZK node is to boot an entirely new instance and remap 
> the hostname to the new instance's IP address. Our expectation is that when 
> the original ZK node is terminated/shutdown, the remaining nodes in the 
> ensemble would reconnect to the new instance.
> However, what we are noticing is that the remaining ZK nodes do not attempt 
> to re-resolve the hostname->IP mapping for the new server. Once the original 
> ZK node is terminated, the existing servers continue to attempt contacting it 
> at the old IP address. It would be great if the ZK servers could try to 
> re-resolve the hostname when attempting to connect to a lost ZK server, 
> instead of caching the lookup indefinitely. Currently we must do a rolling 
> restart of the ZK ensemble after swapping a node -- which at three nodes 
> means we periodically lose quorum.
> The exact method we are following is to boot new instances in EC2 and attach 
> one, of a set of three, Elastic IP address. External to EC2 this IP address 
> remains the same and maps to whatever instance it is attached to. Internal to 
> EC2, the elastic IP hostname has a TTL of about 45-60 seconds and is remapped 
> to the internal (10.x.y.z) address of the instance it is attached to. 
> Therefore, in our case we would like ZK to pickup the new 10.x.y.z address 
> that the elastic IP hostname gets mapped to and reconnect appropriately.



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


[jira] [Updated] (ZOOKEEPER-1477) Test failures with Java 7 on Mac OS X

2012-09-27 Thread Diwaker Gupta (JIRA)

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

Diwaker Gupta updated ZOOKEEPER-1477:
-

Attachment: with-ZK-1550.txt

Arghh! I accidentally deleted all the logs from the run with the patch :-/ I 
can rerun if that'll help.

> Test failures with Java 7 on Mac OS X
> -
>
> Key: ZOOKEEPER-1477
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1477
> Project: ZooKeeper
>  Issue Type: Bug
>  Components: server, tests
>Affects Versions: 3.4.3
> Environment: Mac OS X Lion (10.7.4)
> Java version:
> java version "1.7.0_04"
> Java(TM) SE Runtime Environment (build 1.7.0_04-b21)
> Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)
>Reporter: Diwaker Gupta
>Priority: Blocker
> Fix For: 3.4.5
>
> Attachments: with-ZK-1550.txt
>
>
> I downloaded ZK 3.4.3 sources and ran {{ant test}}. Many of the tests failed, 
> including ZooKeeperTest. A common symptom was spurious 
> {{ConnectionLossException}}:
> {code}
> 2012-06-01 12:01:23,420 [myid:] - INFO  
> [main:JUnit4ZKTestRunner$LoggedInvokeMethod@54] - TEST METHOD FAILED 
> testDeleteRecursiveAsync
> org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode 
> = ConnectionLoss for /
> at 
> org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
> at 
> org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
> at org.apache.zookeeper.ZooKeeper.setData(ZooKeeper.java:1246)
> at 
> org.apache.zookeeper.ZooKeeperTest.testDeleteRecursiveAsync(ZooKeeperTest.java:77)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ... (snipped)
> {code}
> As background, I was actually investigating some non-deterministic failures 
> when using Netflix's Curator with Java 7 (see 
> https://github.com/Netflix/curator/issues/79). After a while, I figured I 
> should establish a clean ZK baseline first and realized it is actually a ZK 
> issue, not a Curator issue.
> We are trying to migrate to Java 7 but this is a blocking issue for us right 
> now.

--
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] (ZOOKEEPER-1477) Test failures with Java 7 on Mac OS X

2012-09-27 Thread Diwaker Gupta (JIRA)

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

Diwaker Gupta commented on ZOOKEEPER-1477:
--

[~ekoontz] Good prediction -- your patch *significantly* improved things for me!

[~mahadev] Even with Eugene's patch, some tests failed for me. I'm attaching 
summary as well as the logs. I also ran tests without his patch but they're 
still not done (45 min and counting) and many many of them have already failed 
(many of which passed with Eugene's patch). In summary, +2 for the patch! But 
we should still investigate the remaining failures.

> Test failures with Java 7 on Mac OS X
> -
>
> Key: ZOOKEEPER-1477
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1477
> Project: ZooKeeper
>  Issue Type: Bug
>  Components: server, tests
>Affects Versions: 3.4.3
> Environment: Mac OS X Lion (10.7.4)
> Java version:
> java version "1.7.0_04"
> Java(TM) SE Runtime Environment (build 1.7.0_04-b21)
> Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)
>Reporter: Diwaker Gupta
>Priority: Blocker
> Fix For: 3.4.5
>
>
> I downloaded ZK 3.4.3 sources and ran {{ant test}}. Many of the tests failed, 
> including ZooKeeperTest. A common symptom was spurious 
> {{ConnectionLossException}}:
> {code}
> 2012-06-01 12:01:23,420 [myid:] - INFO  
> [main:JUnit4ZKTestRunner$LoggedInvokeMethod@54] - TEST METHOD FAILED 
> testDeleteRecursiveAsync
> org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode 
> = ConnectionLoss for /
> at 
> org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
> at 
> org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
> at org.apache.zookeeper.ZooKeeper.setData(ZooKeeper.java:1246)
> at 
> org.apache.zookeeper.ZooKeeperTest.testDeleteRecursiveAsync(ZooKeeperTest.java:77)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ... (snipped)
> {code}
> As background, I was actually investigating some non-deterministic failures 
> when using Netflix's Curator with Java 7 (see 
> https://github.com/Netflix/curator/issues/79). After a while, I figured I 
> should establish a clean ZK baseline first and realized it is actually a ZK 
> issue, not a Curator issue.
> We are trying to migrate to Java 7 but this is a blocking issue for us right 
> now.

--
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] (ZOOKEEPER-1477) Test failures with Java 7 on Mac OS X

2012-09-27 Thread Diwaker Gupta (JIRA)

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

Diwaker Gupta commented on ZOOKEEPER-1477:
--

Will do. How long should the tests be expected to run for? The last time I ran 
ZK tests (few days ago), they didn't run to completion even after 30 minutes, 
at which point I killed the run.

> Test failures with Java 7 on Mac OS X
> -
>
> Key: ZOOKEEPER-1477
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1477
> Project: ZooKeeper
>  Issue Type: Bug
>  Components: server, tests
>Affects Versions: 3.4.3
> Environment: Mac OS X Lion (10.7.4)
> Java version:
> java version "1.7.0_04"
> Java(TM) SE Runtime Environment (build 1.7.0_04-b21)
> Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)
>Reporter: Diwaker Gupta
>Priority: Blocker
> Fix For: 3.4.5
>
>
> I downloaded ZK 3.4.3 sources and ran {{ant test}}. Many of the tests failed, 
> including ZooKeeperTest. A common symptom was spurious 
> {{ConnectionLossException}}:
> {code}
> 2012-06-01 12:01:23,420 [myid:] - INFO  
> [main:JUnit4ZKTestRunner$LoggedInvokeMethod@54] - TEST METHOD FAILED 
> testDeleteRecursiveAsync
> org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode 
> = ConnectionLoss for /
> at 
> org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
> at 
> org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
> at org.apache.zookeeper.ZooKeeper.setData(ZooKeeper.java:1246)
> at 
> org.apache.zookeeper.ZooKeeperTest.testDeleteRecursiveAsync(ZooKeeperTest.java:77)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ... (snipped)
> {code}
> As background, I was actually investigating some non-deterministic failures 
> when using Netflix's Curator with Java 7 (see 
> https://github.com/Netflix/curator/issues/79). After a while, I figured I 
> should establish a clean ZK baseline first and realized it is actually a ZK 
> issue, not a Curator issue.
> We are trying to migrate to Java 7 but this is a blocking issue for us right 
> now.

--
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] (ZOOKEEPER-1477) Test failures with Java 7 on Mac OS X

2012-09-27 Thread Diwaker Gupta (JIRA)

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

Diwaker Gupta commented on ZOOKEEPER-1477:
--

[~mahadev] Happy to test though I'm pretty sure this is unrelated to 
ZOOKEEPER-1550 -- recall that I'm using Oracle JDK (not OpenJDK) and I'm on 
Mac. I haven't been able to ever successfully run ZK tests on a Mac with JDK7 
(starting with 7u3, now on 7u7). Things were broken with ZK 3.4.3 and have just 
become worse with 3.4.4. Will report back shortly with the patch in 1550.

> Test failures with Java 7 on Mac OS X
> -
>
> Key: ZOOKEEPER-1477
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1477
> Project: ZooKeeper
>  Issue Type: Bug
>  Components: server, tests
>Affects Versions: 3.4.3
> Environment: Mac OS X Lion (10.7.4)
> Java version:
> java version "1.7.0_04"
> Java(TM) SE Runtime Environment (build 1.7.0_04-b21)
> Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)
>Reporter: Diwaker Gupta
>Priority: Blocker
> Fix For: 3.4.5
>
>
> I downloaded ZK 3.4.3 sources and ran {{ant test}}. Many of the tests failed, 
> including ZooKeeperTest. A common symptom was spurious 
> {{ConnectionLossException}}:
> {code}
> 2012-06-01 12:01:23,420 [myid:] - INFO  
> [main:JUnit4ZKTestRunner$LoggedInvokeMethod@54] - TEST METHOD FAILED 
> testDeleteRecursiveAsync
> org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode 
> = ConnectionLoss for /
> at 
> org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
> at 
> org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
> at org.apache.zookeeper.ZooKeeper.setData(ZooKeeper.java:1246)
> at 
> org.apache.zookeeper.ZooKeeperTest.testDeleteRecursiveAsync(ZooKeeperTest.java:77)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ... (snipped)
> {code}
> As background, I was actually investigating some non-deterministic failures 
> when using Netflix's Curator with Java 7 (see 
> https://github.com/Netflix/curator/issues/79). After a while, I figured I 
> should establish a clean ZK baseline first and realized it is actually a ZK 
> issue, not a Curator issue.
> We are trying to migrate to Java 7 but this is a blocking issue for us right 
> now.

--
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] (ZOOKEEPER-1477) Test failures with Java 7 on Mac OS X

2012-09-25 Thread Diwaker Gupta (JIRA)

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

Diwaker Gupta commented on ZOOKEEPER-1477:
--

Update:

* With JDK 7u7 on Mac and ZK 3.4.3, I don't see the ConnectionLoss exceptions 
anymore (rather I haven't yet observed them)
* With JDK 7u7 on Mac and ZK 3.4.4, I see even more ConnectionLoss exceptions 
than before :-/

> Test failures with Java 7 on Mac OS X
> -
>
> Key: ZOOKEEPER-1477
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1477
> Project: ZooKeeper
>  Issue Type: Bug
>  Components: server, tests
>Affects Versions: 3.4.3
> Environment: Mac OS X Lion (10.7.4)
> Java version:
> java version "1.7.0_04"
> Java(TM) SE Runtime Environment (build 1.7.0_04-b21)
> Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)
>Reporter: Diwaker Gupta
>Priority: Critical
>
> I downloaded ZK 3.4.3 sources and ran {{ant test}}. Many of the tests failed, 
> including ZooKeeperTest. A common symptom was spurious 
> {{ConnectionLossException}}:
> {code}
> 2012-06-01 12:01:23,420 [myid:] - INFO  
> [main:JUnit4ZKTestRunner$LoggedInvokeMethod@54] - TEST METHOD FAILED 
> testDeleteRecursiveAsync
> org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode 
> = ConnectionLoss for /
> at 
> org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
> at 
> org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
> at org.apache.zookeeper.ZooKeeper.setData(ZooKeeper.java:1246)
> at 
> org.apache.zookeeper.ZooKeeperTest.testDeleteRecursiveAsync(ZooKeeperTest.java:77)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ... (snipped)
> {code}
> As background, I was actually investigating some non-deterministic failures 
> when using Netflix's Curator with Java 7 (see 
> https://github.com/Netflix/curator/issues/79). After a while, I figured I 
> should establish a clean ZK baseline first and realized it is actually a ZK 
> issue, not a Curator issue.
> We are trying to migrate to Java 7 but this is a blocking issue for us right 
> now.

--
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] (ZOOKEEPER-1477) Test failures with Java 7 on Mac OS X

2012-06-15 Thread Diwaker Gupta (JIRA)

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

Diwaker Gupta commented on ZOOKEEPER-1477:
--

FWIW I upgraded to JDK 7u5 (from Oracle) and still have the exact same problem. 
Here are some of the tests that failed (within ZooKeeperTest):

{noformat}
2012-06-15 13:59:58,654 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@54] - TEST METHOD FAILED 
testDeleteRecursive
2012-06-15 13:59:59,852 [myid:] - INFO  [main:ZKTestCase$1@66] - FAILED 
testDeleteRecursive
2012-06-15 14:00:19,984 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@54] - TEST METHOD FAILED 
testDeleteRecursiveAsync
2012-06-15 14:00:21,097 [myid:] - INFO  [main:ZKTestCase$1@66] - FAILED 
testDeleteRecursiveAsync
2012-06-15 14:00:41,225 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@54] - TEST METHOD FAILED 
testStatWhenPathDoesNotExist
2012-06-15 14:00:42,362 [myid:] - INFO  [main:ZKTestCase$1@66] - FAILED 
testStatWhenPathDoesNotExist
2012-06-15 14:01:42,787 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@54] - TEST METHOD FAILED 
testCreateNodeWithoutData
2012-06-15 14:01:44,452 [myid:] - INFO  [main:ZKTestCase$1@66] - FAILED 
testCreateNodeWithoutData
2012-06-15 14:02:04,577 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@54] - TEST METHOD FAILED 
testACLWithExtraAgruments
2012-06-15 14:02:05,749 [myid:] - INFO  [main:ZKTestCase$1@66] - FAILED 
testACLWithExtraAgruments
2012-06-15 14:02:25,874 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@54] - TEST METHOD FAILED 
testCreatePersistentNode
2012-06-15 14:02:27,324 [myid:] - INFO  [main:ZKTestCase$1@66] - FAILED 
testCreatePersistentNode
2012-06-15 14:02:47,449 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@54] - TEST METHOD FAILED testDelete
2012-06-15 14:02:48,585 [myid:] - INFO  [main:ZKTestCase$1@66] - FAILED 
testDelete
2012-06-15 14:03:08,705 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@54] - TEST METHOD FAILED 
testStatCommand
2012-06-15 14:03:10,173 [myid:] - INFO  [main:ZKTestCase$1@66] - FAILED 
testStatCommand
2012-06-15 14:03:30,295 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@54] - TEST METHOD FAILED 
testInvalidStatCommand
2012-06-15 14:03:31,688 [myid:] - INFO  [main:ZKTestCase$1@66] - FAILED 
testInvalidStatCommand
2012-06-15 14:03:51,809 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@54] - TEST METHOD FAILED testSetData
2012-06-15 14:03:53,674 [myid:] - INFO  [main:ZKTestCase$1@66] - FAILED 
testSetData
2012-06-15 14:04:13,836 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@54] - TEST METHOD FAILED 
testDeleteWithInvalidVersionNo
{noformat}

> Test failures with Java 7 on Mac OS X
> -
>
> Key: ZOOKEEPER-1477
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1477
> Project: ZooKeeper
>  Issue Type: Bug
>  Components: server, tests
>Affects Versions: 3.4.3
> Environment: Mac OS X Lion (10.7.4)
> Java version:
> java version "1.7.0_04"
> Java(TM) SE Runtime Environment (build 1.7.0_04-b21)
> Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)
>Reporter: Diwaker Gupta
>Priority: Critical
>
> I downloaded ZK 3.4.3 sources and ran {{ant test}}. Many of the tests failed, 
> including ZooKeeperTest. A common symptom was spurious 
> {{ConnectionLossException}}:
> {code}
> 2012-06-01 12:01:23,420 [myid:] - INFO  
> [main:JUnit4ZKTestRunner$LoggedInvokeMethod@54] - TEST METHOD FAILED 
> testDeleteRecursiveAsync
> org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode 
> = ConnectionLoss for /
> at 
> org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
> at 
> org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
> at org.apache.zookeeper.ZooKeeper.setData(ZooKeeper.java:1246)
> at 
> org.apache.zookeeper.ZooKeeperTest.testDeleteRecursiveAsync(ZooKeeperTest.java:77)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ... (snipped)
> {code}
> As background, I was actually investigating some non-deterministic failures 
> when using Netflix's Curator with Java 7 (see 
> https://github.com/Netflix/curator/issues/79). After a while, I figured I 
> should establish a clean ZK baseline first and realized it is actually a ZK 
> issue, not a Curator issue.
> We are trying to migrate to Java 7 but this is a blocking issue for us right 
> now.

--
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] [Commented] (ZOOKEEPER-1477) Test failures with Java 7 on Mac OS X

2012-06-08 Thread Diwaker Gupta (JIRA)

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

Diwaker Gupta commented on ZOOKEEPER-1477:
--

Scott: I've only tested this on my Mac and it happens fairly reliably. We have 
a few other Mac users who can also hit this.

On a related note, one of my colleagues also ran into some failures on Linux, 
but it's not clear if the root cause was the same.

> Test failures with Java 7 on Mac OS X
> -
>
> Key: ZOOKEEPER-1477
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1477
> Project: ZooKeeper
>  Issue Type: Bug
>  Components: server, tests
>Affects Versions: 3.4.3
> Environment: Mac OS X Lion (10.7.4)
> Java version:
> java version "1.7.0_04"
> Java(TM) SE Runtime Environment (build 1.7.0_04-b21)
> Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)
>Reporter: Diwaker Gupta
>Priority: Critical
>
> I downloaded ZK 3.4.3 sources and ran {{ant test}}. Many of the tests failed, 
> including ZooKeeperTest. A common symptom was spurious 
> {{ConnectionLossException}}:
> {code}
> 2012-06-01 12:01:23,420 [myid:] - INFO  
> [main:JUnit4ZKTestRunner$LoggedInvokeMethod@54] - TEST METHOD FAILED 
> testDeleteRecursiveAsync
> org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode 
> = ConnectionLoss for /
> at 
> org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
> at 
> org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
> at org.apache.zookeeper.ZooKeeper.setData(ZooKeeper.java:1246)
> at 
> org.apache.zookeeper.ZooKeeperTest.testDeleteRecursiveAsync(ZooKeeperTest.java:77)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ... (snipped)
> {code}
> As background, I was actually investigating some non-deterministic failures 
> when using Netflix's Curator with Java 7 (see 
> https://github.com/Netflix/curator/issues/79). After a while, I figured I 
> should establish a clean ZK baseline first and realized it is actually a ZK 
> issue, not a Curator issue.
> We are trying to migrate to Java 7 but this is a blocking issue for us right 
> now.

--
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] (ZOOKEEPER-1477) Test failures with Java 7 on Mac OS X

2012-06-04 Thread Diwaker Gupta (JIRA)

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

Diwaker Gupta updated ZOOKEEPER-1477:
-

Summary: Test failures with Java 7 on Mac OS X  (was: Test failures with 
Java 7)

> Test failures with Java 7 on Mac OS X
> -
>
> Key: ZOOKEEPER-1477
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1477
> Project: ZooKeeper
>  Issue Type: Bug
>  Components: server, tests
>Affects Versions: 3.4.3
> Environment: Mac OS X Lion (10.7.4)
> Java version:
> java version "1.7.0_04"
> Java(TM) SE Runtime Environment (build 1.7.0_04-b21)
> Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)
>Reporter: Diwaker Gupta
>Priority: Critical
>
> I downloaded ZK 3.4.3 sources and ran {{ant test}}. Many of the tests failed, 
> including ZooKeeperTest. A common symptom was spurious 
> {{ConnectionLossException}}:
> {code}
> 2012-06-01 12:01:23,420 [myid:] - INFO  
> [main:JUnit4ZKTestRunner$LoggedInvokeMethod@54] - TEST METHOD FAILED 
> testDeleteRecursiveAsync
> org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode 
> = ConnectionLoss for /
> at 
> org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
> at 
> org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
> at org.apache.zookeeper.ZooKeeper.setData(ZooKeeper.java:1246)
> at 
> org.apache.zookeeper.ZooKeeperTest.testDeleteRecursiveAsync(ZooKeeperTest.java:77)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ... (snipped)
> {code}
> As background, I was actually investigating some non-deterministic failures 
> when using Netflix's Curator with Java 7 (see 
> https://github.com/Netflix/curator/issues/79). After a while, I figured I 
> should establish a clean ZK baseline first and realized it is actually a ZK 
> issue, not a Curator issue.
> We are trying to migrate to Java 7 but this is a blocking issue for us right 
> now.

--
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] (ZOOKEEPER-1477) Test failures with Java 7

2012-06-04 Thread Diwaker Gupta (JIRA)

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

Diwaker Gupta commented on ZOOKEEPER-1477:
--

Patrick: I believe the jenkins job runs on Linux. I'm running Java7 on Mac 
natively. Resources are not an issue: my machine as 8G of memory, runs on SSDs 
and there's no virtualization in the picture.

> Test failures with Java 7
> -
>
> Key: ZOOKEEPER-1477
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1477
> Project: ZooKeeper
>  Issue Type: Bug
>  Components: server, tests
>Affects Versions: 3.4.3
> Environment: Mac OS X Lion (10.7.4)
> Java version:
> java version "1.7.0_04"
> Java(TM) SE Runtime Environment (build 1.7.0_04-b21)
> Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)
>Reporter: Diwaker Gupta
>Priority: Critical
>
> I downloaded ZK 3.4.3 sources and ran {{ant test}}. Many of the tests failed, 
> including ZooKeeperTest. A common symptom was spurious 
> {{ConnectionLossException}}:
> {code}
> 2012-06-01 12:01:23,420 [myid:] - INFO  
> [main:JUnit4ZKTestRunner$LoggedInvokeMethod@54] - TEST METHOD FAILED 
> testDeleteRecursiveAsync
> org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode 
> = ConnectionLoss for /
> at 
> org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
> at 
> org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
> at org.apache.zookeeper.ZooKeeper.setData(ZooKeeper.java:1246)
> at 
> org.apache.zookeeper.ZooKeeperTest.testDeleteRecursiveAsync(ZooKeeperTest.java:77)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ... (snipped)
> {code}
> As background, I was actually investigating some non-deterministic failures 
> when using Netflix's Curator with Java 7 (see 
> https://github.com/Netflix/curator/issues/79). After a while, I figured I 
> should establish a clean ZK baseline first and realized it is actually a ZK 
> issue, not a Curator issue.
> We are trying to migrate to Java 7 but this is a blocking issue for us right 
> now.

--
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] [Created] (ZOOKEEPER-1477) Test failures with Java 7

2012-06-01 Thread Diwaker Gupta (JIRA)
Diwaker Gupta created ZOOKEEPER-1477:


 Summary: Test failures with Java 7
 Key: ZOOKEEPER-1477
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1477
 Project: ZooKeeper
  Issue Type: Bug
  Components: server, tests
Affects Versions: 3.4.3
 Environment: Mac OS X Lion (10.7.4)
Java version:
java version "1.7.0_04"
Java(TM) SE Runtime Environment (build 1.7.0_04-b21)
Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)
Reporter: Diwaker Gupta
Priority: Critical


I downloaded ZK 3.4.3 sources and ran {{ant test}}. Many of the tests failed, 
including ZooKeeperTest. A common symptom was spurious 
{{ConnectionLossException}}:

{code}
2012-06-01 12:01:23,420 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@54] - TEST METHOD FAILED 
testDeleteRecursiveAsync
org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = 
ConnectionLoss for /
at org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
at org.apache.zookeeper.ZooKeeper.setData(ZooKeeper.java:1246)
at 
org.apache.zookeeper.ZooKeeperTest.testDeleteRecursiveAsync(ZooKeeperTest.java:77)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
... (snipped)
{code}

As background, I was actually investigating some non-deterministic failures 
when using Netflix's Curator with Java 7 (see 
https://github.com/Netflix/curator/issues/79). After a while, I figured I 
should establish a clean ZK baseline first and realized it is actually a ZK 
issue, not a Curator issue.

We are trying to migrate to Java 7 but this is a blocking issue for us right 
now.

--
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