Skip to content

MetadataResource: Fix handling of includeDisabled.#3042

Merged
fjy merged 1 commit intoapache:masterfrom
gianm:fix-get-all-datasources
Jun 1, 2016
Merged

MetadataResource: Fix handling of includeDisabled.#3042
fjy merged 1 commit intoapache:masterfrom
gianm:fix-get-all-datasources

Conversation

@gianm
Copy link
Copy Markdown
Contributor

@gianm gianm commented Jun 1, 2016

Regression from #2424, /druid/coordinator/v1/metadata/datasources?includeDisabled no longer works for non-authenticated requests. The coordinator console needs this to list datasources that are eligible for re-enabling.

@gianm gianm added the Bug label Jun 1, 2016
@gianm gianm added this to the 0.9.1 milestone Jun 1, 2016
@fjy
Copy link
Copy Markdown
Contributor

fjy commented Jun 1, 2016

👍

@gianm gianm added Backport and removed Backport labels Jun 1, 2016
@fjy
Copy link
Copy Markdown
Contributor

fjy commented Jun 1, 2016

@gianm please remember to backport

@fjy fjy merged commit 874a0a4 into apache:master Jun 1, 2016
@drcrallen
Copy link
Copy Markdown
Contributor

is there a test for this?

Collections2.transform(
druidDataSources,
new Function<DruidDataSource, String>()
// Cannot do both includeDisabled and full, let includeDisabled take priority
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this restriction ?

Copy link
Copy Markdown
Member

@pjain1 pjain1 Jun 1, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#3049 fixes it without any such restrictions. Although I am ok with this also if others do not have any problems with it.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see it will just return if includedDisabled is set..so never mind ignore the comment

@drcrallen
Copy link
Copy Markdown
Contributor

@fjy why was this merged without having 2 👍 's?

@ChunXiaoLin
Copy link
Copy Markdown

@gianm we change 0.9.0 to 0.9.1.1 and request the url "/druid/coordinator/v1/metadata/datasources" , return a empty list. thanks.

@gianm
Copy link
Copy Markdown
Contributor Author

gianm commented Jul 1, 2016

@ChunXiaoLin this works for me on 0.9.1.1, are you expecting something other than an empty list?

@ChunXiaoLin
Copy link
Copy Markdown

@gianm Sorry, i am not change mysql-metadata-storage version to 0.9.1.1, i have already been solved, thanks.

@gianm
Copy link
Copy Markdown
Contributor Author

gianm commented Jul 1, 2016

@ChunXiaoLin cool, good to hear.

@gianm gianm deleted the fix-get-all-datasources branch July 1, 2016 06:54
@gianm gianm modified the milestones: 0.9.2, 0.9.1 Sep 23, 2016
seoeun25 pushed a commit to seoeun25/incubator-druid that referenced this pull request Feb 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants