You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Luc Pezet (JIRA)" <ji...@apache.org> on 2012/07/01 22:13:49 UTC

[jira] [Created] (CAMEL-5414) SqsEndpoint can't retrieve existing queue url with visibility timeout different than default

Luc Pezet created CAMEL-5414:
--------------------------------

             Summary: SqsEndpoint can't retrieve existing queue url with visibility timeout different than default
                 Key: CAMEL-5414
                 URL: https://issues.apache.org/jira/browse/CAMEL-5414
             Project: Camel
          Issue Type: Bug
          Components: camel-aws
    Affects Versions: 2.9.2
            Reporter: Luc Pezet


This would happen in 2 scenarios:
1. Queue already exists with vsibility timeout different than 30 seconds (say use AWS Console to create a queue and set a different visibility timeout). Using this queue as an endpoint and problem will occur
2. Queue DOES NOT already exist and is created by SqsEndpoint (createQueue). If "defaultVisibilityTimeout" configured, it will still work...the first time. But restarting the endpoint (or the whole camel app) and the problem will occur.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (CAMEL-5414) SqsEndpoint can't retrieve existing queue url with visibility timeout different than default

Posted by "Christian Müller (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Müller closed CAMEL-5414.
-----------------------------------

    Resolution: Fixed

I updated the behavior as discussed.
                
> SqsEndpoint can't retrieve existing queue url with visibility timeout different than default
> --------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5414
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5414
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-aws
>    Affects Versions: 2.9.2
>            Reporter: Luc Pezet
>            Assignee: Christian Müller
>             Fix For: 2.9.4, 2.11.0, 2.10.2
>
>         Attachments: SqsEndpointTest.java
>
>
> This would happen in 2 scenarios:
> 1. Queue already exists with vsibility timeout different than 30 seconds (say use AWS Console to create a queue and set a different visibility timeout). Using this queue as an endpoint and problem will occur
> 2. Queue DOES NOT already exist and is created by SqsEndpoint (createQueue). If "defaultVisibilityTimeout" configured, it will still work...the first time. But restarting the endpoint (or the whole camel app) and the problem will occur.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Work started] (CAMEL-5414) SqsEndpoint can't retrieve existing queue url with visibility timeout different than default

Posted by "Christian Müller (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on CAMEL-5414 started by Christian Müller.

> SqsEndpoint can't retrieve existing queue url with visibility timeout different than default
> --------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5414
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5414
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-aws
>    Affects Versions: 2.9.2
>            Reporter: Luc Pezet
>            Assignee: Christian Müller
>             Fix For: 2.9.3, 2.10.1, 2.11.0
>
>         Attachments: SqsEndpointTest.java
>
>
> This would happen in 2 scenarios:
> 1. Queue already exists with vsibility timeout different than 30 seconds (say use AWS Console to create a queue and set a different visibility timeout). Using this queue as an endpoint and problem will occur
> 2. Queue DOES NOT already exist and is created by SqsEndpoint (createQueue). If "defaultVisibilityTimeout" configured, it will still work...the first time. But restarting the endpoint (or the whole camel app) and the problem will occur.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Comment Edited] (CAMEL-5414) SqsEndpoint can't retrieve existing queue url with visibility timeout different than default

Posted by "Luc Pezet (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-5414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13404798#comment-13404798 ] 

Luc Pezet edited comment on CAMEL-5414 at 7/1/12 8:16 PM:
----------------------------------------------------------

This is the test which I think follows Amazon behavior and shows that getting the queue url with the current SqsEndpoint implementation is broken.
I'd be more than happy to provide the patch if someone could just check the test and give me the go :)
Maybe I missed something and it's not broken...
                
      was (Author: lpezet):
    This is the test which I think follows Amazon behavior and shows that getting the queue url with the current SqsEndpoint implementation is broken.
                  
> SqsEndpoint can't retrieve existing queue url with visibility timeout different than default
> --------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5414
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5414
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-aws
>    Affects Versions: 2.9.2
>            Reporter: Luc Pezet
>         Attachments: SqsEndpointTest.java
>
>
> This would happen in 2 scenarios:
> 1. Queue already exists with vsibility timeout different than 30 seconds (say use AWS Console to create a queue and set a different visibility timeout). Using this queue as an endpoint and problem will occur
> 2. Queue DOES NOT already exist and is created by SqsEndpoint (createQueue). If "defaultVisibilityTimeout" configured, it will still work...the first time. But restarting the endpoint (or the whole camel app) and the problem will occur.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-5414) SqsEndpoint can't retrieve existing queue url with visibility timeout different than default

Posted by "Luc Pezet (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luc Pezet updated CAMEL-5414:
-----------------------------

    Attachment: SqsEndpointTest.java

