[jira] [Resolved] (PROTON-2814) [Python] Python tests incompatible with python 3.12

2024-04-15 Thread Andrew Stitcher (Jira)


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

Andrew Stitcher resolved PROTON-2814.
-
Fix Version/s: proton-c-0.40.0
   Resolution: Fixed

> [Python] Python tests incompatible with python 3.12
> ---
>
> Key: PROTON-2814
> URL: https://issues.apache.org/jira/browse/PROTON-2814
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: python-binding
>Reporter: Andrew Stitcher
>Assignee: Andrew Stitcher
>Priority: Major
> Fix For: proton-c-0.40.0
>
>
> Python 3.12 removes {{cgi.escape()}} which is used by the python tests to 
> output Junit compatible failure information.
> The use can be simply replaced with {{{}html.escape(){}}}.
> [Thanks to [~jdanek] for finding this issue before we had a failure actually 
> trigger it!]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



[jira] [Commented] (PROTON-2814) [Python] Python tests incompatible with python 3.12

2024-04-15 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/PROTON-2814?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17837386#comment-17837386
 ] 

ASF subversion and git services commented on PROTON-2814:
-

Commit 4287b7ae2b9bdb19f3040c82d298ec764b5e4acd in qpid-proton's branch 
refs/heads/main from Andrew Stitcher
[ https://gitbox.apache.org/repos/asf?p=qpid-proton.git;h=4287b7ae2 ]

PROTON-2814: [Python] Tests use function removed in Python 3.12

Fix changed cgi.escape() to html.escape() as cgi.escape has been removed
in Python 3.12.

This only affects test failure output in the JUnit reporter so would
only get noticed if there was a test failure in this mode.


> [Python] Python tests incompatible with python 3.12
> ---
>
> Key: PROTON-2814
> URL: https://issues.apache.org/jira/browse/PROTON-2814
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: python-binding
>Reporter: Andrew Stitcher
>Assignee: Andrew Stitcher
>Priority: Major
>
> Python 3.12 removes {{cgi.escape()}} which is used by the python tests to 
> output Junit compatible failure information.
> The use can be simply replaced with {{{}html.escape(){}}}.
> [Thanks to [~jdanek] for finding this issue before we had a failure actually 
> trigger it!]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



[jira] [Resolved] (PROTON-2813) [Python] Make the python code pep8 clean

2024-04-15 Thread Andrew Stitcher (Jira)


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

Andrew Stitcher resolved PROTON-2813.
-
Fix Version/s: proton-c-0.40.0
   Resolution: Fixed

> [Python] Make the python code pep8 clean
> 
>
> Key: PROTON-2813
> URL: https://issues.apache.org/jira/browse/PROTON-2813
> Project: Qpid Proton
>  Issue Type: Improvement
>  Components: python-binding
>Reporter: Andrew Stitcher
>Assignee: Andrew Stitcher
>Priority: Major
> Fix For: proton-c-0.40.0
>
>
> It's better if we only accept code that conforms to the minimal coding 
> standards that we actively check. In PROTON-2320 we started this for python, 
> but left significant parts of the source tree alone.
> We should finish the job and ensure that al;l python code conforms to PEP8 
> except where it can't.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



[jira] [Created] (PROTON-2814) [Python] Python tests incompatible with python 3.12

2024-04-15 Thread Andrew Stitcher (Jira)
Andrew Stitcher created PROTON-2814:
---

 Summary: [Python] Python tests incompatible with python 3.12
 Key: PROTON-2814
 URL: https://issues.apache.org/jira/browse/PROTON-2814
 Project: Qpid Proton
  Issue Type: Bug
  Components: python-binding
Reporter: Andrew Stitcher
Assignee: Andrew Stitcher


Python 3.12 removes {{cgi.escape()}} which is used by the python tests to 
output Junit compatible failure information.
The use can be simply replaced with {{{}html.escape(){}}}.

[Thanks to [~jdanek] for finding this issue before we had a failure actually 
trigger it!]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



[jira] [Resolved] (PROTON-2322) Fix and remove ignores in flake8 configuration

2024-04-15 Thread Andrew Stitcher (Jira)


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

Andrew Stitcher resolved PROTON-2322.
-
Fix Version/s: proton-c-0.40.0
   Resolution: Fixed

> Fix and remove ignores in flake8 configuration
> --
>
> Key: PROTON-2322
> URL: https://issues.apache.org/jira/browse/PROTON-2322
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: python-binding
>Affects Versions: proton-c-0.34.0
>Reporter: Jiri Daněk
>Assignee: Andrew Stitcher
>Priority: Major
> Fix For: proton-c-0.40.0
>
>
> Fixes with autopep8 in PROTON-2320 resolved most of flake8 warnings. There 
> are still warnings left that require human consideration and fixing.
> For example, usage of bare {{except}} in the code.
> This must be fixed manually. Fixed issues should then be removed from the 
> tox.ini flake8 ignore section.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



[jira] [Assigned] (PROTON-2813) [Python] Make the python code pep8 clean

2024-04-15 Thread Andrew Stitcher (Jira)


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

Andrew Stitcher reassigned PROTON-2813:
---

Assignee: Andrew Stitcher

> [Python] Make the python code pep8 clean
> 
>
> Key: PROTON-2813
> URL: https://issues.apache.org/jira/browse/PROTON-2813
> Project: Qpid Proton
>  Issue Type: Improvement
>  Components: python-binding
>Reporter: Andrew Stitcher
>Assignee: Andrew Stitcher
>Priority: Major
>
> It's better if we only accept code that conforms to the minimal coding 
> standards that we actively check. In PROTON-2320 we started this for python, 
> but left significant parts of the source tree alone.
> We should finish the job and ensure that al;l python code conforms to PEP8 
> except where it can't.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



[jira] [Commented] (PROTON-2322) Fix and remove ignores in flake8 configuration

2024-04-15 Thread ASF GitHub Bot (Jira)


[ 
https://issues.apache.org/jira/browse/PROTON-2322?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17837359#comment-17837359
 ] 

ASF GitHub Bot commented on PROTON-2322:


asfgit merged PR #423:
URL: https://github.com/apache/qpid-proton/pull/423




> Fix and remove ignores in flake8 configuration
> --
>
> Key: PROTON-2322
> URL: https://issues.apache.org/jira/browse/PROTON-2322
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: python-binding
>Affects Versions: proton-c-0.34.0
>Reporter: Jiri Daněk
>Assignee: Andrew Stitcher
>Priority: Major
>
> Fixes with autopep8 in PROTON-2320 resolved most of flake8 warnings. There 
> are still warnings left that require human consideration and fixing.
> For example, usage of bare {{except}} in the code.
> This must be fixed manually. Fixed issues should then be removed from the 
> tox.ini flake8 ignore section.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



Re: [PR] PROTON-2322/PROTON-2813: [Python] Finish PEP8 sanitization [qpid-proton]

2024-04-15 Thread via GitHub


asfgit merged PR #423:
URL: https://github.com/apache/qpid-proton/pull/423


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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



[jira] [Commented] (PROTON-2813) [Python] Make the python code pep8 clean

2024-04-15 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/PROTON-2813?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17837358#comment-17837358
 ] 

ASF subversion and git services commented on PROTON-2813:
-

Commit 39892d990459d02aeb67b1c3683c1d428867fb04 in qpid-proton's branch 
refs/heads/main from Andrew Stitcher
[ https://gitbox.apache.org/repos/asf?p=qpid-proton.git;h=39892d990 ]

PROTON-2322/PROTON-2813: [Python] Finish PEP8 sanitization

This is a broad but shallow change, that changes a lot of files in
fairly minor ways.


> [Python] Make the python code pep8 clean
> 
>
> Key: PROTON-2813
> URL: https://issues.apache.org/jira/browse/PROTON-2813
> Project: Qpid Proton
>  Issue Type: Improvement
>  Components: python-binding
>Reporter: Andrew Stitcher
>Priority: Major
>
> It's better if we only accept code that conforms to the minimal coding 
> standards that we actively check. In PROTON-2320 we started this for python, 
> but left significant parts of the source tree alone.
> We should finish the job and ensure that al;l python code conforms to PEP8 
> except where it can't.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



[jira] [Commented] (PROTON-2322) Fix and remove ignores in flake8 configuration

2024-04-15 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/PROTON-2322?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17837357#comment-17837357
 ] 

ASF subversion and git services commented on PROTON-2322:
-

Commit 39892d990459d02aeb67b1c3683c1d428867fb04 in qpid-proton's branch 
refs/heads/main from Andrew Stitcher
[ https://gitbox.apache.org/repos/asf?p=qpid-proton.git;h=39892d990 ]

PROTON-2322/PROTON-2813: [Python] Finish PEP8 sanitization

This is a broad but shallow change, that changes a lot of files in
fairly minor ways.


> Fix and remove ignores in flake8 configuration
> --
>
> Key: PROTON-2322
> URL: https://issues.apache.org/jira/browse/PROTON-2322
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: python-binding
>Affects Versions: proton-c-0.34.0
>Reporter: Jiri Daněk
>Assignee: Andrew Stitcher
>Priority: Major
>
> Fixes with autopep8 in PROTON-2320 resolved most of flake8 warnings. There 
> are still warnings left that require human consideration and fixing.
> For example, usage of bare {{except}} in the code.
> This must be fixed manually. Fixed issues should then be removed from the 
> tox.ini flake8 ignore section.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



[jira] [Commented] (PROTON-2812) Epoll proactor blocks thread during DNS lookups in getaddrinfo

2024-04-15 Thread Clifford Jansen (Jira)


[ 
https://issues.apache.org/jira/browse/PROTON-2812?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17837355#comment-17837355
 ] 

Clifford Jansen commented on PROTON-2812:
-

An additional possible mitigation (with thanks to astitcher):

Since the epoll proactor knows when the getaddrinfo calls are needed and also 
when they are completed, it could regulate a maximum concurrent number of 
threads committed to servicing such calls.

 

> Epoll proactor blocks thread during DNS lookups in getaddrinfo
> --
>
> Key: PROTON-2812
> URL: https://issues.apache.org/jira/browse/PROTON-2812
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: proton-c
>Affects Versions: proton-c-0.39.0
>Reporter: Clifford Jansen
>Assignee: Clifford Jansen
>Priority: Major
> Attachments: mitigate01.diff
>
>
> The epoll proactor uses getaddrinfo() to resolve network addresses for 
> inbound and outbound AMQP and raw connections.  These connect and listener 
> calls are thread safe so may be called from any thread and the expectation is 
> that they initiate the action without blocking.
> Solutions could entail:
> 1) using a dedicated DNS thread pool that multiplexes N serialized (blocking) 
> getaddrinfo calls over the pool (e.g. getaddrinfo_a or self managed like 
> libuv)
> 2) use some custom library that scales DNS requests without blocking
> 3) write the simplest custom proactor library that does #2.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



