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