[jira] [Commented] (RATIS-630) Implement flow control in Ratis

2019-07-26 Thread Jing Chen (JIRA)


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

Jing Chen commented on RATIS-630:
-

Is there any design doc you could share?

> Implement flow control in Ratis
> ---
>
> Key: RATIS-630
> URL: https://issues.apache.org/jira/browse/RATIS-630
> Project: Ratis
>  Issue Type: Bug
>  Components: server
>Reporter: Lokesh Jain
>Priority: Major
>  Labels: ozone
>
> The aim of the Jira is to add flow control in Ratis in order to handle 
> slowness of LogWorker, LogAppender and StateMachine. The idea is to propagate 
> indexes like commit index(LogAppender) and lastAppliedIndex(StateMachine) 
> from followers to leader. The leader can use these indices to determine 
> slowness of a follower and handle client requests accordingly. For instance 
> if one of the follower is lagging behind then client requests demanding 
> commit by all nodes can be rejected by leader.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)


[jira] [Comment Edited] (RATIS-380) RaftGroup#hashCode should take peers into account

2019-07-26 Thread Jing Chen (JIRA)


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

Jing Chen edited comment on RATIS-380 at 7/26/19 6:32 PM:
--

can we use auto_value to refactor this class?

FYI, [https://github.com/google/auto/tree/master/value]


was (Author: jingc):
can we use auto_value to refactor this class?

> RaftGroup#hashCode should take peers into account
> -
>
> Key: RATIS-380
> URL: https://issues.apache.org/jira/browse/RATIS-380
> Project: Ratis
>  Issue Type: Improvement
>Reporter: Ted Yu
>Priority: Minor
>
> Currently RaftGroup#hashCode produces hash code only based on groupId.
> This is unsymmetrical with {{equals}} where peers is also considered.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)


[jira] [Commented] (RATIS-380) RaftGroup#hashCode should take peers into account

2019-07-26 Thread Jing Chen (JIRA)


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

Jing Chen commented on RATIS-380:
-

can we use auto_value to refactor this class?

> RaftGroup#hashCode should take peers into account
> -
>
> Key: RATIS-380
> URL: https://issues.apache.org/jira/browse/RATIS-380
> Project: Ratis
>  Issue Type: Improvement
>Reporter: Ted Yu
>Priority: Minor
>
> Currently RaftGroup#hashCode produces hash code only based on groupId.
> This is unsymmetrical with {{equals}} where peers is also considered.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)


[jira] [Assigned] (RATIS-221) Support new operations in Arithmetic-Example (append, remove/delete)

2018-09-19 Thread Jing Chen (JIRA)


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

Jing Chen reassigned RATIS-221:
---

Assignee: (was: Jing Chen)

> Support new operations in Arithmetic-Example (append, remove/delete)
> 
>
> Key: RATIS-221
> URL: https://issues.apache.org/jira/browse/RATIS-221
> Project: Ratis
>  Issue Type: New Feature
>  Components: examples
>Affects Versions: 0.1.0-alpha
>Reporter: Vinay Banakar
>Priority: Major
>  Labels: features
> Attachments: 
> 0001-RATIS-221-Support-new-operations-in-Arithmetic-Examp.patch
>
>
> New operations can be supported in Arithmetic-Example to provide a more 
> succinct demo for the future users/developers.
> 1. Adding "append" 
>         *Command*: ./client.sh append --name X --value Y
>          *Behavior*: This will increment the variable X by Y. 
>          *Alternative*: Improve "assign" to do variable increments 
>                               ./client.sh assign --name X --value X+Y
>                               [This throws an Exception today]
> 2. Adding "remove/delete" (let's just say remove for now)
>         *Command*: ./client.sh remove --name X 
>          *Behavior*: This should remove variable X from the cluster. 
>          *Alternative*: None



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Assigned] (RATIS-11) Better retry policy support for Raft client

2018-09-14 Thread Jing Chen (JIRA)


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

Jing Chen reassigned RATIS-11:
--

Assignee: (was: Jing Chen)

> Better retry policy support for Raft client
> ---
>
> Key: RATIS-11
> URL: https://issues.apache.org/jira/browse/RATIS-11
> Project: Ratis
>  Issue Type: Improvement
>  Components: client
>Reporter: Jing Zhao
>Priority: Major
> Attachments: 
> 0001-RATIS-11-Better-retry-policy-support-for-Raft-client.patch
>
>
> We should have better retry policy support on the raft client side, such as 
> different retry policies, more flexible retry parameter settings, etc.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Comment Edited] (RATIS-221) Support new operations in Arithmetic-Example (append, remove/delete)

2018-08-17 Thread Jing Chen (JIRA)


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

Jing Chen edited comment on RATIS-221 at 8/18/18 1:26 AM:
--

I implemented the option 2 as the option 1 has been covered.

I also suggest that we could implement one more operation which allows us to 
list all variables.

 

[~szetszwo] could you help me trigger the build, i don't see submit patch 
button in my page.

 

Thanks


was (Author: jingc):
I implemented the option 2 as the option 1 has been covered.

 

I also suggest that we could implement one more operation which allows us to 
list all variables.

> Support new operations in Arithmetic-Example (append, remove/delete)
> 
>
> Key: RATIS-221
> URL: https://issues.apache.org/jira/browse/RATIS-221
> Project: Ratis
>  Issue Type: New Feature
>  Components: examples
>Affects Versions: 0.1.0-alpha
>Reporter: Vinay Banakar
>Assignee: Jing Chen
>Priority: Major
>  Labels: features
> Attachments: 
> 0001-RATIS-221-Support-new-operations-in-Arithmetic-Examp.patch
>
>
> New operations can be supported in Arithmetic-Example to provide a more 
> succinct demo for the future users/developers.
> 1. Adding "append" 
>         *Command*: ./client.sh append --name X --value Y
>          *Behavior*: This will increment the variable X by Y. 
>          *Alternative*: Improve "assign" to do variable increments 
>                               ./client.sh assign --name X --value X+Y
>                               [This throws an Exception today]
> 2. Adding "remove/delete" (let's just say remove for now)
>         *Command*: ./client.sh remove --name X 
>          *Behavior*: This should remove variable X from the cluster. 
>          *Alternative*: None



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (RATIS-221) Support new operations in Arithmetic-Example (append, remove/delete)

2018-08-17 Thread Jing Chen (JIRA)


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

Jing Chen commented on RATIS-221:
-

I implemented the option 2 as the option 1 has been covered.

 

I also suggest that we could implement one more operation which allows us to 
list all variables.

> Support new operations in Arithmetic-Example (append, remove/delete)
> 
>
> Key: RATIS-221
> URL: https://issues.apache.org/jira/browse/RATIS-221
> Project: Ratis
>  Issue Type: New Feature
>  Components: examples
>Affects Versions: 0.1.0-alpha
>Reporter: Vinay Banakar
>Assignee: Jing Chen
>Priority: Major
>  Labels: features
> Attachments: 
> 0001-RATIS-221-Support-new-operations-in-Arithmetic-Examp.patch
>
>
> New operations can be supported in Arithmetic-Example to provide a more 
> succinct demo for the future users/developers.
> 1. Adding "append" 
>         *Command*: ./client.sh append --name X --value Y
>          *Behavior*: This will increment the variable X by Y. 
>          *Alternative*: Improve "assign" to do variable increments 
>                               ./client.sh assign --name X --value X+Y
>                               [This throws an Exception today]
> 2. Adding "remove/delete" (let's just say remove for now)
>         *Command*: ./client.sh remove --name X 
>          *Behavior*: This should remove variable X from the cluster. 
>          *Alternative*: None



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (RATIS-221) Support new operations in Arithmetic-Example (append, remove/delete)

2018-08-17 Thread Jing Chen (JIRA)


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

Jing Chen updated RATIS-221:

Attachment: 0001-RATIS-221-Support-new-operations-in-Arithmetic-Examp.patch

> Support new operations in Arithmetic-Example (append, remove/delete)
> 
>
> Key: RATIS-221
> URL: https://issues.apache.org/jira/browse/RATIS-221
> Project: Ratis
>  Issue Type: New Feature
>  Components: examples
>Affects Versions: 0.1.0-alpha
>Reporter: Vinay Banakar
>Assignee: Jing Chen
>Priority: Major
>  Labels: features
> Attachments: 
> 0001-RATIS-221-Support-new-operations-in-Arithmetic-Examp.patch
>
>
> New operations can be supported in Arithmetic-Example to provide a more 
> succinct demo for the future users/developers.
> 1. Adding "append" 
>         *Command*: ./client.sh append --name X --value Y
>          *Behavior*: This will increment the variable X by Y. 
>          *Alternative*: Improve "assign" to do variable increments 
>                               ./client.sh assign --name X --value X+Y
>                               [This throws an Exception today]
> 2. Adding "remove/delete" (let's just say remove for now)
>         *Command*: ./client.sh remove --name X 
>          *Behavior*: This should remove variable X from the cluster. 
>          *Alternative*: None



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (RATIS-299) Error when running start-all.sh in ratis-examples

2018-08-14 Thread Jing Chen (JIRA)


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

Jing Chen commented on RATIS-299:
-

hi [~elserj], thanks for your review. The removal of lzma-java is not related 
to the fix, pom changes should be enough.

I simply include it in this commit as I found it was safe to dump the 
dependency.

Let me know if you have any other concerns.

> Error when running start-all.sh in ratis-examples
> -
>
> Key: RATIS-299
> URL: https://issues.apache.org/jira/browse/RATIS-299
> Project: Ratis
>  Issue Type: Bug
>  Components: examples
>Affects Versions: 0.3.0
>Reporter: Jing Chen
>Assignee: Jing Chen
>Priority: Minor
> Fix For: 0.3.0
>
> Attachments: 
> 0001-RATIS-299.-Error-when-running-start-all.sh-in-ratis-.patch
>
>
> An error happens when running start-all.sh in ratis-examples.
>  
> {noformat}
> ➜  bin git:(master) ./start-all.sh
> /tmp/incubator-ratis/ratis-examples/src/main/bin/../../../target/ratis-examples-0.3.0-SNAPSHOT.jar
> Waiting for the servers
> /tmp/incubator-ratis/ratis-examples/src/main/bin/../../../target/ratis-examples-0.3.0-SNAPSHOT.jar
> /tmp/incubator-ratis/ratis-examples/src/main/bin/../../../target/ratis-examples-0.3.0-SNAPSHOT.jar
> /tmp/incubator-ratis/ratis-examples/src/main/bin/../../../target/ratis-examples-0.3.0-SNAPSHOT.jar
> ➜  bin git:(master) Error: A JNI error has occurred, please check your 
> installation and try again
> Exception in thread "main" java.lang.SecurityException: Invalid signature 
> file digest for Manifest main attributes at 
> sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:330)
>  at 
> sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:263)
>  at java.util.jar.JarVerifier.processEntry(JarVerifier.java:318) at 
> java.util.jar.JarVerifier.update(JarVerifier.java:230) at 
> java.util.jar.JarFile.initializeVerifier(JarFile.java:383) at 
> java.util.jar.JarFile.getInputStream(JarFile.java:450) at 
> sun.misc.URLClassPath$JarLoader$2.getInputStream(URLClassPath.java:977) at 
> sun.misc.Resource.cachedInputStream(Resource.java:77) at 
> sun.misc.Resource.getByteBuffer(Resource.java:160) at 
> java.net.URLClassLoader.defineClass(URLClassLoader.java:454) at 
> java.net.URLClassLoader.access$100(URLClassLoader.java:73) at 
> java.net.URLClassLoader$1.run(URLClassLoader.java:368) at 
> java.net.URLClassLoader$1.run(URLClassLoader.java:362) at 
> java.security.AccessController.doPrivileged(Native Method) at 
> java.net.URLClassLoader.findClass(URLClassLoader.java:361) at 
> java.lang.ClassLoader.loadClass(ClassLoader.java:424) at 
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335) at 
> java.lang.ClassLoader.loadClass(ClassLoader.java:357) at 
> sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:495) Error: 
> A JNI error has occurred, please check your installation and try again 
> Exception in thread "main" java.lang.SecurityException: Invalid signature 
> file digest for Manifest main attributes at 
> sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:330)
>  at 
> sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:263)
>  at java.util.jar.JarVerifier.processEntry(JarVerifier.java:318) at 
> java.util.jar.JarVerifier.update(JarVerifier.java:230) at 
> java.util.jar.JarFile.initializeVerifier(JarFile.java:383) at 
> java.util.jar.JarFile.getInputStream(JarFile.java:450) at 
> sun.misc.URLClassPath$JarLoader$2.getInputStream(URLClassPath.java:977) at 
> sun.misc.Resource.cachedInputStream(Resource.java:77) at 
> sun.misc.Resource.getByteBuffer(Resource.java:160) at 
> java.net.URLClassLoader.defineClass(URLClassLoader.java:454) at 
> java.net.URLClassLoader.access$100(URLClassLoader.java:73) at 
> java.net.URLClassLoader$1.run(URLClassLoader.java:368) at 
> java.net.URLClassLoader$1.run(URLClassLoader.java:362) at 
> java.security.AccessController.doPrivileged(Native Method) at 
> java.net.URLClassLoader.findClass(URLClassLoader.java:361) at 
> java.lang.ClassLoader.loadClass(ClassLoader.java:424) at 
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)Error: A JNI 
> error has occurred, please check your installation and try again Exception in 
> thread "main" at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at 
> sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:495) 
> java.lang.SecurityException: Invalid signature file digest for Manifest main 
> attributes at 
> sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:330)
>  at 
> sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:263)
>  at java.util.jar.JarVerifier.processEntry(JarVeri

[jira] [Updated] (RATIS-299) Error when running start-all.sh in ratis-examples

2018-08-14 Thread Jing Chen (JIRA)


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

Jing Chen updated RATIS-299:

Attachment: 0001-RATIS-299.-Error-when-running-start-all.sh-in-ratis-.patch

> Error when running start-all.sh in ratis-examples
> -
>
> Key: RATIS-299
> URL: https://issues.apache.org/jira/browse/RATIS-299
> Project: Ratis
>  Issue Type: Bug
>  Components: examples
>Affects Versions: 0.3.0
>Reporter: Jing Chen
>Assignee: Jing Chen
>Priority: Minor
> Fix For: 0.3.0
>
> Attachments: 
> 0001-RATIS-299.-Error-when-running-start-all.sh-in-ratis-.patch
>
>
> An error happens when running start-all.sh in ratis-examples.
>  
> {noformat}
> ➜  bin git:(master) ./start-all.sh
> /tmp/incubator-ratis/ratis-examples/src/main/bin/../../../target/ratis-examples-0.3.0-SNAPSHOT.jar
> Waiting for the servers
> /tmp/incubator-ratis/ratis-examples/src/main/bin/../../../target/ratis-examples-0.3.0-SNAPSHOT.jar
> /tmp/incubator-ratis/ratis-examples/src/main/bin/../../../target/ratis-examples-0.3.0-SNAPSHOT.jar
> /tmp/incubator-ratis/ratis-examples/src/main/bin/../../../target/ratis-examples-0.3.0-SNAPSHOT.jar
> ➜  bin git:(master) Error: A JNI error has occurred, please check your 
> installation and try again
> Exception in thread "main" java.lang.SecurityException: Invalid signature 
> file digest for Manifest main attributes at 
> sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:330)
>  at 
> sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:263)
>  at java.util.jar.JarVerifier.processEntry(JarVerifier.java:318) at 
> java.util.jar.JarVerifier.update(JarVerifier.java:230) at 
> java.util.jar.JarFile.initializeVerifier(JarFile.java:383) at 
> java.util.jar.JarFile.getInputStream(JarFile.java:450) at 
> sun.misc.URLClassPath$JarLoader$2.getInputStream(URLClassPath.java:977) at 
> sun.misc.Resource.cachedInputStream(Resource.java:77) at 
> sun.misc.Resource.getByteBuffer(Resource.java:160) at 
> java.net.URLClassLoader.defineClass(URLClassLoader.java:454) at 
> java.net.URLClassLoader.access$100(URLClassLoader.java:73) at 
> java.net.URLClassLoader$1.run(URLClassLoader.java:368) at 
> java.net.URLClassLoader$1.run(URLClassLoader.java:362) at 
> java.security.AccessController.doPrivileged(Native Method) at 
> java.net.URLClassLoader.findClass(URLClassLoader.java:361) at 
> java.lang.ClassLoader.loadClass(ClassLoader.java:424) at 
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335) at 
> java.lang.ClassLoader.loadClass(ClassLoader.java:357) at 
> sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:495) Error: 
> A JNI error has occurred, please check your installation and try again 
> Exception in thread "main" java.lang.SecurityException: Invalid signature 
> file digest for Manifest main attributes at 
> sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:330)
>  at 
> sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:263)
>  at java.util.jar.JarVerifier.processEntry(JarVerifier.java:318) at 
> java.util.jar.JarVerifier.update(JarVerifier.java:230) at 
> java.util.jar.JarFile.initializeVerifier(JarFile.java:383) at 
> java.util.jar.JarFile.getInputStream(JarFile.java:450) at 
> sun.misc.URLClassPath$JarLoader$2.getInputStream(URLClassPath.java:977) at 
> sun.misc.Resource.cachedInputStream(Resource.java:77) at 
> sun.misc.Resource.getByteBuffer(Resource.java:160) at 
> java.net.URLClassLoader.defineClass(URLClassLoader.java:454) at 
> java.net.URLClassLoader.access$100(URLClassLoader.java:73) at 
> java.net.URLClassLoader$1.run(URLClassLoader.java:368) at 
> java.net.URLClassLoader$1.run(URLClassLoader.java:362) at 
> java.security.AccessController.doPrivileged(Native Method) at 
> java.net.URLClassLoader.findClass(URLClassLoader.java:361) at 
> java.lang.ClassLoader.loadClass(ClassLoader.java:424) at 
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)Error: A JNI 
> error has occurred, please check your installation and try again Exception in 
> thread "main" at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at 
> sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:495) 
> java.lang.SecurityException: Invalid signature file digest for Manifest main 
> attributes at 
> sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:330)
>  at 
> sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:263)
>  at java.util.jar.JarVerifier.processEntry(JarVerifier.java:318) at 
> java.util.jar.JarVerifier.update(JarVerifier.java:230) at 
> java.util.jar.JarFile.initializeVerifier(JarFile.java:383) at 
> java.util.jar.JarFile.getInputStream(JarFile.java:450) at 
> sun.misc.URLClassPat

[jira] [Updated] (RATIS-299) Error when running start-all.sh in ratis-examples

2018-08-14 Thread Jing Chen (JIRA)


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

Jing Chen updated RATIS-299:

Attachment: (was: 
0001-RATIS-299.-Error-when-running-start-all.sh-in-ratis-.patch)

