Skip to content

Commit a16004e

Browse files
committed
Merge remote-tracking branch 'origin/candidate-9.6.x'
Signed-off-by: Jake Smith <[email protected]> # Conflicts: # commons-hpcc/pom.xml # dfsclient/pom.xml # pom.xml # wsclient/pom.xml
2 parents 887f3b4 + db58e00 commit a16004e

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

dfsclient/src/test/java/org/hpccsystems/dfs/client/DFSReadWriteTest.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,10 @@
6565
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
6666
public class DFSReadWriteTest extends BaseRemoteTest
6767
{
68-
private static final String[] datasets = { "~benchmark::integer::20kb", "~unit_test::all_types::thor", "~unit_test::all_types::xml", "~unit_test::all_types::json", "~unit_test::all_types::csv" };
69-
private static final int[] expectedCounts = { 1250, 5600, 10000, 10000, 10000, 10000};
68+
// private static final String[] datasets = { "~benchmark::integer::20kb", "~unit_test::all_types::thor", "~unit_test::all_types::xml", "~unit_test::all_types::json", "~unit_test::all_types::csv" };
69+
private static final String[] datasets = { "~unit_test::all_types::xml", "~unit_test::all_types::json", "~unit_test::all_types::csv" };
70+
private static final int[] expectedCounts = { 1250, 100000, 100000, 100000, 100000, 100000};
7071

71-
//use until standard test is working
72-
// private static final String[] datasets = { "~benchmark::integer::20kb", "~benchmark::all_types::200kb"};//, "~unit_test::all_types::xml", "~unit_test::all_types::json", "~unit_test::all_types::csv" };
73-
// private static final int[] expectedCounts = { 1250, 5600 };//, 10000, 10000, 10000, 10000};
7472
private static final Version newProtocolVersion = new Version(8,12,10);
7573

7674

dfsclient/src/test/resources/generate-datasets.ecl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ IMPORT Std;
22

33
unique_keys := 100000; // Should be less than number of records
44
unique_values := 10212; // Should be less than number of records
5-
totalrecs1 := 10000;
5+
totalrecs1 := 100000;
66

77
childRec := {STRING8 childField1, INTEGER8 childField2, REAL8 childField3};
88

wsclient/src/main/java/org/hpccsystems/ws/client/BaseHPCCWsClient.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ protected Integer getStubConnectionTO() throws AxisFault
561561
final static UsernamePasswordCredentials emptyCreds = new UsernamePasswordCredentials("", null);
562562

563563
/**
564-
* Sets the stub options defaults preemptiveauth to 'true;
564+
* Sets the stub options defaults preemptiveauth to 'true';
565565
*
566566
* @param thestub
567567
* The Axis generated service stub
@@ -573,7 +573,12 @@ protected Integer getStubConnectionTO() throws AxisFault
573573
*/
574574
static public Stub setStubOptions(Stub thestub, Connection connection) throws AxisFault
575575
{
576+
//Add "rawxml_" query param to request ESP to suppress any default redirects
576577
Options opt = thestub._getServiceClient().getOptions();
578+
EndpointReference toRef = opt.getTo();
579+
String toAddress = toRef.getAddress() + (toRef.getAddress().contains("?") ? "&" : "?") + "rawxml_";
580+
toRef.setAddress(toAddress);
581+
opt.setTo(toRef);
577582

578583
opt.setProperty(HTTPConstants.SO_TIMEOUT, connection.getSocketTimeoutMilli());
579584
opt.setProperty(HTTPConstants.CONNECTION_TIMEOUT, connection.getConnectTimeoutMilli());

0 commit comments

Comments
 (0)