[jira] [Commented] (QPID-6126) [Java Broker] Improve CO validation on creation and transit CO into ERRORED state on exceptions whilst recovering

2014-10-01 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on QPID-6126:
---

Commit 1628867 from oru...@apache.org in branch 'qpid/trunk'
[ https://svn.apache.org/r1628867 ]

QPID-6126: Add ability to validate CO attributes on creation, transit COs into 
ERRORED state if exception occurs on recovery, allow ERRORED CO restart after 
remediation of configuration problem

> [Java Broker] Improve CO validation on creation and transit CO into ERRORED 
> state on exceptions whilst recovering
> -
>
> Key: QPID-6126
> URL: https://issues.apache.org/jira/browse/QPID-6126
> Project: Qpid
>  Issue Type: Improvement
>  Components: Java Broker
> Environment: Java Broker cannot start when exceptions occus on 
> recovery of configured objects. Management mode is required to use in order 
> to remediate the configuration issue. However, in some cases configured 
> objects cannot even be started in management mode. Additionally, there are 
> number issues with attribute validation on creation of COs, like CO is 
> created but cannot be stored in configuration store. Sometimes, such CO 
> cannot even be deleted properly from the broker model and restart is required 
> to remove such COs.
> This JIRA aims to sthengthen CO validation and improve Broker behaviour on 
> recovery/creation of CO with misconfigured attributes.
> The following improvements will be added as part of this JIRA:
> # a special method to implement validation on creation will be added into 
> AbstractConfiguredObject and COs inherited from AbstractConfiguredObject to 
> perform additional attribute validation on creation. Validation exceptions 
> thrown from the validation methods on CO creation should delete CO and 
> release all its resources.
> # when runtime exceptions occur on CO recovery such CO should transit into 
> ERRORED state and Broker should continue with the startup of not-impacted COs.
> #user should be able to remediate the configuration issue in ERRORED CO using 
> management interfaces and re-start the CO
>Reporter: Alex Rudyy
>Assignee: Alex Rudyy
> Fix For: 0.31
>
> Attachments: 
> 0001-QPID-6126-Add-ability-to-validate-CO-attributes-on-c.patch, 
> 0001-QPID-6126-Add-ability-to-validate-CO-attributes-on-c.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Updated] (QPID-6128) Error when casting from 'sockaddr*' to 'sockaddr_in*' on ARM platforms

2014-10-01 Thread Darryl L. Pierce (JIRA)

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

Darryl L. Pierce updated QPID-6128:
---
Attachment: 0003-QPID-6128-Fix-compiling-SocketAddress-on-ARM.patch

> Error when casting from 'sockaddr*' to 'sockaddr_in*' on ARM platforms
> --
>
> Key: QPID-6128
> URL: https://issues.apache.org/jira/browse/QPID-6128
> Project: Qpid
>  Issue Type: Bug
>  Components: C++ Client
>Reporter: Darryl L. Pierce
> Attachments: 0003-QPID-6128-Fix-compiling-SocketAddress-on-ARM.patch
>
>
> When building on ARM the following error occurs:
> [ 18%] Building CXX object 
> src/CMakeFiles/qpidcommon.dir/qpid/sys/posix/SystemInfo.cpp.o
> cd /builddir/build/BUILD/qpid-cpp-0.30/src && /usr/bin/c++   
> -DXQ_EFFECTIVE_BOOLEAN_VALUE_HPP -Dqpidcommon_EXPORTS -O2 -g -pipe -Wall 
> -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
> -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches  
> -march=armv7-a -mfpu=vfpv3-d16  -mfloat-abi=hard  -fvisibility-inlines-hidden 
> -Werror -pedantic -Wall -Wextra -Wno-shadow -Wpointer-arith -Wcast-qual 
> -Wcast-align -Wno-long-long -Wvolatile-register-var -Winvalid-pch 
> -Wno-system-headers -Woverloaded-virtual -O2 -g -DNDEBUG -fPIC 
> -I/builddir/build/BUILD/qpid-cpp-0.30/src 
> -I/builddir/build/BUILD/qpid-cpp-0.30/src/../include -I/usr/include/nss3 
> -I/usr/include/nspr4-pthread -o 
> CMakeFiles/qpidcommon.dir/qpid/sys/posix/SystemInfo.cpp.o -c 
> /builddir/build/BUILD/qpid-cpp-0.30/src/qpid/sys/posix/SystemInfo.cpp
> /builddir/build/BUILD/qpid-cpp-0.30/src/qpid/sys/posix/SocketAddress.cpp: In 
> member function 'bool qpid::sys::SocketAddress::compareAddresses(const 
> addrinfo&, const addrinfo&, int&) const':
> /builddir/build/BUILD/qpid-cpp-0.30/src/qpid/sys/posix/SocketAddress.cpp:290:62:
>  error: cast from 'sockaddr*' to 'sockaddr_in*' increases required alignment 
> of target type [-Werror=cast-align]
>  struct sockaddr_in* sin4lo = (struct sockaddr_in*)lo.ai_addr;
>   ^
> /builddir/build/BUILD/qpid-cpp-0.30/src/qpid/sys/posix/SocketAddress.cpp:291:62:
>  error: cast from 'sockaddr*' to 'sockaddr_in*' increases required alignment 
> of target type [-Werror=cast-align]
>  struct sockaddr_in* sin4hi = (struct sockaddr_in*)hi.ai_addr;
>   ^
> /builddir/build/BUILD/qpid-cpp-0.30/src/qpid/sys/posix/SocketAddress.cpp:294:64:
>  error: cast from 'sockaddr*' to 'sockaddr_in6*' increases required alignment 
> of target type [-Werror=cast-align]
>  struct sockaddr_in6* sin6lo = (struct sockaddr_in6*)lo.ai_addr;
> ^
> /builddir/build/BUILD/qpid-cpp-0.30/src/qpid/sys/posix/SocketAddress.cpp:295:64:
>  error: cast from 'sockaddr*' to 'sockaddr_in6*' increases required alignment 
> of target type [-Werror=cast-align]
>  struct sockaddr_in6* sin6hi = (struct sockaddr_in6*)hi.ai_addr;
> ^
> cc1plus: all warnings being treated as errors
> src/CMakeFiles/qpidcommon.dir/build.make:2909: recipe for target 
> 'src/CMakeFiles/qpidcommon.dir/qpid/sys/posix/SocketAddress.cpp.o' failed



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Commented] (QPID-6128) Error when casting from 'sockaddr*' to 'sockaddr_in*' on ARM platforms

2014-10-01 Thread Darryl L. Pierce (JIRA)

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

Darryl L. Pierce commented on QPID-6128:


Looking this up online the recommendation I found was to cast from sockaddr* to 
void* and then from that to sockaddr_in*.