> Error when running start-all.sh in ratis-examples
> -
>
> Key: RATIS-299
> URL: https://issues.apache.org/jira/browse/RATIS-299
> Project: Ratis
>  Issue Type: Bug
>  Components: examples
>Affects Versions: 0.3.0
>Reporter: Jing Chen
>Assignee: Jing Chen
>Priority: Minor
> Fix For: 0.3.0
>
> Attachments: 
> 0001-RATIS-299.-Error-when-running-start-all.sh-in-ratis-.patch
>
>
> An error happens when running start-all.sh in ratis-examples.
>  
> {noformat}
> ➜  bin git:(master) ./start-all.sh
> /tmp/incubator-ratis/ratis-examples/src/main/bin/../../../target/ratis-examples-0.3.0-SNAPSHOT.jar
> Waiting for the servers
> /tmp/incubator-ratis/ratis-examples/src/main/bin/../../../target/ratis-examples-0.3.0-SNAPSHOT.jar
> /tmp/incubator-ratis/ratis-examples/src/main/bin/../../../target/ratis-examples-0.3.0-SNAPSHOT.jar
> /tmp/incubator-ratis/ratis-examples/src/main/bin/../../../target/ratis-examples-0.3.0-SNAPSHOT.jar
> ➜  bin git:(master) Error: A JNI error has occurred, please check your 
> installation and try again
> Exception in thread "main" java.lang.SecurityException: Invalid signature 
> file digest for Manifest main attributes at 
> sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:330)
>  at 
> sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:263)
>  at java.util.jar.JarVerifier.processEntry(JarVerifier.java:318) at 
> java.util.jar.JarVerifier.update(JarVerifier.java:230) at 
> java.util.jar.JarFile.initializeVerifier(JarFile.java:383) at 
> java.util.jar.JarFile.getInputStream(JarFile.java:450) at 
> sun.misc.URLClassPath$JarLoader$2.getInputStream(URLClassPath.java:977) at 
> sun.misc.Resource.cachedInputStream(Resource.java:77) at 
> sun.misc.Resource.getByteBuffer(Resource.java:160) at 
> java.net.URLClassLoader.defineClass(URLClassLoader.java:454) at 
> java.net.URLClassLoader.access$100(URLClassLoader.java:73) at 
> java.net.URLClassLoader$1.run(URLClassLoader.java:368) at 
> java.net.URLClassLoader$1.run(URLClassLoader.java:362) at 
> java.security.AccessController.doPrivileged(Native Method) at 
> java.net.URLClassLoader.findClass(URLClassLoader.java:361) at 
> java.lang.ClassLoader.loadClass(ClassLoader.java:424) at 
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335) at 
> java.lang.ClassLoader.loadClass(ClassLoader.java:357) at 
> sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:495) Error: 
> A JNI error has occurred, please check your installation and try again 
> Exception in thread "main" java.lang.SecurityException: Invalid signature 
> file digest for Manifest main attributes at 
> sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:330)
>  at 
> sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:263)
>  at java.util.jar.JarVerifier.processEntry(JarVerifier.java:318) at 
> java.util.jar.JarVerifier.update(JarVerifier.java:230) at 
> java.util.jar.JarFile.initializeVerifier(JarFile.java:383) at 
> java.util.jar.JarFile.getInputStream(JarFile.java:450) at 
> sun.misc.URLClassPath$JarLoader$2.getInputStream(URLClassPath.java:977) at 
> sun.misc.Resource.cachedInputStream(Resource.java:77) at 
> sun.misc.Resource.getByteBuffer(Resource.java:160) at 
> java.net.URLClassLoader.defineClass(URLClassLoader.java:454) at 
> java.net.URLClassLoader.access$100(URLClassLoader.java:73) at 
> java.net.URLClassLoader$1.run(URLClassLoader.java:368) at 
> java.net.URLClassLoader$1.run(URLClassLoader.java:362) at 
> java.security.AccessController.doPrivileged(Native Method) at 
> java.net.URLClassLoader.findClass(URLClassLoader.java:361) at 
> java.lang.ClassLoader.loadClass(ClassLoader.java:424) at 
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)Error: A JNI 
> error has occurred, please check your installation and try again Exception in 
> thread "main" at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at 
> sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:495) 
> java.lang.SecurityException: Invalid signature file digest for Manifest main 
> attributes at 
> sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:330)
>  at 
> sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:263)
>  at java.util.jar.JarVerifier.processEntry(JarVerifier.java:318) at 
> java.util.jar.JarVerifier.update(JarVerifier.java:230) at 
> java.util.jar.JarFile.initializeVerifier(JarFile.java:383) at 
> java.util.jar.JarFile.getInputStream(JarFile.java:450) at 
> sun.misc

[jira] [Commented] (RATIS-299) Error when running start-all.sh in ratis-examples

2018-08-14 Thread Jing Chen (JIRA)


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

Jing Chen commented on RATIS-299:
-

hi [~elserj] [~szetszwo], it seems that the issue is introduced by RATIS-288. 
Pom cleanup/simplification.

could you review the change?

Thanks

Jing

> Error when running start-all.sh in ratis-examples
> -
>
> Key: RATIS-299
> URL: https://issues.apache.org/jira/browse/RATIS-299
> Project: Ratis
>  Issue Type: Bug
>  Components: examples
>Affects Versions: 0.3.0
>Reporter: Jing Chen
>Assignee: Jing Chen
>Priority: Minor
> Fix For: 0.3.0
>
> Attachments: 
> 0001-RATIS-299.-Error-when-running-start-all.sh-in-ratis-.patch
>
>
> An error happens when running start-all.sh in ratis-examples.
>  
> {noformat}
> ➜  bin git:(master) ./start-all.sh
> /tmp/incubator-ratis/ratis-examples/src/main/bin/../../../target/ratis-examples-0.3.0-SNAPSHOT.jar
> Waiting for the servers
> /tmp/incubator-ratis/ratis-examples/src/main/bin/../../../target/ratis-examples-0.3.0-SNAPSHOT.jar
> /tmp/incubator-ratis/ratis-examples/src/main/bin/../../../target/ratis-examples-0.3.0-SNAPSHOT.jar
> /tmp/incubator-ratis/ratis-examples/src/main/bin/../../../target/ratis-examples-0.3.0-SNAPSHOT.jar
> ➜  bin git:(master) Error: A JNI error has occurred, please check your 
> installation and try again
> Exception in thread "main" java.lang.SecurityException: Invalid signature 
> file digest for Manifest main attributes at 
> sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:330)
>  at 
> sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:263)
>  at java.util.jar.JarVerifier.processEntry(JarVerifier.java:318) at 
> java.util.jar.JarVerifier.update(JarVerifier.java:230) at 
> java.util.jar.JarFile.initializeVerifier(JarFile.java:383) at 
> java.util.jar.JarFile.getInputStream(JarFile.java:450) at 
> sun.misc.URLClassPath$JarLoader$2.getInputStream(URLClassPath.java:977) at 
> sun.misc.Resource.cachedInputStream(Resource.java:77) at 
> sun.misc.Resource.getByteBuffer(Resource.java:160) at 
> java.net.URLClassLoader.defineClass(URLClassLoader.java:454) at 
> java.net.URLClassLoader.access$100(URLClassLoader.java:73) at 
> java.net.URLClassLoader$1.run(URLClassLoader.java:368) at 
> java.net.URLClassLoader$1.run(URLClassLoader.java:362) at 
> java.security.AccessController.doPrivileged(Native Method) at 
> java.net.URLClassLoader.findClass(URLClassLoader.java:361) at 
> java.lang.ClassLoader.loadClass(ClassLoader.java:424) at 
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335) at 
> java.lang.ClassLoader.loadClass(ClassLoader.java:357) at 
> sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:495) Error: 
> A JNI error has occurred, please check your installation and try again 
> Exception in thread "main" java.lang.SecurityException: Invalid signature 
> file digest for Manifest main attributes at 
> sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:330)
>  at 
> sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:263)
>  at java.util.jar.JarVerifier.processEntry(JarVerifier.java:318) at 
> java.util.jar.JarVerifier.update(JarVerifier.java:230) at 
> java.util.jar.JarFile.initializeVerifier(JarFile.java:383) at 
> java.util.jar.JarFile.getInputStream(JarFile.java:450) at 
> sun.misc.URLClassPath$JarLoader$2.getInputStream(URLClassPath.java:977) at 
> sun.misc.Resource.cachedInputStream(Resource.java:77) at 
> sun.misc.Resource.getByteBuffer(Resource.java:160) at 
> java.net.URLClassLoader.defineClass(URLClassLoader.java:454) at 
> java.net.URLClassLoader.access$100(URLClassLoader.java:73) at 
> java.net.URLClassLoader$1.run(URLClassLoader.java:368) at 
> java.net.URLClassLoader$1.run(URLClassLoader.java:362) at 
> java.security.AccessController.doPrivileged(Native Method) at 
> java.net.URLClassLoader.findClass(URLClassLoader.java:361) at 
> java.lang.ClassLoader.loadClass(ClassLoader.java:424) at 
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)Error: A JNI 
> error has occurred, please check your installation and try again Exception in 
> thread "main" at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at 
> sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:495) 
> java.lang.SecurityException: Invalid signature file digest for Manifest main 
> attributes at 
> sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:330)
>  at 
> sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:263)
>  at java.util.jar.JarVerifier.processEntry(JarVerifier.java:318) at 
> java.util.jar.JarVerifier.update(JarVerifier.java:230) at 
> java.util.jar.Jar

[jira] [Assigned] (RATIS-299) Error when running start-all.sh in ratis-examples

2018-08-14 Thread Jing Chen (JIRA)


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

Jing Chen reassigned RATIS-299:
---

Assignee: Jing Chen

> Error when running start-all.sh in ratis-examples
> -
>
> Key: RATIS-299
> URL: https://issues.apache.org/jira/browse/RATIS-299
> Project: Ratis
>  Issue Type: Bug
>  Components: examples
>Affects Versions: 0.3.0
>Reporter: Jing Chen
>Assignee: Jing Chen
>Priority: Minor
> Fix For: 0.3.0
>
> Attachments: 
> 0001-RATIS-299.-Error-when-running-start-all.sh-in-ratis-.patch
>
>
> An error happens when running start-all.sh in ratis-examples.
>  
> {noformat}
> ➜  bin git:(master) ./start-all.sh
> /tmp/incubator-ratis/ratis-examples/src/main/bin/../../../target/ratis-examples-0.3.0-SNAPSHOT.jar
> Waiting for the servers
> /tmp/incubator-ratis/ratis-examples/src/main/bin/../../../target/ratis-examples-0.3.0-SNAPSHOT.jar
> /tmp/incubator-ratis/ratis-examples/src/main/bin/../../../target/ratis-examples-0.3.0-SNAPSHOT.jar
> /tmp/incubator-ratis/ratis-examples/src/main/bin/../../../target/ratis-examples-0.3.0-SNAPSHOT.jar
> ➜  bin git:(master) Error: A JNI error has occurred, please check your 
> installation and try again
> Exception in thread "main" java.lang.SecurityException: Invalid signature 
> file digest for Manifest main attributes at 
> sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:330)
>  at 
> sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:263)
>  at java.util.jar.JarVerifier.processEntry(JarVerifier.java:318) at 
> java.util.jar.JarVerifier.update(JarVerifier.java:230) at 
> java.util.jar.JarFile.initializeVerifier(JarFile.java:383) at 
> java.util.jar.JarFile.getInputStream(JarFile.java:450) at 
> sun.misc.URLClassPath$JarLoader$2.getInputStream(URLClassPath.java:977) at 
> sun.misc.Resource.cachedInputStream(Resource.java:77) at 
> sun.misc.Resource.getByteBuffer(Resource.java:160) at 
> java.net.URLClassLoader.defineClass(URLClassLoader.java:454) at 
> java.net.URLClassLoader.access$100(URLClassLoader.java:73) at 
> java.net.URLClassLoader$1.run(URLClassLoader.java:368) at 
> java.net.URLClassLoader$1.run(URLClassLoader.java:362) at 
> java.security.AccessController.doPrivileged(Native Method) at 
> java.net.URLClassLoader.findClass(URLClassLoader.java:361) at 
> java.lang.ClassLoader.loadClass(ClassLoader.java:424) at 
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335) at 
> java.lang.ClassLoader.loadClass(ClassLoader.java:357) at 
> sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:495) Error: 
> A JNI error has occurred, please check your installation and try again 
> Exception in thread "main" java.lang.SecurityException: Invalid signature 
> file digest for Manifest main attributes at 
> sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:330)
>  at 
> sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:263)
>  at java.util.jar.JarVerifier.processEntry(JarVerifier.java:318) at 
> java.util.jar.JarVerifier.update(JarVerifier.java:230) at 
> java.util.jar.JarFile.initializeVerifier(JarFile.java:383) at 
> java.util.jar.JarFile.getInputStream(JarFile.java:450) at 
> sun.misc.URLClassPath$JarLoader$2.getInputStream(URLClassPath.java:977) at 
> sun.misc.Resource.cachedInputStream(Resource.java:77) at 
> sun.misc.Resource.getByteBuffer(Resource.java:160) at 
> java.net.URLClassLoader.defineClass(URLClassLoader.java:454) at 
> java.net.URLClassLoader.access$100(URLClassLoader.java:73) at 
> java.net.URLClassLoader$1.run(URLClassLoader.java:368) at 
> java.net.URLClassLoader$1.run(URLClassLoader.java:362) at 
> java.security.AccessController.doPrivileged(Native Method) at 
> java.net.URLClassLoader.findClass(URLClassLoader.java:361) at 
> java.lang.ClassLoader.loadClass(ClassLoader.java:424) at 
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)Error: A JNI 
> error has occurred, please check your installation and try again Exception in 
> thread "main" at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at 
> sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:495) 
> java.lang.SecurityException: Invalid signature file digest for Manifest main 
> attributes at 
> sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:330)
>  at 
> sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:263)
>  at java.util.jar.JarVerifier.processEntry(JarVerifier.java:318) at 
> java.util.jar.JarVerifier.update(JarVerifier.java:230) at 
> java.util.jar.JarFile.initializeVerifier(JarFile.java:383) at 
> java.util.jar.JarFile.getInputStream(JarFile.java:450) at 
> sun.misc.URLClassPath$JarLoader$2.getInputStream(URLClassPath.java:97

[jira] [Updated] (RATIS-299) Error when running start-all.sh in ratis-examples

2018-08-14 Thread Jing Chen (JIRA)


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

Jing Chen updated RATIS-299:

Attachment: 0001-RATIS-299.-Error-when-running-start-all.sh-in-ratis-.patch

> Error when running start-all.sh in ratis-examples
> -
>
> Key: RATIS-299
> URL: https://issues.apache.org/jira/browse/RATIS-299
> Project: Ratis
>  Issue Type: Bug
>  Components: examples
>Affects Versions: 0.3.0
>Reporter: Jing Chen
>Priority: Minor
> Fix For: 0.3.0
>
> Attachments: 
> 0001-RATIS-299.-Error-when-running-start-all.sh-in-ratis-.patch
>
>
> An error happens when running start-all.sh in ratis-examples.
>  
> {noformat}
> ➜  bin git:(master) ./start-all.sh
> /tmp/incubator-ratis/ratis-examples/src/main/bin/../../../target/ratis-examples-0.3.0-SNAPSHOT.jar
> Waiting for the servers
> /tmp/incubator-ratis/ratis-examples/src/main/bin/../../../target/ratis-examples-0.3.0-SNAPSHOT.jar
> /tmp/incubator-ratis/ratis-examples/src/main/bin/../../../target/ratis-examples-0.3.0-SNAPSHOT.jar
> /tmp/incubator-ratis/ratis-examples/src/main/bin/../../../target/ratis-examples-0.3.0-SNAPSHOT.jar
> ➜  bin git:(master) Error: A JNI error has occurred, please check your 
> installation and try again
> Exception in thread "main" java.lang.SecurityException: Invalid signature 
> file digest for Manifest main attributes at 
> sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:330)
>  at 
> sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:263)
>  at java.util.jar.JarVerifier.processEntry(JarVerifier.java:318) at 
> java.util.jar.JarVerifier.update(JarVerifier.java:230) at 
> java.util.jar.JarFile.initializeVerifier(JarFile.java:383) at 
> java.util.jar.JarFile.getInputStream(JarFile.java:450) at 
> sun.misc.URLClassPath$JarLoader$2.getInputStream(URLClassPath.java:977) at 
> sun.misc.Resource.cachedInputStream(Resource.java:77) at 
> sun.misc.Resource.getByteBuffer(Resource.java:160) at 
> java.net.URLClassLoader.defineClass(URLClassLoader.java:454) at 
> java.net.URLClassLoader.access$100(URLClassLoader.java:73) at 
> java.net.URLClassLoader$1.run(URLClassLoader.java:368) at 
> java.net.URLClassLoader$1.run(URLClassLoader.java:362) at 
> java.security.AccessController.doPrivileged(Native Method) at 
> java.net.URLClassLoader.findClass(URLClassLoader.java:361) at 
> java.lang.ClassLoader.loadClass(ClassLoader.java:424) at 
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335) at 
> java.lang.ClassLoader.loadClass(ClassLoader.java:357) at 
> sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:495) Error: 
> A JNI error has occurred, please check your installation and try again 
> Exception in thread "main" java.lang.SecurityException: Invalid signature 
> file digest for Manifest main attributes at 
> sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:330)
>  at 
> sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:263)
>  at java.util.jar.JarVerifier.processEntry(JarVerifier.java:318) at 
> java.util.jar.JarVerifier.update(JarVerifier.java:230) at 
> java.util.jar.JarFile.initializeVerifier(JarFile.java:383) at 
> java.util.jar.JarFile.getInputStream(JarFile.java:450) at 
> sun.misc.URLClassPath$JarLoader$2.getInputStream(URLClassPath.java:977) at 
> sun.misc.Resource.cachedInputStream(Resource.java:77) at 
> sun.misc.Resource.getByteBuffer(Resource.java:160) at 
> java.net.URLClassLoader.defineClass(URLClassLoader.java:454) at 
> java.net.URLClassLoader.access$100(URLClassLoader.java:73) at 
> java.net.URLClassLoader$1.run(URLClassLoader.java:368) at 
> java.net.URLClassLoader$1.run(URLClassLoader.java:362) at 
> java.security.AccessController.doPrivileged(Native Method) at 
> java.net.URLClassLoader.findClass(URLClassLoader.java:361) at 
> java.lang.ClassLoader.loadClass(ClassLoader.java:424) at 
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)Error: A JNI 
> error has occurred, please check your installation and try again Exception in 
> thread "main" at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at 
> sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:495) 
> java.lang.SecurityException: Invalid signature file digest for Manifest main 
> attributes at 
> sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:330)
>  at 
> sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:263)
>  at java.util.jar.JarVerifier.processEntry(JarVerifier.java:318) at 
> java.util.jar.JarVerifier.update(JarVerifier.java:230) at 
> java.util.jar.JarFile.initializeVerifier(JarFile.java:383) at 
> java.util.jar.JarFile.getInputStream(JarFile.java:450) at 
> sun.misc.URLClassPath$JarLoader$2.getInputStream(URLC

[jira] [Updated] (RATIS-299) Error when running start-all.sh in ratis-examples

2018-08-14 Thread Jing Chen (JIRA)


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

Jing Chen updated RATIS-299:

Description: 
An error happens when running start-all.sh in ratis-examples.

 
{noformat}
➜  bin git:(master) ./start-all.sh
/tmp/incubator-ratis/ratis-examples/src/main/bin/../../../target/ratis-examples-0.3.0-SNAPSHOT.jar
Waiting for the servers
/tmp/incubator-ratis/ratis-examples/src/main/bin/../../../target/ratis-examples-0.3.0-SNAPSHOT.jar
/tmp/incubator-ratis/ratis-examples/src/main/bin/../../../target/ratis-examples-0.3.0-SNAPSHOT.jar
/tmp/incubator-ratis/ratis-examples/src/main/bin/../../../target/ratis-examples-0.3.0-SNAPSHOT.jar

➜  bin git:(master) Error: A JNI error has occurred, please check your 
installation and try again
Exception in thread "main" java.lang.SecurityException: Invalid signature file 
digest for Manifest main attributes at 
sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:330)
 at 
sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:263) 
at java.util.jar.JarVerifier.processEntry(JarVerifier.java:318) at 
java.util.jar.JarVerifier.update(JarVerifier.java:230) at 
java.util.jar.JarFile.initializeVerifier(JarFile.java:383) at 
java.util.jar.JarFile.getInputStream(JarFile.java:450) at 
sun.misc.URLClassPath$JarLoader$2.getInputStream(URLClassPath.java:977) at 
sun.misc.Resource.cachedInputStream(Resource.java:77) at 
sun.misc.Resource.getByteBuffer(Resource.java:160) at 
java.net.URLClassLoader.defineClass(URLClassLoader.java:454) at 
java.net.URLClassLoader.access$100(URLClassLoader.java:73) at 
java.net.URLClassLoader$1.run(URLClassLoader.java:368) at 
java.net.URLClassLoader$1.run(URLClassLoader.java:362) at 
java.security.AccessController.doPrivileged(Native Method) at 
java.net.URLClassLoader.findClass(URLClassLoader.java:361) at 
java.lang.ClassLoader.loadClass(ClassLoader.java:424) at 
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335) at 
java.lang.ClassLoader.loadClass(ClassLoader.java:357) at 
sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:495) Error: A 
JNI error has occurred, please check your installation and try again Exception 
in thread "main" java.lang.SecurityException: Invalid signature file digest for 
Manifest main attributes at 
sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:330)
 at 
sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:263) 
at java.util.jar.JarVerifier.processEntry(JarVerifier.java:318) at 
java.util.jar.JarVerifier.update(JarVerifier.java:230) at 
java.util.jar.JarFile.initializeVerifier(JarFile.java:383) at 
java.util.jar.JarFile.getInputStream(JarFile.java:450) at 
sun.misc.URLClassPath$JarLoader$2.getInputStream(URLClassPath.java:977) at 
sun.misc.Resource.cachedInputStream(Resource.java:77) at 
sun.misc.Resource.getByteBuffer(Resource.java:160) at 
java.net.URLClassLoader.defineClass(URLClassLoader.java:454) at 
java.net.URLClassLoader.access$100(URLClassLoader.java:73) at 
java.net.URLClassLoader$1.run(URLClassLoader.java:368) at 
java.net.URLClassLoader$1.run(URLClassLoader.java:362) at 
java.security.AccessController.doPrivileged(Native Method) at 
java.net.URLClassLoader.findClass(URLClassLoader.java:361) at 
java.lang.ClassLoader.loadClass(ClassLoader.java:424) at 
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)Error: A JNI error 
has occurred, please check your installation and try again Exception in thread 
"main" at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at 
sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:495) 
java.lang.SecurityException: Invalid signature file digest for Manifest main 
attributes at 
sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:330)
 at 
sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:263) 
at java.util.jar.JarVerifier.processEntry(JarVerifier.java:318) at 
java.util.jar.JarVerifier.update(JarVerifier.java:230) at 
java.util.jar.JarFile.initializeVerifier(JarFile.java:383) at 
java.util.jar.JarFile.getInputStream(JarFile.java:450) at 
sun.misc.URLClassPath$JarLoader$2.getInputStream(URLClassPath.java:977) at 
sun.misc.Resource.cachedInputStream(Resource.java:77) at 
sun.misc.Resource.getByteBuffer(Resource.java:160) at 
java.net.URLClassLoader.defineClass(URLClassLoader.java:454) at 
java.net.URLClassLoader.access$100(URLClassLoader.java:73) at 
java.net.URLClassLoader$1.run(URLClassLoader.java:368) at 
java.net.URLClassLoader$1.run(URLClassLoader.java:362) at 
java.security.AccessController.doPrivileged(Native Method) at 
java.net.URLClassLoader.findClass(URLClassLoader.java:361) at 
java.lang.ClassLoader.loadClass(ClassLoader.java:424) at 
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335) at 
java.lang.ClassLoader.loadClass(ClassLoader.java:357) at 
sun.launcher.Launch

[jira] [Updated] (RATIS-299) Error when running start-all.sh in ratis-examples

2018-08-14 Thread Jing Chen (JIRA)


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

Jing Chen updated RATIS-299:

Description: 
An error happens when running start-all.sh in ratis-examples.

 
{noformat}
➜  bin git:(master) ./start-all.sh
bin git:(master) ./start-all.sh 
/tmp/incubator-ratis/ratis-examples/src/main/bin/../../../target/ratis-examples-0.3.0-SNAPSHOT.jar
 Waiting for the servers 
/tmp/incubator-ratis/ratis-examples/src/main/bin/../../../target/ratis-examples-0.3.0-SNAPSHOT.jar
 
/tmp/incubator-ratis/ratis-examples/src/main/bin/../../../target/ratis-examples-0.3.0-SNAPSHOT.jar
 
/tmp/incubator-ratis/ratis-examples/src/main/bin/../../../target/ratis-examples-0.3.0-SNAPSHOT.jar
 

➜ bin git:(master) 
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.SecurityException: Invalid signature file 
digest for Manifest main attributes at 
sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:330)
 at 
sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:263) 
at java.util.jar.JarVerifier.processEntry(JarVerifier.java:318) at 
java.util.jar.JarVerifier.update(JarVerifier.java:230) at 
java.util.jar.JarFile.initializeVerifier(JarFile.java:383) at 
java.util.jar.JarFile.getInputStream(JarFile.java:450) at 
sun.misc.URLClassPath$JarLoader$2.getInputStream(URLClassPath.java:977) at 
sun.misc.Resource.cachedInputStream(Resource.java:77) at 
sun.misc.Resource.getByteBuffer(Resource.java:160) at 
java.net.URLClassLoader.defineClass(URLClassLoader.java:454) at 
java.net.URLClassLoader.access$100(URLClassLoader.java:73) at 
java.net.URLClassLoader$1.run(URLClassLoader.java:368) at 
java.net.URLClassLoader$1.run(URLClassLoader.java:362) at 
java.security.AccessController.doPrivileged(Native Method) at 
java.net.URLClassLoader.findClass(URLClassLoader.java:361) at 
java.lang.ClassLoader.loadClass(ClassLoader.java:424) at 
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335) at 
java.lang.ClassLoader.loadClass(ClassLoader.java:357) at 
sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:495) Error: A 
JNI error has occurred, please check your installation and try again Exception 
in thread "main" java.lang.SecurityException: Invalid signature file digest for 
Manifest main attributes at 
sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:330)
 at 
sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:263) 
at java.util.jar.JarVerifier.processEntry(JarVerifier.java:318) at 
java.util.jar.JarVerifier.update(JarVerifier.java:230) at 
java.util.jar.JarFile.initializeVerifier(JarFile.java:383) at 
java.util.jar.JarFile.getInputStream(JarFile.java:450) at 
sun.misc.URLClassPath$JarLoader$2.getInputStream(URLClassPath.java:977) at 
sun.misc.Resource.cachedInputStream(Resource.java:77) at 
sun.misc.Resource.getByteBuffer(Resource.java:160) at 
java.net.URLClassLoader.defineClass(URLClassLoader.java:454) at 
java.net.URLClassLoader.access$100(URLClassLoader.java:73) at 
java.net.URLClassLoader$1.run(URLClassLoader.java:368) at 
java.net.URLClassLoader$1.run(URLClassLoader.java:362) at 
java.security.AccessController.doPrivileged(Native Method) at 
java.net.URLClassLoader.findClass(URLClassLoader.java:361) at 
java.lang.ClassLoader.loadClass(ClassLoader.java:424) at 
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)Error: A JNI error 
has occurred, please check your installation and try again Exception in thread 
"main" at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at 
sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:495) 
java.lang.SecurityException: Invalid signature file digest for Manifest main 
attributes at 
sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:330)
 at 
sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:263) 
at java.util.jar.JarVerifier.processEntry(JarVerifier.java:318) at 
java.util.jar.JarVerifier.update(JarVerifier.java:230) at 
java.util.jar.JarFile.initializeVerifier(JarFile.java:383) at 
java.util.jar.JarFile.getInputStream(JarFile.java:450) at 
sun.misc.URLClassPath$JarLoader$2.getInputStream(URLClassPath.java:977) at 
sun.misc.Resource.cachedInputStream(Resource.java:77) at 
sun.misc.Resource.getByteBuffer(Resource.java:160) at 
java.net.URLClassLoader.defineClass(URLClassLoader.java:454) at 
java.net.URLClassLoader.access$100(URLClassLoader.java:73) at 
java.net.URLClassLoader$1.run(URLClassLoader.java:368) at 
java.net.URLClassLoader$1.run(URLClassLoader.java:362) at 
java.security.AccessController.doPrivileged(Native Method) at 
java.net.URLClassLoader.findClass(URLClassLoader.java:361) at 
java.lang.ClassLoader.loadClass(ClassLoader.java:424) at 
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335) at 
java.lang.ClassLoader.loadClass(Class

[jira] [Updated] (RATIS-299) Error when running start-all.sh in ratis-examples

2018-08-14 Thread Jing Chen (JIRA)


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

Jing Chen updated RATIS-299:

Description: 
An error happens when running start-all.sh in ratis-examples.

 
{noformat}
➜  bin git:(master) ./start-all.sh
bin git:(master) ./start-all.sh 
/tmp/incubator-ratis/ratis-examples/src/main/bin/../../../target/ratis-examples-0.3.0-SNAPSHOT.jar
 Waiting for the servers 
/tmp/incubator-ratis/ratis-examples/src/main/bin/../../../target/ratis-examples-0.3.0-SNAPSHOT.jar
 
/tmp/incubator-ratis/ratis-examples/src/main/bin/../../../target/ratis-examples-0.3.0-SNAPSHOT.jar
 
/tmp/incubator-ratis/ratis-examples/src/main/bin/../../../target/ratis-examples-0.3.0-SNAPSHOT.jar
 

➜ bin git:(master) 
Error: A JNI error has occurred, please check your installation and try again 
Exception in thread "main" java.lang.SecurityException: Invalid signature file 
digest for Manifest main attributes at 
sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:330)
 at 
sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:263) 
at java.util.jar.JarVerifier.processEntry(JarVerifier.java:318) at 
java.util.jar.JarVerifier.update(JarVerifier.java:230) at 
java.util.jar.JarFile.initializeVerifier(JarFile.java:383) at 
java.util.jar.JarFile.getInputStream(JarFile.java:450) at 
sun.misc.URLClassPath$JarLoader$2.getInputStream(URLClassPath.java:977) at 
sun.misc.Resource.cachedInputStream(Resource.java:77) at 
sun.misc.Resource.getByteBuffer(Resource.java:160) at 
java.net.URLClassLoader.defineClass(URLClassLoader.java:454) at 
java.net.URLClassLoader.access$100(URLClassLoader.java:73) at 
java.net.URLClassLoader$1.run(URLClassLoader.java:368) at 
java.net.URLClassLoader$1.run(URLClassLoader.java:362) at 
java.security.AccessController.doPrivileged(Native Method) at 
java.net.URLClassLoader.findClass(URLClassLoader.java:361) at 
java.lang.ClassLoader.loadClass(ClassLoader.java:424) at 
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335) at 
java.lang.ClassLoader.loadClass(ClassLoader.java:357) at 
sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:495) Error: A 
JNI error has occurred, please check your installation and try again Exception 
in thread "main" java.lang.SecurityException: Invalid signature file digest for 
Manifest main attributes at 
sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:330)
 at 
sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:263) 
at java.util.jar.JarVerifier.processEntry(JarVerifier.java:318) at 
java.util.jar.JarVerifier.update(JarVerifier.java:230) at 
java.util.jar.JarFile.initializeVerifier(JarFile.java:383) at 
java.util.jar.JarFile.getInputStream(JarFile.java:450) at 
sun.misc.URLClassPath$JarLoader$2.getInputStream(URLClassPath.java:977) at 
sun.misc.Resource.cachedInputStream(Resource.java:77) at 
sun.misc.Resource.getByteBuffer(Resource.java:160) at 
java.net.URLClassLoader.defineClass(URLClassLoader.java:454) at 
java.net.URLClassLoader.access$100(URLClassLoader.java:73) at 
java.net.URLClassLoader$1.run(URLClassLoader.java:368) at 
java.net.URLClassLoader$1.run(URLClassLoader.java:362) at 
java.security.AccessController.doPrivileged(Native Method) at 
java.net.URLClassLoader.findClass(URLClassLoader.java:361) at 
java.lang.ClassLoader.loadClass(ClassLoader.java:424) at 
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)Error: A JNI error 
has occurred, please check your installation and try again Exception in thread 
"main" at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at 
sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:495) 
java.lang.SecurityException: Invalid signature file digest for Manifest main 
attributes at 
sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:330)
 at 
sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:263) 
at java.util.jar.JarVerifier.processEntry(JarVerifier.java:318) at 
java.util.jar.JarVerifier.update(JarVerifier.java:230) at 
java.util.jar.JarFile.initializeVerifier(JarFile.java:383) at 
java.util.jar.JarFile.getInputStream(JarFile.java:450) at 
sun.misc.URLClassPath$JarLoader$2.getInputStream(URLClassPath.java:977) at 
sun.misc.Resource.cachedInputStream(Resource.java:77) at 
sun.misc.Resource.getByteBuffer(Resource.java:160) at 
java.net.URLClassLoader.defineClass(URLClassLoader.java:454) at 
java.net.URLClassLoader.access$100(URLClassLoader.java:73) at 
java.net.URLClassLoader$1.run(URLClassLoader.java:368) at 
java.net.URLClassLoader$1.run(URLClassLoader.java:362) at 
java.security.AccessController.doPrivileged(Native Method) at 
java.net.URLClassLoader.findClass(URLClassLoader.java:361) at 
java.lang.ClassLoader.loadClass(ClassLoader.java:424) at 
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335) at 
java.lang.ClassLoader.loadClass(Clas

[jira] [Created] (RATIS-299) Error when running start-all.sh in ratis-examples

2018-08-14 Thread Jing Chen (JIRA)
Jing Chen created RATIS-299:
---

 Summary: Error when running start-all.sh in ratis-examples
 Key: RATIS-299
 URL: https://issues.apache.org/jira/browse/RATIS-299
 Project: Ratis
  Issue Type: Bug
  Components: examples
Affects Versions: 0.3.0
Reporter: Jing Chen
 Fix For: 0.3.0


An error happens when running start-all.sh in ratis-examples.

 
{noformat}
➜  bin git:(master) ./start-all.sh
bin git:(master) ./start-all.sh 
/tmp/incubator-ratis/ratis-examples/src/main/bin/../../../target/ratis-examples-0.3.0-SNAPSHOT.jar
 Waiting for the servers 
/tmp/incubator-ratis/ratis-examples/src/main/bin/../../../target/ratis-examples-0.3.0-SNAPSHOT.jar
 
/tmp/incubator-ratis/ratis-examples/src/main/bin/../../../target/ratis-examples-0.3.0-SNAPSHOT.jar
 
/tmp/incubator-ratis/ratis-examples/src/main/bin/../../../target/ratis-examples-0.3.0-SNAPSHOT.jar
 ➜ bin git:(master) Error: A JNI error has occurred, please check your 
installation and try again Exception in thread "main" 
java.lang.SecurityException: Invalid signature file digest for Manifest main 
attributes at 
sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:330)
 at 
sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:263) 
at java.util.jar.JarVerifier.processEntry(JarVerifier.java:318) at 
java.util.jar.JarVerifier.update(JarVerifier.java:230) at 
java.util.jar.JarFile.initializeVerifier(JarFile.java:383) at 
java.util.jar.JarFile.getInputStream(JarFile.java:450) at 
sun.misc.URLClassPath$JarLoader$2.getInputStream(URLClassPath.java:977) at 
sun.misc.Resource.cachedInputStream(Resource.java:77) at 
sun.misc.Resource.getByteBuffer(Resource.java:160) at 
java.net.URLClassLoader.defineClass(URLClassLoader.java:454) at 
java.net.URLClassLoader.access$100(URLClassLoader.java:73) at 
java.net.URLClassLoader$1.run(URLClassLoader.java:368) at 
java.net.URLClassLoader$1.run(URLClassLoader.java:362) at 
java.security.AccessController.doPrivileged(Native Method) at 
java.net.URLClassLoader.findClass(URLClassLoader.java:361) at 
java.lang.ClassLoader.loadClass(ClassLoader.java:424) at 
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335) at 
java.lang.ClassLoader.loadClass(ClassLoader.java:357) at 
sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:495) Error: A 
JNI error has occurred, please check your installation and try again Exception 
in thread "main" java.lang.SecurityException: Invalid signature file digest for 
Manifest main attributes at 
sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:330)
 at 
sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:263) 
at java.util.jar.JarVerifier.processEntry(JarVerifier.java:318) at 
java.util.jar.JarVerifier.update(JarVerifier.java:230) at 
java.util.jar.JarFile.initializeVerifier(JarFile.java:383) at 
java.util.jar.JarFile.getInputStream(JarFile.java:450) at 
sun.misc.URLClassPath$JarLoader$2.getInputStream(URLClassPath.java:977) at 
sun.misc.Resource.cachedInputStream(Resource.java:77) at 
sun.misc.Resource.getByteBuffer(Resource.java:160) at 
java.net.URLClassLoader.defineClass(URLClassLoader.java:454) at 
java.net.URLClassLoader.access$100(URLClassLoader.java:73) at 
java.net.URLClassLoader$1.run(URLClassLoader.java:368) at 
java.net.URLClassLoader$1.run(URLClassLoader.java:362) at 
java.security.AccessController.doPrivileged(Native Method) at 
java.net.URLClassLoader.findClass(URLClassLoader.java:361) at 
java.lang.ClassLoader.loadClass(ClassLoader.java:424) at 
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)Error: A JNI error 
has occurred, please check your installation and try again Exception in thread 
"main" at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at 
sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:495) 
java.lang.SecurityException: Invalid signature file digest for Manifest main 
attributes at 
sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:330)
 at 
sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:263) 
at java.util.jar.JarVerifier.processEntry(JarVerifier.java:318) at 
java.util.jar.JarVerifier.update(JarVerifier.java:230) at 
java.util.jar.JarFile.initializeVerifier(JarFile.java:383) at 
java.util.jar.JarFile.getInputStream(JarFile.java:450) at 
sun.misc.URLClassPath$JarLoader$2.getInputStream(URLClassPath.java:977) at 
sun.misc.Resource.cachedInputStream(Resource.java:77) at 
sun.misc.Resource.getByteBuffer(Resource.java:160) at 
java.net.URLClassLoader.defineClass(URLClassLoader.java:454) at 
java.net.URLClassLoader.access$100(URLClassLoader.java:73) at 
java.net.URLClassLoader$1.run(URLClassLoader.java:368) at 
java.net.URLClassLoader$1.run(URLClassLoader.java:362) at 
java.security.AccessController.doPrivileged(Native Method) at 
java.net.URLClassL

[jira] [Commented] (RATIS-11) Better retry policy support for Raft client

2018-07-30 Thread Jing Chen (JIRA)


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

Jing Chen commented on RATIS-11:


for firstTrialTime, I prefer keeping elapsedTime in _shouldRetry_().

To leverage Timestamp calculating elapsed time, we have to make sure that it 
passes the same Timestamp every time the _shouldRetry_() is called.

If we replace _elaspsedTimeInMilis_ with a Timestamp instance, it might not be 
flexible to use AFAIC.

 

For sleeper, I do agree that we could remove it from shouldRetry, we can pass 
those values via constructor when we initialize a retry policy.

Please share you comments. Thanks a lot

> Better retry policy support for Raft client
> ---
>
> Key: RATIS-11
> URL: https://issues.apache.org/jira/browse/RATIS-11
> Project: Ratis
>  Issue Type: Improvement
>  Components: client
>Reporter: Jing Zhao
>Assignee: Jing Chen
>Priority: Major
> Attachments: 
> 0001-RATIS-11-Better-retry-policy-support-for-Raft-client.patch
>
>
> We should have better retry policy support on the raft client side, such as 
> different retry policies, more flexible retry parameter settings, etc.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (RATIS-11) Better retry policy support for Raft client

2018-07-27 Thread Jing Chen (JIRA)


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

Jing Chen commented on RATIS-11:


hi [~szetszwo] I am confused by _firstTrialTime_ here, _elapsedTimeInMillis_ is 
the max elapsed time since the first try, what does _firstTrialTime_ here mean?

In RaftClientImpl, I simply overload the constructor, if no retry policy is 
given when the client is created, it will apply retry forever policy. I will 
probably keep my changes there.

> Better retry policy support for Raft client
> ---
>
> Key: RATIS-11
> URL: https://issues.apache.org/jira/browse/RATIS-11
> Project: Ratis
>  Issue Type: Improvement
>  Components: client
>Reporter: Jing Zhao
>Assignee: Jing Chen
>Priority: Major
> Attachments: 
> 0001-RATIS-11-Better-retry-policy-support-for-Raft-client.patch
>
>
> We should have better retry policy support on the raft client side, such as 
> different retry policies, more flexible retry parameter settings, etc.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (RATIS-11) Better retry policy support for Raft client

2018-07-26 Thread Jing Chen (JIRA)


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

Jing Chen commented on RATIS-11:


resolved JUnitRunListener exception by adding ratis-common as test dependency 
of ratis-client, new patch attached.

 

[~jnp] could you help to re-trigger the pre-commit builds, I don't see ''submit 
patch" button on the page

 

> Better retry policy support for Raft client
> ---
>
> Key: RATIS-11
> URL: https://issues.apache.org/jira/browse/RATIS-11
> Project: Ratis
>  Issue Type: Improvement
>  Components: client
>Reporter: Jing Zhao
>Assignee: Jing Chen
>Priority: Major
> Attachments: 
> 0001-RATIS-11-Better-retry-policy-support-for-Raft-client.patch
>
>
> We should have better retry policy support on the raft client side, such as 
> different retry policies, more flexible retry parameter settings, etc.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (RATIS-11) Better retry policy support for Raft client

2018-07-26 Thread Jing Chen (JIRA)


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

Jing Chen updated RATIS-11:
---
Attachment: (was: 
0001-RATIS-11-Better-retry-policy-support-for-Raft-client.patch)

> Better retry policy support for Raft client
> ---
>
> Key: RATIS-11
> URL: https://issues.apache.org/jira/browse/RATIS-11
> Project: Ratis
>  Issue Type: Improvement
>  Components: client
>Reporter: Jing Zhao
>Assignee: Jing Chen
>Priority: Major
> Attachments: 
> 0001-RATIS-11-Better-retry-policy-support-for-Raft-client.patch
>
>
> We should have better retry policy support on the raft client side, such as 
> different retry policies, more flexible retry parameter settings, etc.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (RATIS-11) Better retry policy support for Raft client

2018-07-26 Thread Jing Chen (JIRA)


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

Jing Chen updated RATIS-11:
---
Attachment: 0001-RATIS-11-Better-retry-policy-support-for-Raft-client.patch

> Better retry policy support for Raft client
> ---
>
> Key: RATIS-11
> URL: https://issues.apache.org/jira/browse/RATIS-11
> Project: Ratis
>  Issue Type: Improvement
>  Components: client
>Reporter: Jing Zhao
>Assignee: Jing Chen
>Priority: Major
> Attachments: 
> 0001-RATIS-11-Better-retry-policy-support-for-Raft-client.patch
>
>
> We should have better retry policy support on the raft client side, such as 
> different retry policies, more flexible retry parameter settings, etc.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (RATIS-259) Ratis waits infinitely with no timout when not able to connect to ozone datanode

2018-07-26 Thread Jing Chen (JIRA)


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

Jing Chen commented on RATIS-259:
-

I believe we can merge RATIS-11 first, then we can simply apply proper retry 
policy here to solve this ticket.

> Ratis waits infinitely with no timout when not able to connect to ozone 
> datanode
> 
>
> Key: RATIS-259
> URL: https://issues.apache.org/jira/browse/RATIS-259
> Project: Ratis
>  Issue Type: Improvement
>  Components: client
>Reporter: Nilotpal Nandi
>Assignee: Nanda kumar
>Priority: Major
>  Labels: ozone
>
> In ozone, the pipeline type is Ratis with replication factor as 1.
> Ran the following command ozone command , it hung and did not complete
> 
> {noformat}
> [root@ozone-vm bin]# ./ozone oz -getKey /nnvolume1/buckettest1/passwd ./hello1
> Command Failed : {"httpCode":0,"shortMessage":"get key needs a file path to 
> download to","resource":null,"message":"get key needs a file path to download 
> to","requestID":null,"hostName":null}
> [root@ozone-vm bin]# ./ozone oz -getKey /nnvolume1/buckettest1/passwd -file .
> 2018-06-29 05:09:46,865 WARN util.NativeCodeLoader: Unable to load 
> native-hadoop library for your platform... using builtin-java classes where 
> applicable
> Command Failed : {"httpCode":0,"shortMessage":".exists. Download will 
> overwrite an existing file. Aborting.","resource":null,"message":".exists. 
> Download will overwrite an existing file. 
> Aborting.","requestID":null,"hostName":null}
> [root@ozone-vm bin]# ./ozone oz -getKey /nnvolume1/buckettest1/passwd -file 
> ./hello11
> 2018-06-29 05:10:27,661 WARN util.NativeCodeLoader: Unable to load 
> native-hadoop library for your platform... using builtin-java classes where 
> applicable
> 2018-06-29 05:10:28,373 INFO conf.ConfUtils: raft.rpc.type = GRPC (default)
> 2018-06-29 05:10:28,406 INFO conf.ConfUtils: raft.grpc.message.size.max = 
> 33554432 (custom)
> 2018-06-29 05:10:28,424 INFO conf.ConfUtils: raft.client.rpc.retryInterval = 
> 300 ms (default)
> 2018-06-29 05:10:28,428 INFO conf.ConfUtils: 
> raft.client.async.outstanding-requests.max = 100 (default)
> 2018-06-29 05:10:28,428 INFO conf.ConfUtils: 
> raft.client.async.scheduler-threads = 3 (default)
> 2018-06-29 05:10:28,595 INFO conf.ConfUtils: raft.grpc.flow.control.window = 
> 1MB (=1048576) (default)
> 2018-06-29 05:10:28,595 INFO conf.ConfUtils: raft.grpc.message.size.max = 
> 33554432 (custom)
> 2018-06-29 05:10:28,884 INFO conf.ConfUtils: raft.client.rpc.request.timeout 
> = 3000 ms (default){noformat}
>  
> jstack :
> 
>  
> {noformat}
> [root@ozone-vm logs]# jstack 4983
> 2018-06-29 05:31:00
> Full thread dump Java HotSpot(TM) 64-Bit Server VM (25.171-b11 mixed mode):
> "Attach Listener" #19 daemon prio=9 os_prio=0 tid=0x7fe9fc016000 
> nid=0x1804 waiting on condition [0x]
>  java.lang.Thread.State: RUNNABLE
> "threadDeathWatcher-3-1" #17 daemon prio=1 os_prio=0 tid=0x7fea191e5800 
> nid=0x13af waiting on condition [0x7fea02905000]
>  java.lang.Thread.State: TIMED_WAITING (sleeping)
>  at java.lang.Thread.sleep(Native Method)
>  at 
> org.apache.ratis.shaded.io.netty.util.ThreadDeathWatcher$Watcher.run(ThreadDeathWatcher.java:152)
>  at 
> org.apache.ratis.shaded.io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:138)
>  at java.lang.Thread.run(Thread.java:748)
> "grpc-default-worker-ELG-1-2" #16 daemon prio=5 os_prio=0 
> tid=0x7fea191d4000 nid=0x13ac runnable [0x7fea085fc000]
>  java.lang.Thread.State: RUNNABLE
>  at sun.nio.ch.EPollArrayWrapper.epollWait(Native Method)
>  at sun.nio.ch.EPollArrayWrapper.poll(EPollArrayWrapper.java:269)
>  at sun.nio.ch.EPollSelectorImpl.doSelect(EPollSelectorImpl.java:93)
>  at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:86)
>  - locked <0xe0c372f0> (a 
> org.apache.ratis.shaded.io.netty.channel.nio.SelectedSelectionKeySet)
>  - locked <0xe0c419c8> (a java.util.Collections$UnmodifiableSet)
>  - locked <0xe0c372a8> (a sun.nio.ch.EPollSelectorImpl)
>  at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:97)
>  at 
> org.apache.ratis.shaded.io.netty.channel.nio.SelectedSelectionKeySetSelector.select(SelectedSelectionKeySetSelector.java:62)
>  at 
> org.apache.ratis.shaded.io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:753)
>  at 
> org.apache.ratis.shaded.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:409)
>  at 
> org.apache.ratis.shaded.io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)
>  a

[jira] [Updated] (RATIS-11) Better retry policy support for Raft client

2018-07-26 Thread Jing Chen (JIRA)


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

Jing Chen updated RATIS-11:
---
Attachment: 0001-RATIS-11-Better-retry-policy-support-for-Raft-client.patch

> Better retry policy support for Raft client
> ---
>
> Key: RATIS-11
> URL: https://issues.apache.org/jira/browse/RATIS-11
> Project: Ratis
>  Issue Type: Improvement
>  Components: client
>Reporter: Jing Zhao
>Assignee: Jing Chen
>Priority: Major
> Attachments: 
> 0001-RATIS-11-Better-retry-policy-support-for-Raft-client.patch
>
>
> We should have better retry policy support on the raft client side, such as 
> different retry policies, more flexible retry parameter settings, etc.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (RATIS-11) Better retry policy support for Raft client

2018-07-26 Thread Jing Chen (JIRA)


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

Jing Chen updated RATIS-11:
---
Attachment: (was: 
0001-RATIS-11-Better-retry-policy-support-for-Raft-client.patch)

> Better retry policy support for Raft client
> ---
>
> Key: RATIS-11
> URL: https://issues.apache.org/jira/browse/RATIS-11
> Project: Ratis
>  Issue Type: Improvement
>  Components: client
>Reporter: Jing Zhao
>Assignee: Jing Chen
>Priority: Major
> Attachments: 
> 0001-RATIS-11-Better-retry-policy-support-for-Raft-client.patch
>
>
> We should have better retry policy support on the raft client side, such as 
> different retry policies, more flexible retry parameter settings, etc.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (RATIS-11) Better retry policy support for Raft client

2018-07-26 Thread Jing Chen (JIRA)


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

Jing Chen commented on RATIS-11:


Hi [~szetszwo] , the patch is attached, could you have review those changes if 
you have any chance or forward the review request to the best reviewer. Thanks 
a lot.

> Better retry policy support for Raft client
> ---
>
> Key: RATIS-11
> URL: https://issues.apache.org/jira/browse/RATIS-11
> Project: Ratis
>  Issue Type: Improvement
>  Components: client
>Reporter: Jing Zhao
>Assignee: Jing Chen
>Priority: Major
> Attachments: 
> 0001-RATIS-11-Better-retry-policy-support-for-Raft-client.patch
>
>
> We should have better retry policy support on the raft client side, such as 
> different retry policies, more flexible retry parameter settings, etc.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (RATIS-11) Better retry policy support for Raft client

2018-07-26 Thread Jing Chen (JIRA)


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

Jing Chen updated RATIS-11:
---
Attachment: 0001-RATIS-11-Better-retry-policy-support-for-Raft-client.patch

> Better retry policy support for Raft client
> ---
>
> Key: RATIS-11
> URL: https://issues.apache.org/jira/browse/RATIS-11
> Project: Ratis
>  Issue Type: Improvement
>  Components: client
>Reporter: Jing Zhao
>Assignee: Jing Chen
>Priority: Major
> Attachments: 
> 0001-RATIS-11-Better-retry-policy-support-for-Raft-client.patch
>
>
> We should have better retry policy support on the raft client side, such as 
> different retry policies, more flexible retry parameter settings, etc.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Assigned] (RATIS-221) Support new operations in Arithmetic-Example (append, remove/delete)

2018-07-24 Thread Jing Chen (JIRA)


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

Jing Chen reassigned RATIS-221:
---

Assignee: Jing Chen

> Support new operations in Arithmetic-Example (append, remove/delete)
> 
>
> Key: RATIS-221
> URL: https://issues.apache.org/jira/browse/RATIS-221
> Project: Ratis
>  Issue Type: New Feature
>  Components: examples
>Affects Versions: 0.1.0-alpha
>Reporter: Vinay Banakar
>Assignee: Jing Chen
>Priority: Major
>  Labels: features
>
> New operations can be supported in Arithmetic-Example to provide a more 
> succinct demo for the future users/developers.
> 1. Adding "append" 
>         *Command*: ./client.sh append --name X --value Y
>          *Behavior*: This will increment the variable X by Y. 
>          *Alternative*: Improve "assign" to do variable increments 
>                               ./client.sh assign --name X --value X+Y
>                               [This throws an Exception today]
> 2. Adding "remove/delete" (let's just say remove for now)
>         *Command*: ./client.sh remove --name X 
>          *Behavior*: This should remove variable X from the cluster. 
>          *Alternative*: None



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Assigned] (RATIS-11) Better retry policy support for Raft client

2018-05-29 Thread Jing Chen (JIRA)


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

Jing Chen reassigned RATIS-11:
--

Assignee: Jing Chen

> Better retry policy support for Raft client
> ---
>
> Key: RATIS-11
> URL: https://issues.apache.org/jira/browse/RATIS-11
> Project: Ratis
>  Issue Type: Improvement
>Reporter: Jing Zhao
>Assignee: Jing Chen
>Priority: Major
>
> We should have better retry policy support on the raft client side, such as 
> different retry policies, more flexible retry parameter settings, etc.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Assigned] (RATIS-11) Better retry policy support for Raft client

2018-05-29 Thread Jing Chen (JIRA)


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

Jing Chen reassigned RATIS-11:
--

Assignee: (was: Jing Chen)

> Better retry policy support for Raft client
> ---
>
> Key: RATIS-11
> URL: https://issues.apache.org/jira/browse/RATIS-11
> Project: Ratis
>  Issue Type: Improvement
>Reporter: Jing Zhao
>Priority: Major
>
> We should have better retry policy support on the raft client side, such as 
> different retry policies, more flexible retry parameter settings, etc.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Assigned] (RATIS-131) Add checkstyle configuration

2018-05-29 Thread Jing Chen (JIRA)


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

Jing Chen reassigned RATIS-131:
---

Assignee: (was: Jing Chen)

> Add checkstyle configuration
> 
>
> Key: RATIS-131
> URL: https://issues.apache.org/jira/browse/RATIS-131
> Project: Ratis
>  Issue Type: Bug
>Reporter: Tsz Wo Nicholas Sze
>Priority: Major
>
> This JIRA is to setup our checkstyle coding conventions.  We probably should 
> start with [Sun coding 
> conventions|https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/sun_checks.xml]
>  or [Google coding 
> conventions|https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml].



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (RATIS-131) Add checkstyle configuration

2018-01-27 Thread Jing Chen (JIRA)

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

Jing Chen commented on RATIS-131:
-

Hi [~szetszwo], 

would you mind letting me know your suggestion on which phase the checkstyle 
happens during the build?

Currently, we have two options:
 # checkstyle at the *validate* phase, which checks the code prior to compiling 
the code, or
 # checkstyle at the *verify* phase, which would check  the code after test 
phase.

I have my preference at option 2, how about yours?

> Add checkstyle configuration
> 
>
> Key: RATIS-131
> URL: https://issues.apache.org/jira/browse/RATIS-131
> Project: Ratis
>  Issue Type: Bug
>Reporter: Tsz Wo Nicholas Sze
>Assignee: Jing Chen
>Priority: Major
>
> This JIRA is to setup our checkstyle coding conventions.  We probably should 
> start with [Sun coding 
> conventions|https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/sun_checks.xml]
>  or [Google coding 
> conventions|https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml].



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Assigned] (RATIS-131) Add checkstyle configuration

2018-01-26 Thread Jing Chen (JIRA)

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

Jing Chen reassigned RATIS-131:
---

Assignee: Jing Chen

> Add checkstyle configuration
> 
>
> Key: RATIS-131
> URL: https://issues.apache.org/jira/browse/RATIS-131
> Project: Ratis
>  Issue Type: Bug
>Reporter: Tsz Wo Nicholas Sze
>Assignee: Jing Chen
>Priority: Major
>
> This JIRA is to setup our checkstyle coding conventions.  We probably should 
> start with [Sun coding 
> conventions|https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/sun_checks.xml]
>  or [Google coding 
> conventions|https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml].



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (RATIS-127) Move the state machine implementation to a new package

2018-01-24 Thread Jing Chen (JIRA)

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

Jing Chen updated RATIS-127:

Attachment: 0001-RATIS-127.-Move-the-state-machine-implementation-to-.patch

> Move the state machine implementation to a new package
> --
>
> Key: RATIS-127
> URL: https://issues.apache.org/jira/browse/RATIS-127
> Project: Ratis
>  Issue Type: Improvement
>Reporter: Tsz Wo Nicholas Sze
>Assignee: Jing Chen
>Priority: Major
> Attachments: 
> 0001-RATIS-127.-Move-the-state-machine-implementation-to-.patch
>
>
> BaseStateMachine, SingleFileSnapshotInfo, FileListSnapshotInfo and 
> SimpleStateMachineStorage are implementations.  They should be moved to a new 
> package, say statemachine.impl.
> For TransactionContext, it should be separated out the API and move the 
> implementation to a new class.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Assigned] (RATIS-127) Move the state machine implementation to a new package

2018-01-22 Thread Jing Chen (JIRA)

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

Jing Chen reassigned RATIS-127:
---

Assignee: Jing Chen

> Move the state machine implementation to a new package
> --
>
> Key: RATIS-127
> URL: https://issues.apache.org/jira/browse/RATIS-127
> Project: Ratis
>  Issue Type: Improvement
>Reporter: Tsz Wo Nicholas Sze
>Assignee: Jing Chen
>Priority: Major
>
> BaseStateMachine, SingleFileSnapshotInfo, FileListSnapshotInfo and 
> SimpleStateMachineStorage are implementations.  They should be moved to a new 
> package, say statemachine.impl.
> For TransactionContext, it should be separated out the API and move the 
> implementation to a new class.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (RATIS-11) Better retry policy support for Raft client

2017-11-20 Thread Jing Chen (JIRA)

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

Jing Chen commented on RATIS-11:


thanks a lot for the info [~jnp] , from which I would assume that I am not 
supposed to create a pull request over Github while I need to create the patch.

> Better retry policy support for Raft client
> ---
>
> Key: RATIS-11
> URL: https://issues.apache.org/jira/browse/RATIS-11
> Project: Ratis
>  Issue Type: Improvement
>Reporter: Jing Zhao
>Assignee: Jing Chen
>
> We should have better retry policy support on the raft client side, such as 
> different retry policies, more flexible retry parameter settings, etc.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (RATIS-11) Better retry policy support for Raft client

2017-11-20 Thread Jing Chen (JIRA)

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

Jing Chen commented on RATIS-11:


[~jnp] I am working on this ticket, but I have no access to update status of 
the ticket. Would you mind granting the access?

> Better retry policy support for Raft client
> ---
>
> Key: RATIS-11
> URL: https://issues.apache.org/jira/browse/RATIS-11
> Project: Ratis
>  Issue Type: Improvement
>Reporter: Jing Zhao
>Assignee: Jing Chen
>
> We should have better retry policy support on the raft client side, such as 
> different retry policies, more flexible retry parameter settings, etc.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Assigned] (RATIS-11) Better retry policy support for Raft client

2017-07-31 Thread Jing Chen (JIRA)

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

Jing Chen reassigned RATIS-11:
--

Assignee: Jing Chen

> Better retry policy support for Raft client
> ---
>
> Key: RATIS-11
> URL: https://issues.apache.org/jira/browse/RATIS-11
> Project: Ratis
>  Issue Type: Improvement
>Reporter: Jing Zhao
>Assignee: Jing Chen
>
> We should have better retry policy support on the raft client side, such as 
> different retry policies, more flexible retry parameter settings, etc.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (RATIS-11) Better retry policy support for Raft client

2017-05-04 Thread Jing Chen (JIRA)

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

Jing Chen commented on RATIS-11:


can anyone add me to the white list then I am able to pick up some tickets

> Better retry policy support for Raft client
> ---
>
> Key: RATIS-11
> URL: https://issues.apache.org/jira/browse/RATIS-11
> Project: Ratis
>  Issue Type: Improvement
>Reporter: Jing Zhao
>
> We should have better retry policy support on the raft client side, such as 
> different retry policies, more flexible retry parameter settings, etc.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)