[jira] [Updated] (QPIDJMS-599) JmsTransactionInDoubtException: error

2024-04-15 Thread Rajesh Kumar (Jira)


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

Rajesh Kumar updated QPIDJMS-599:
-
Description: 
Hi Team,

we are receiving the following error intermittently
 
Exception Details related JmsTransactionInDoubtException:
 
Call Stack: org.apache.qpid.jms.JmsTransactionInDoubtException: Transaction is 
not declared Reference:9a13135d-348c-4a78-b53c-097a11ac103f, 
TrackingId:8ee88669-b631-4261-93eb-09b9beded92f_G8S3, SystemTracker:gtm, 
Timestamp:2024-03-05T01:40:45 [condition = amqp:transaction:unknown-id]
at 
org.apache.qpid.jms.provider.exceptions.ProviderTransactionInDoubtException.toJMSException(ProviderTransactionInDoubtException.java:39)
at 
org.apache.qpid.jms.provider.exceptions.ProviderTransactionInDoubtException.toJMSException(ProviderTransactionInDoubtException.java:25)

 

Kindly help in fixing this error in priority

  was:
Hi Team,

we are receiving the following error intermittently
 
Exception Details related JmsTransactionInDoubtException:
 
Call Stack: org.apache.qpid.jms.JmsTransactionInDoubtException: Transaction is 
not declared Reference:9a13135d-348c-4a78-b53c-097a11ac103f, 
TrackingId:8ee88669-b631-4261-93eb-09b9beded92f_G8S3, SystemTracker:gtm, 
Timestamp:2024-03-05T01:40:45 [condition = amqp:transaction:unknown-id]
at 
org.apache.qpid.jms.provider.exceptions.ProviderTransactionInDoubtException.toJMSException(ProviderTransactionInDoubtException.java:39)
at 
org.apache.qpid.jms.provider.exceptions.ProviderTransactionInDoubtException.toJMSException(ProviderTransactionInDoubtException.java:25)


> JmsTransactionInDoubtException: error
> -
>
> Key: QPIDJMS-599
> URL: https://issues.apache.org/jira/browse/QPIDJMS-599
> Project: Qpid JMS
>  Issue Type: Bug
>Affects Versions: 1.6.0
>Reporter: Rajesh Kumar
>Priority: Major
> Attachments: JMS_Exception_Details.txt
>
>
> Hi Team,
> we are receiving the following error intermittently
>  
> Exception Details related JmsTransactionInDoubtException:
>  
> Call Stack: org.apache.qpid.jms.JmsTransactionInDoubtException: Transaction 
> is not declared Reference:9a13135d-348c-4a78-b53c-097a11ac103f, 
> TrackingId:8ee88669-b631-4261-93eb-09b9beded92f_G8S3, SystemTracker:gtm, 
> Timestamp:2024-03-05T01:40:45 [condition = amqp:transaction:unknown-id]
> at 
> org.apache.qpid.jms.provider.exceptions.ProviderTransactionInDoubtException.toJMSException(ProviderTransactionInDoubtException.java:39)
> at 
> org.apache.qpid.jms.provider.exceptions.ProviderTransactionInDoubtException.toJMSException(ProviderTransactionInDoubtException.java:25)
>  
> Kindly help in fixing this error in priority



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



[jira] [Created] (QPIDJMS-599) JmsTransactionInDoubtException: error

2024-04-15 Thread Rajesh Kumar (Jira)
Rajesh Kumar created QPIDJMS-599:


 Summary: JmsTransactionInDoubtException: error
 Key: QPIDJMS-599
 URL: https://issues.apache.org/jira/browse/QPIDJMS-599
 Project: Qpid JMS
  Issue Type: Bug
Affects Versions: 1.6.0
Reporter: Rajesh Kumar
 Attachments: JMS_Exception_Details.txt

Hi Team,

we are receiving the following error intermittently
 
Exception Details related JmsTransactionInDoubtException:
 
Call Stack: org.apache.qpid.jms.JmsTransactionInDoubtException: Transaction is 
not declared Reference:9a13135d-348c-4a78-b53c-097a11ac103f, 
TrackingId:8ee88669-b631-4261-93eb-09b9beded92f_G8S3, SystemTracker:gtm, 
Timestamp:2024-03-05T01:40:45 [condition = amqp:transaction:unknown-id]
at 
org.apache.qpid.jms.provider.exceptions.ProviderTransactionInDoubtException.toJMSException(ProviderTransactionInDoubtException.java:39)
at 
org.apache.qpid.jms.provider.exceptions.ProviderTransactionInDoubtException.toJMSException(ProviderTransactionInDoubtException.java:25)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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