[ https://issues.apache.org/jira/browse/AIRFLOW-5460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16927907#comment-16927907 ]
Jarek Potiuk commented on AIRFLOW-5460: --------------------------------------- However I think it's the second time I see someone hbeing surprised so maybe we can make sure we somehow surface it during our GSoD changes @ashb ? Maybe Khartijk can emphasise that somehow :) > Why does airlfow allow multiple connections with the same connection id? > ------------------------------------------------------------------------ > > Key: AIRFLOW-5460 > URL: https://issues.apache.org/jira/browse/AIRFLOW-5460 > Project: Apache Airflow > Issue Type: Bug > Components: core > Affects Versions: 1.10.5 > Reporter: Nikolas Vanderhoof > Priority: Major > > I tagged the issue as a Bug, but it's probably a feature that I just don't > understand the reasoning behind. > I was working on creating a custom hook in airflow. I would expect that > get_connection from BaseHook would return deterministically. To my surprise, > it returns a randomly chosen connection from all connections with the given > connection id. > My gut reaction to this: it seems like a bad design choice to allow users to > specify multiple connections with the same id. If there is a compelling > reason for allowing this, I would like to understand it, and at least > broadcast that connections can share ids in the documentation so other users > are not as surprised by the feature. > Not sure who to tag on this, please forgive any mis-tagging here. :) > [~maxime.beauche...@apache.org] [~kaxilnaik] [~higrys] [~ash] [~Fokko] -- This message was sent by Atlassian Jira (v8.3.2#803003)