-
-
Notifications
You must be signed in to change notification settings - Fork 940
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prevent SQS from defaulting to localhost hostname #733
Conversation
Pinging the author of the first commit, @georgepsarakis. |
Also, do you think this is actually breaking backwards compatibility? |
@georgepsarakis Looking into this bug, I've realized that the true issue is that when the While this could technically break backwards functionality, I don't think this should be an issue as:
|
I was mostly asking if you think that this will cause an issue for anyone that uses SQS and upgrading to the upcoming release of 4.0.3. If yes, then perhaps we should include this fix as well. |
@georgepsarakis Ah, I do think that this is an issue introduced by the commit referenced in the PR's description which would break anyone's system that doesn't explicitly define the SQS endpoint (which, I'd be surprised if anyone actually does specify the endpoint rather than simply specifying the Admittedly, I'm really only looking at this from the perspective of code from #693, I would recommend against deploying any release that includes #693 and #715 without this PR. |
By the way, @alukach if you happen to have any comments for this Pull Request, they will be more than welcome 😃 ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a release note is also needed
@auvipy is that something I could help out with or are those done in-house? Would it be a new entry in the CHANGELOG? |
yes |
from now on we shouldn't merged any pr without release note [if there is any] |
@auvipy The last entry in the
I'm assuming you're suggesting adding an entry for |
Commit
cdbfe9a64e1884dc99fc9806a834f23cf8398a3b
added tooling to retrieve thehostname
from the SQS Transport. If no hostname is provided (for example, if you only configure an app withbroker_transport = 'sqs'
), the hostname is set to a default value from the Transport baseclass'default_connection_params
property. This is problematic, as the default is'localhost'
, which is likely not correct for an SQS queue and results in failed message retrieval. Interestingly, a Celery worker is still able to successfully start, retrieve the list of queues, and retrieve messages being that Celery provides the Transport a defaulturl
value ofNone
.This PR omits
hostname
from the SQS Transport'sdefault_connection_params
property, thereby letting Boto3 use its default logic if nohostname
is manually provided to the SQS Transport.