[GitHub] activemq-artemis pull request #2139: ARTEMIS-1927 treat exceptions and disco...

2018-06-12 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/activemq-artemis/pull/2139


---


[GitHub] activemq-artemis pull request #2133: ARTEMIS-1923 fix constructing binding j...

2018-06-12 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/activemq-artemis/pull/2133


---


[GitHub] activemq-artemis pull request #2139: ARTEMIS-1927 treat exceptions and disco...

2018-06-12 Thread clebertsuconic
Github user clebertsuconic commented on a diff in the pull request:

https://github.com/apache/activemq-artemis/pull/2139#discussion_r194892207
  
--- Diff: 
artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/server/impl/RemotingServiceImpl.java
 ---
@@ -554,20 +558,13 @@ public void connectionDestroyed(final Object 
connectionID) {
return;
 }
  }
- conn.connection.fail(new ActiveMQRemoteDisconnectException());
+ conn.connection.fail(e);
   }
}
 
@Override
public void connectionException(final Object connectionID, final 
ActiveMQException me) {
-  // We DO NOT call fail on connection exception, otherwise in event 
of real connection failure, the
-  // connection will be failed, the session will be closed and won't 
be able to reconnect
-
-  // E.g. if live server fails, then this handler wil be called on 
backup server for the server
-  // side replicating connection.
-  // If the connection fail() is called then the sessions on the 
backup will get closed.
-
-  // Connections should only fail when TTL is exceeded
+  issueFailure(connectionID, me);
}
--- End diff --

I'm running the full testsuite to make sure.


---


[GitHub] activemq-artemis pull request #2139: ARTEMIS-1927 treat exceptions and disco...

2018-06-12 Thread clebertsuconic
Github user clebertsuconic commented on a diff in the pull request:

https://github.com/apache/activemq-artemis/pull/2139#discussion_r194892092
  
--- Diff: 
artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/server/impl/RemotingServiceImpl.java
 ---
@@ -554,20 +558,13 @@ public void connectionDestroyed(final Object 
connectionID) {
return;
 }
  }
- conn.connection.fail(new ActiveMQRemoteDisconnectException());
+ conn.connection.fail(e);
   }
}
 
@Override
public void connectionException(final Object connectionID, final 
ActiveMQException me) {
-  // We DO NOT call fail on connection exception, otherwise in event 
of real connection failure, the
-  // connection will be failed, the session will be closed and won't 
be able to reconnect
-
-  // E.g. if live server fails, then this handler wil be called on 
backup server for the server
-  // side replicating connection.
-  // If the connection fail() is called then the sessions on the 
backup will get closed.
-
-  // Connections should only fail when TTL is exceeded
+  issueFailure(connectionID, me);
}
--- End diff --

no.. it didn't apply for some time already.

This is legacy from hornetq where we would only issue disconnects based on 
TTL. 


---


[GitHub] activemq-artemis pull request #2139: ARTEMIS-1927 treat exceptions and disco...

2018-06-12 Thread jbertram
Github user jbertram commented on a diff in the pull request:

https://github.com/apache/activemq-artemis/pull/2139#discussion_r194890149
  
--- Diff: 
artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/server/impl/RemotingServiceImpl.java
 ---
@@ -554,20 +558,13 @@ public void connectionDestroyed(final Object 
connectionID) {
return;
 }
  }
- conn.connection.fail(new ActiveMQRemoteDisconnectException());
+ conn.connection.fail(e);
   }
}
 
@Override
public void connectionException(final Object connectionID, final 
ActiveMQException me) {
-  // We DO NOT call fail on connection exception, otherwise in event 
of real connection failure, the
-  // connection will be failed, the session will be closed and won't 
be able to reconnect
-
-  // E.g. if live server fails, then this handler wil be called on 
backup server for the server
-  // side replicating connection.
-  // If the connection fail() is called then the sessions on the 
backup will get closed.
-
-  // Connections should only fail when TTL is exceeded
+  issueFailure(connectionID, me);
}
--- End diff --

Does this comment no longer apply?  Is there not a risk that core clients 
won't be able to reconnect to their server session in the case of a spurious 
network failure?


---


[GitHub] activemq-artemis pull request #2139: ARTEMIS-1927 treat exceptions and disco...

2018-06-12 Thread clebertsuconic
GitHub user clebertsuconic opened a pull request:

https://github.com/apache/activemq-artemis/pull/2139

ARTEMIS-1927 treat exceptions and disconnect properly

I couldn't do this with a test as this is dependent on windows. Regular 
testsuite should be sufficient as long as you run in Windows.

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/clebertsuconic/activemq-artemis ARTEMIS-1927

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/activemq-artemis/pull/2139.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #2139


commit aea51a23af7a4a94e18835cbd4e7ae056946484e
Author: Clebert Suconic 
Date:   2018-06-12T20:29:13Z

ARTEMIS-1927 treat exceptions and disconnect properly

I couldn't do this with a test as this is dependent on windows. Regular 
testsuite should be sufficient as long as you run in Windows.




---


[GitHub] activemq-artemis pull request #2138: ARTEMIS-1926 refactor SSLContext

2018-06-12 Thread jbertram
GitHub user jbertram opened a pull request:

https://github.com/apache/activemq-artemis/pull/2138

ARTEMIS-1926 refactor SSLContext



You can merge this pull request into a Git repository by running:

$ git pull https://github.com/jbertram/activemq-artemis ARTEMIS-1926

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/activemq-artemis/pull/2138.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #2138


commit 6eaa009efcfb05b248621845f97a599c4b19904c
Author: Justin Bertram 
Date:   2018-06-12T20:27:48Z

ARTEMIS-1926 refactor SSLContext




---


[GitHub] activemq-artemis issue #2133: ARTEMIS-1923 fix constructing binding journali...

2018-06-12 Thread clebertsuconic
Github user clebertsuconic commented on the issue:

https://github.com/apache/activemq-artemis/pull/2133
  
I will ammend the commit with a test


---


[GitHub] activemq-artemis pull request #2137: NO-JIRA fix JMS destination cache doc

2018-06-12 Thread jbertram
GitHub user jbertram opened a pull request:

https://github.com/apache/activemq-artemis/pull/2137

NO-JIRA fix JMS destination cache doc



You can merge this pull request into a Git repository by running:

$ git pull https://github.com/jbertram/activemq-artemis master_work

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/activemq-artemis/pull/2137.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #2137


commit f27f61b056cd7d38c389405f6d10c40c85fcff19
Author: Justin Bertram 
Date:   2018-06-12T15:34:31Z

NO-JIRA fix JMS destination cache doc




---


[GitHub] activemq-artemis pull request #2132: ARTEMIS-1893: Treat the detach of a lin...

2018-06-12 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/activemq-artemis/pull/2132


---


[GitHub] activemq-artemis issue #2122: ARTEMIS-1904 Jmx Management Security Tests

2018-06-12 Thread gaohoward
Github user gaohoward commented on the issue:

https://github.com/apache/activemq-artemis/pull/2122
  
@mtaylor worked with Andy and figured out ARTEMIS-1916 is not valid (PR 
will be discarded). I've fixed the test and it should be ready for review now. 


---