> Error when casting from 'sockaddr*' to 'sockaddr_in*' on ARM platforms
> --
>
> Key: QPID-6128
> URL: https://issues.apache.org/jira/browse/QPID-6128
> Project: Qpid
>  Issue Type: Bug
>  Components: C++ Client
>Reporter: Darryl L. Pierce
>
> When building on ARM the following error occurs:
> [ 18%] Building CXX object 
> src/CMakeFiles/qpidcommon.dir/qpid/sys/posix/SystemInfo.cpp.o
> cd /builddir/build/BUILD/qpid-cpp-0.30/src && /usr/bin/c++   
> -DXQ_EFFECTIVE_BOOLEAN_VALUE_HPP -Dqpidcommon_EXPORTS -O2 -g -pipe -Wall 
> -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
> -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches  
> -march=armv7-a -mfpu=vfpv3-d16  -mfloat-abi=hard  -fvisibility-inlines-hidden 
> -Werror -pedantic -Wall -Wextra -Wno-shadow -Wpointer-arith -Wcast-qual 
> -Wcast-align -Wno-long-long -Wvolatile-register-var -Winvalid-pch 
> -Wno-system-headers -Woverloaded-virtual -O2 -g -DNDEBUG -fPIC 
> -I/builddir/build/BUILD/qpid-cpp-0.30/src 
> -I/builddir/build/BUILD/qpid-cpp-0.30/src/../include -I/usr/include/nss3 
> -I/usr/include/nspr4-pthread -o 
> CMakeFiles/qpidcommon.dir/qpid/sys/posix/SystemInfo.cpp.o -c 
> /builddir/build/BUILD/qpid-cpp-0.30/src/qpid/sys/posix/SystemInfo.cpp
> /builddir/build/BUILD/qpid-cpp-0.30/src/qpid/sys/posix/SocketAddress.cpp: In 
> member function 'bool qpid::sys::SocketAddress::compareAddresses(const 
> addrinfo&, const addrinfo&, int&) const':
> /builddir/build/BUILD/qpid-cpp-0.30/src/qpid/sys/posix/SocketAddress.cpp:290:62:
>  error: cast from 'sockaddr*' to 'sockaddr_in*' increases required alignment 
> of target type [-Werror=cast-align]
>  struct sockaddr_in* sin4lo = (struct sockaddr_in*)lo.ai_addr;
>   ^
> /builddir/build/BUILD/qpid-cpp-0.30/src/qpid/sys/posix/SocketAddress.cpp:291:62:
>  error: cast from 'sockaddr*' to 'sockaddr_in*' increases required alignment 
> of target type [-Werror=cast-align]
>  struct sockaddr_in* sin4hi = (struct sockaddr_in*)hi.ai_addr;
>   ^
> /builddir/build/BUILD/qpid-cpp-0.30/src/qpid/sys/posix/SocketAddress.cpp:294:64:
>  error: cast from 'sockaddr*' to 'sockaddr_in6*' increases required alignment 
> of target type [-Werror=cast-align]
>  struct sockaddr_in6* sin6lo = (struct sockaddr_in6*)lo.ai_addr;
> ^
> /builddir/build/BUILD/qpid-cpp-0.30/src/qpid/sys/posix/SocketAddress.cpp:295:64:
>  error: cast from 'sockaddr*' to 'sockaddr_in6*' increases required alignment 
> of target type [-Werror=cast-align]
>  struct sockaddr_in6* sin6hi = (struct sockaddr_in6*)hi.ai_addr;
> ^
> cc1plus: all warnings being treated as errors
> src/CMakeFiles/qpidcommon.dir/build.make:2909: recipe for target 
> 'src/CMakeFiles/qpidcommon.dir/qpid/sys/posix/SocketAddress.cpp.o' failed



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Assigned] (QPID-6129) Consistently chain exceptions in Derby/JDBC store implementations

2014-10-01 Thread Andrew MacBean (JIRA)

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

Andrew MacBean reassigned QPID-6129:


Assignee: Andrew MacBean

> Consistently chain exceptions in Derby/JDBC store implementations
> -
>
> Key: QPID-6129
> URL: https://issues.apache.org/jira/browse/QPID-6129
> Project: Qpid
>  Issue Type: Improvement
>  Components: Java Broker
>Reporter: Keith Wall
>Assignee: Andrew MacBean
>Priority: Trivial
> Fix For: 0.31
>
>
> To aid problem diagnosis, java exceptions should be properly chained.  
> Currently in the JDBC/Deby store impls some chaining is missing.  This will 
> make accurate problem determination problematic.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Commented] (QPID-6129) Consistently chain exceptions in Derby/JDBC store implementations

2014-10-01 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on QPID-6129:
---

Commit 1628743 from [~k-wall] in branch 'qpid/trunk'
[ https://svn.apache.org/r1628743 ]

QPID-6129: [Java Broker] Chain exceptions in Derby/JDBC store implementations

> Consistently chain exceptions in Derby/JDBC store implementations
> -
>
> Key: QPID-6129
> URL: https://issues.apache.org/jira/browse/QPID-6129
> Project: Qpid
>  Issue Type: Improvement
>  Components: Java Broker
>Reporter: Keith Wall
>Priority: Trivial
> Fix For: 0.31
>
>
> To aid problem diagnosis, java exceptions should be properly chained.  
> Currently in the JDBC/Deby store impls some chaining is missing.  This will 
> make accurate problem determination problematic.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Resolved] (QPID-6129) Consistently chain exceptions in Derby/JDBC store implementations

2014-10-01 Thread Keith Wall (JIRA)

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

Keith Wall resolved QPID-6129.
--
   Resolution: Fixed
Fix Version/s: 0.31

> Consistently chain exceptions in Derby/JDBC store implementations
> -
>
> Key: QPID-6129
> URL: https://issues.apache.org/jira/browse/QPID-6129
> Project: Qpid
>  Issue Type: Improvement
>  Components: Java Broker
>Reporter: Keith Wall
>Priority: Trivial
> Fix For: 0.31
>
>
> To aid problem diagnosis, java exceptions should be properly chained.  
> Currently in the JDBC/Deby store impls some chaining is missing.  This will 
> make accurate problem determination problematic.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Created] (QPID-6129) Consistently chain exceptions in Derby/JDBC store implementations

2014-10-01 Thread Keith Wall (JIRA)
Keith Wall created QPID-6129:


 Summary: Consistently chain exceptions in Derby/JDBC store 
implementations
 Key: QPID-6129
 URL: https://issues.apache.org/jira/browse/QPID-6129
 Project: Qpid
  Issue Type: Improvement
  Components: Java Broker
Reporter: Keith Wall
Priority: Trivial


To aid problem diagnosis, java exceptions should be properly chained.  
Currently in the JDBC/Deby store impls some chaining is missing.  This will 
make accurate problem determination problematic.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Created] (QPID-6128) Error when casting from 'sockaddr*' to 'sockaddr_in*' on ARM platforms

2014-10-01 Thread Darryl L. Pierce (JIRA)
Darryl L. Pierce created QPID-6128:
--

 Summary: Error when casting from 'sockaddr*' to 'sockaddr_in*' on 
ARM platforms
 Key: QPID-6128
 URL: https://issues.apache.org/jira/browse/QPID-6128
 Project: Qpid
  Issue Type: Bug
  Components: C++ Client
Reporter: Darryl L. Pierce


When building on ARM the following error occurs:

[ 18%] Building CXX object 
src/CMakeFiles/qpidcommon.dir/qpid/sys/posix/SystemInfo.cpp.o
cd /builddir/build/BUILD/qpid-cpp-0.30/src && /usr/bin/c++   
-DXQ_EFFECTIVE_BOOLEAN_VALUE_HPP -Dqpidcommon_EXPORTS -O2 -g -pipe -Wall 
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches  
-march=armv7-a -mfpu=vfpv3-d16  -mfloat-abi=hard  -fvisibility-inlines-hidden 
-Werror -pedantic -Wall -Wextra -Wno-shadow -Wpointer-arith -Wcast-qual 
-Wcast-align -Wno-long-long -Wvolatile-register-var -Winvalid-pch 
-Wno-system-headers -Woverloaded-virtual -O2 -g -DNDEBUG -fPIC 
-I/builddir/build/BUILD/qpid-cpp-0.30/src 
-I/builddir/build/BUILD/qpid-cpp-0.30/src/../include -I/usr/include/nss3 
-I/usr/include/nspr4-pthread -o 
CMakeFiles/qpidcommon.dir/qpid/sys/posix/SystemInfo.cpp.o -c 
/builddir/build/BUILD/qpid-cpp-0.30/src/qpid/sys/posix/SystemInfo.cpp
/builddir/build/BUILD/qpid-cpp-0.30/src/qpid/sys/posix/SocketAddress.cpp: In 
member function 'bool qpid::sys::SocketAddress::compareAddresses(const 
addrinfo&, const addrinfo&, int&) const':
/builddir/build/BUILD/qpid-cpp-0.30/src/qpid/sys/posix/SocketAddress.cpp:290:62:
 error: cast from 'sockaddr*' to 'sockaddr_in*' increases required alignment of 
target type [-Werror=cast-align]
 struct sockaddr_in* sin4lo = (struct sockaddr_in*)lo.ai_addr;
  ^
/builddir/build/BUILD/qpid-cpp-0.30/src/qpid/sys/posix/SocketAddress.cpp:291:62:
 error: cast from 'sockaddr*' to 'sockaddr_in*' increases required alignment of 
target type [-Werror=cast-align]
 struct sockaddr_in* sin4hi = (struct sockaddr_in*)hi.ai_addr;
  ^
/builddir/build/BUILD/qpid-cpp-0.30/src/qpid/sys/posix/SocketAddress.cpp:294:64:
 error: cast from 'sockaddr*' to 'sockaddr_in6*' increases required alignment 
of target type [-Werror=cast-align]
 struct sockaddr_in6* sin6lo = (struct sockaddr_in6*)lo.ai_addr;
^
/builddir/build/BUILD/qpid-cpp-0.30/src/qpid/sys/posix/SocketAddress.cpp:295:64:
 error: cast from 'sockaddr*' to 'sockaddr_in6*' increases required alignment 
of target type [-Werror=cast-align]
 struct sockaddr_in6* sin6hi = (struct sockaddr_in6*)hi.ai_addr;
^
cc1plus: all warnings being treated as errors
src/CMakeFiles/qpidcommon.dir/build.make:2909: recipe for target 
'src/CMakeFiles/qpidcommon.dir/qpid/sys/posix/SocketAddress.cpp.o' failed



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Commented] (QPID-6116) [Python Client 08..091] Add ability to negotiate SASL mechanism and add support for SCRAM, CRAM, PLAIN mechanisms

2014-10-01 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on QPID-6116:
---

Commit 1628687 from [~k-wall] in branch 'qpid/trunk'
[ https://svn.apache.org/r1628687 ]

QPID-6116: [Python Client 0-8..0-9] Allow fallback to anon/external sasl if no 
credentials are provided

> [Python Client 08..091] Add ability to negotiate SASL mechanism and add 
> support for SCRAM, CRAM, PLAIN mechanisms
> -
>
> Key: QPID-6116
> URL: https://issues.apache.org/jira/browse/QPID-6116
> Project: Qpid
>  Issue Type: New Feature
>  Components: Python Client
>Reporter: Keith Wall
>
> On the 08..091 code path, users of the Python API are responsible for forming 
> the SASL response themselves and passing this as an argument to the 
> Client#start method.  This approach works only for SASL interactions that do 
> not require a 'secure' step.
> {code}
> client = Client("localhost", 5672)
> client.start(response="\0guest\0guest", mechanism="PLAIN")
> {code}
> The API will be changed so that Client#start accept username/password 
> arguments, and that the client internally selects a suitable SASL mechanism 
> from those offered by the server.  SASL mechanisms will be included for:
> * SCRAM SHA1/25
> * CRAM-MD5
> * PLAIN
> * EXTERNAL
> * ANONYMOUS
> * AMQPLAIN/CRAM-MD5-HEX (legacy - to aid interoperability)
> The existing API will be maintain through the change.  The 0-10 paths will 
> not be impacted by this change.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Resolved] (QPID-3678) Can't set prefetch to 0 using capacity option in address

2014-10-01 Thread Rob Godfrey (JIRA)

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

Rob Godfrey resolved QPID-3678.
---
   Resolution: Fixed
Fix Version/s: 0.31

> Can't set prefetch to 0 using capacity option in address
> 
>
> Key: QPID-3678
> URL: https://issues.apache.org/jira/browse/QPID-3678
> Project: Qpid
>  Issue Type: Bug
>  Components: Java Client
>Affects Versions: 0.14
>Reporter: Gordon Sim
>Assignee: Rob Godfrey
>  Labels: addressing
> Fix For: 0.31
>
> Attachments: QPID-3678-2.patch
>
>
> E.g. 'my-queue; {link:{capacity:0}}'
> will result in the default prefetch (500) being used/ This means you can't 
> configure a consumer to only pull messages as needed by receive() calls.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org