This is the test which I think follows Amazon behavior and shows that getting the queue url with the current SqsEndpoint implementation is broken.
                
> SqsEndpoint can't retrieve existing queue url with visibility timeout different than default
> --------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5414
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5414
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-aws
>    Affects Versions: 2.9.2
>            Reporter: Luc Pezet
>         Attachments: SqsEndpointTest.java
>
>
> This would happen in 2 scenarios:
> 1. Queue already exists with vsibility timeout different than 30 seconds (say use AWS Console to create a queue and set a different visibility timeout). Using this queue as an endpoint and problem will occur
> 2. Queue DOES NOT already exist and is created by SqsEndpoint (createQueue). If "defaultVisibilityTimeout" configured, it will still work...the first time. But restarting the endpoint (or the whole camel app) and the problem will occur.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-5414) SqsEndpoint can't retrieve existing queue url with visibility timeout different than default

Posted by "Christian Müller (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-5414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13449062#comment-13449062 ] 

Christian Müller commented on CAMEL-5414:
-----------------------------------------

I committed a patch which fixed this behavior. The SQS endpoint will now list the existing queues and use the url of the existing queue *AND ITS ATTRIBUTES!* If the queues doesn't exist, we will create a new one with the provided attributes.
Is this also your expected behavior? Or should we also call 'setQueueAttributes' and update all of them if the queue already exists?
                
> SqsEndpoint can't retrieve existing queue url with visibility timeout different than default
> --------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5414
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5414
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-aws
>    Affects Versions: 2.9.2
>            Reporter: Luc Pezet
>            Assignee: Christian Müller
>         Attachments: SqsEndpointTest.java
>
>
> This would happen in 2 scenarios:
> 1. Queue already exists with vsibility timeout different than 30 seconds (say use AWS Console to create a queue and set a different visibility timeout). Using this queue as an endpoint and problem will occur
> 2. Queue DOES NOT already exist and is created by SqsEndpoint (createQueue). If "defaultVisibilityTimeout" configured, it will still work...the first time. But restarting the endpoint (or the whole camel app) and the problem will occur.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CAMEL-5414) SqsEndpoint can't retrieve existing queue url with visibility timeout different than default

Posted by "Christian Müller (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-5414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13443585#comment-13443585 ] 

Christian Müller commented on CAMEL-5414:
-----------------------------------------

I can confirm, this is an issue. Thanks for reporting!
Would you like to work on a patch? I think I could provide a fix by tomorrow...
                
> SqsEndpoint can't retrieve existing queue url with visibility timeout different than default
> --------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5414
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5414
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-aws
>    Affects Versions: 2.9.2
>            Reporter: Luc Pezet
>            Assignee: Christian Müller
>         Attachments: SqsEndpointTest.java
>
>
> This would happen in 2 scenarios:
> 1. Queue already exists with vsibility timeout different than 30 seconds (say use AWS Console to create a queue and set a different visibility timeout). Using this queue as an endpoint and problem will occur
> 2. Queue DOES NOT already exist and is created by SqsEndpoint (createQueue). If "defaultVisibilityTimeout" configured, it will still work...the first time. But restarting the endpoint (or the whole camel app) and the problem will occur.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Assigned] (CAMEL-5414) SqsEndpoint can't retrieve existing queue url with visibility timeout different than default

Posted by "Christian Müller (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Müller reassigned CAMEL-5414:
---------------------------------------

    Assignee: Christian Müller
    
> SqsEndpoint can't retrieve existing queue url with visibility timeout different than default
> --------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5414
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5414
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-aws
>    Affects Versions: 2.9.2
>            Reporter: Luc Pezet
>            Assignee: Christian Müller
>         Attachments: SqsEndpointTest.java
>
>
> This would happen in 2 scenarios:
> 1. Queue already exists with vsibility timeout different than 30 seconds (say use AWS Console to create a queue and set a different visibility timeout). Using this queue as an endpoint and problem will occur
> 2. Queue DOES NOT already exist and is created by SqsEndpoint (createQueue). If "defaultVisibilityTimeout" configured, it will still work...the first time. But restarting the endpoint (or the whole camel app) and the problem will occur.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (CAMEL-5414) SqsEndpoint can't retrieve existing queue url with visibility timeout different than default

Posted by "Christian Müller (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Müller updated CAMEL-5414:
------------------------------------

    Fix Version/s: 2.11.0
    
> SqsEndpoint can't retrieve existing queue url with visibility timeout different than default
> --------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5414
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5414
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-aws
>    Affects Versions: 2.9.2
>            Reporter: Luc Pezet
>            Assignee: Christian Müller
>             Fix For: 2.9.3, 2.10.1, 2.11.0
>
>         Attachments: SqsEndpointTest.java
>
>
> This would happen in 2 scenarios:
> 1. Queue already exists with vsibility timeout different than 30 seconds (say use AWS Console to create a queue and set a different visibility timeout). Using this queue as an endpoint and problem will occur
> 2. Queue DOES NOT already exist and is created by SqsEndpoint (createQueue). If "defaultVisibilityTimeout" configured, it will still work...the first time. But restarting the endpoint (or the whole camel app) and the problem will occur.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (CAMEL-5414) SqsEndpoint can't retrieve existing queue url with visibility timeout different than default

Posted by "Luc Pezet (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-5414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13449429#comment-13449429 ] 

Luc Pezet commented on CAMEL-5414:
----------------------------------

Thanks a lot Christian. 
I would expect the endpoint to be setup as specified in the URI options, so I'd vote for setting the queue attributes when the queue already exists. 
What do you think?
                
> SqsEndpoint can't retrieve existing queue url with visibility timeout different than default
> --------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5414
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5414
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-aws
>    Affects Versions: 2.9.2
>            Reporter: Luc Pezet
>            Assignee: Christian Müller
>             Fix For: 2.9.4, 2.11.0, 2.10.2
>
>         Attachments: SqsEndpointTest.java
>
>
> This would happen in 2 scenarios:
> 1. Queue already exists with vsibility timeout different than 30 seconds (say use AWS Console to create a queue and set a different visibility timeout). Using this queue as an endpoint and problem will occur
> 2. Queue DOES NOT already exist and is created by SqsEndpoint (createQueue). If "defaultVisibilityTimeout" configured, it will still work...the first time. But restarting the endpoint (or the whole camel app) and the problem will occur.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CAMEL-5414) SqsEndpoint can't retrieve existing queue url with visibility timeout different than default

Posted by "Christian Müller (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-5414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13450087#comment-13450087 ] 

Christian Müller commented on CAMEL-5414:
-----------------------------------------

Yes, makes sense for me too. I will work on it in the next days.
                
> SqsEndpoint can't retrieve existing queue url with visibility timeout different than default
> --------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5414
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5414
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-aws
>    Affects Versions: 2.9.2
>            Reporter: Luc Pezet
>            Assignee: Christian Müller
>             Fix For: 2.9.4, 2.11.0, 2.10.2
>
>         Attachments: SqsEndpointTest.java
>
>
> This would happen in 2 scenarios:
> 1. Queue already exists with vsibility timeout different than 30 seconds (say use AWS Console to create a queue and set a different visibility timeout). Using this queue as an endpoint and problem will occur
> 2. Queue DOES NOT already exist and is created by SqsEndpoint (createQueue). If "defaultVisibilityTimeout" configured, it will still work...the first time. But restarting the endpoint (or the whole camel app) and the problem will occur.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CAMEL-5414) SqsEndpoint can't retrieve existing queue url with visibility timeout different than default

Posted by "Christian Müller (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Müller updated CAMEL-5414:
------------------------------------

    Fix Version/s: 2.10.2
                   2.11.0
                   2.9.4
    
> SqsEndpoint can't retrieve existing queue url with visibility timeout different than default
> --------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5414
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5414
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-aws
>    Affects Versions: 2.9.2
>            Reporter: Luc Pezet
>            Assignee: Christian Müller
>             Fix For: 2.9.4, 2.11.0, 2.10.2
>
>         Attachments: SqsEndpointTest.java
>
>
> This would happen in 2 scenarios:
> 1. Queue already exists with vsibility timeout different than 30 seconds (say use AWS Console to create a queue and set a different visibility timeout). Using this queue as an endpoint and problem will occur
> 2. Queue DOES NOT already exist and is created by SqsEndpoint (createQueue). If "defaultVisibilityTimeout" configured, it will still work...the first time. But restarting the endpoint (or the whole camel app) and the problem will occur.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CAMEL-5414) SqsEndpoint can't retrieve existing queue url with visibility timeout different than default

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-5414:
-------------------------------

    Fix Version/s: 2.10.1
                   2.9.3
    
> SqsEndpoint can't retrieve existing queue url with visibility timeout different than default
> --------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5414
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5414
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-aws
>    Affects Versions: 2.9.2
>            Reporter: Luc Pezet
>            Assignee: Christian Müller
>             Fix For: 2.9.3, 2.10.1
>
>         Attachments: SqsEndpointTest.java
>
>
> This would happen in 2 scenarios:
> 1. Queue already exists with vsibility timeout different than 30 seconds (say use AWS Console to create a queue and set a different visibility timeout). Using this queue as an endpoint and problem will occur
> 2. Queue DOES NOT already exist and is created by SqsEndpoint (createQueue). If "defaultVisibilityTimeout" configured, it will still work...the first time. But restarting the endpoint (or the whole camel app) and the problem will occur.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira