@@ -68,7 +68,6 @@ public void testExplicitPropertyMappings()
68
68
.put ("pinot.max-rows-for-broker-queries" , "5000" )
69
69
.put ("pinot.aggregation-pushdown.enabled" , "false" )
70
70
.put ("pinot.count-distinct-pushdown.enabled" , "false" )
71
- .put ("pinot.proxy.enabled" , "true" )
72
71
.put ("pinot.target-segment-page-size" , "2MB" )
73
72
.buildOrThrow ();
74
73
@@ -85,7 +84,6 @@ public void testExplicitPropertyMappings()
85
84
.setMaxRowsForBrokerQueries (5000 )
86
85
.setAggregationPushdownEnabled (false )
87
86
.setCountDistinctPushdownEnabled (false )
88
- .setProxyEnabled (true )
89
87
.setTargetSegmentPageSize (DataSize .of (2 , MEGABYTE ));
90
88
91
89
ConfigAssertions .assertFullMapping (properties , expected );
@@ -103,6 +101,18 @@ public void testInvalidCountDistinctPushdown()
103
101
AssertTrue .class );
104
102
}
105
103
104
+ @ Test
105
+ public void testInvalidBrokerProxyConfiguration ()
106
+ {
107
+ assertFailsValidation (
108
+ new PinotConfig ()
109
+ .setBrokerUrl (HostAndPort .fromString ("host1:1111" ))
110
+ .setProxyEnabled (true ),
111
+ "validBrokerProxyConfiguration" ,
112
+ "Invalid configuration: pinot.broker-url and pinot.proxy.enabled cannot both be set." ,
113
+ AssertTrue .class );
114
+ }
115
+
106
116
@ Test
107
117
public void testControllerUrls ()
108
118
{
0 commit comments