Conversation
kfaraz
left a comment
There was a problem hiding this comment.
Thanks for the changes, @GabrielCWT !
I have often found myself needing this.
Overall approach makes sense to me.
Please add an embedded test for this feature (see IngestionSmokeTest for an example).
|
Hi @kfaraz, when implementing the embedded test, I encountered a strange bug which I could not pinpoint the issue. I'm hoping you have more insight on this issue. When sending the It seems like the coordinator is hitting the broker's endpoint even though I am using When I added a router server, the coordinator would return the router's properties instead. Note: Currently I have omitted verifying the coordinator's properties in the embedded test for the reason above. |
|
Thanks for the update, @GabrielCWT . I will take a look at the test. |
There was a problem hiding this comment.
Left some more comments.
@GabrielCWT , to fix the test, please
change this line
to be the following instead:
final FilterHolder guiceFilterHolder = JettyServerInitUtils.getGuiceFilterHolder(injector);
root.addFilter(guiceFilterHolder, "/status/*", null);I must have missed this one while fixing up the rest for the embedded test framework.
FrankChen021
left a comment
There was a problem hiding this comment.
LGTM with a minor suggestion
| * that server would have multiple values in the column {@code node_roles} rather than duplicating all the | ||
| * rows. | ||
| */ | ||
| public class SystemPropertiesTable extends AbstractTable implements ScannableTable |
There was a problem hiding this comment.
Could we call this ServerPropertiesTable to be clearer? (similar to ServerSegmentsTable for server_segments table)
There was a problem hiding this comment.
Will rename it to SystemServerPropertiesTable instead to maintain the idea that it is a system table
|
This is cool! The hidden or secret properties on each server wouldn’t be listed in this systems table as it goes through the |
kfaraz
left a comment
There was a problem hiding this comment.
Left some minor suggestions. Changes look good.
kfaraz
left a comment
There was a problem hiding this comment.
We should also add the test suggested by @abhishekrb19 , but that is not a blocker for this PR and can be done in a follow up.
Thanks for the changes, @GabrielCWT !
@kfaraz I've added a minimal test to check if hidden properties are exposed. Also do we still need tests in |
Thanks, @GabrielCWT !
Yes, since you have already added those UTs, let's keep them. |
|
@FrankChen021 , @GabrielCWT , are any further changes pending in this PR? |
|
No other changes @kfaraz |
This PR adds a new properties table which will call the
/status/propertiesendpoint of each of the nodes.The feature allows for an aggregated view of the properties of all services.