Skip to content

Commit 91a2eaf

Browse files
author
jvangaalen
committed
Store raw body in responseData and only decompress when responseBody is accessed
1 parent 3fbe450 commit 91a2eaf

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

src/core/src/main/java/org/apache/jmeter/threads/TestCompiler.java

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -115,21 +115,10 @@ public SamplePackage configureTransactionSampler(TransactionSampler transactionS
115115
}
116116

117117
/**
118-
* Reset pack to its initial state and clean up transaction results if needed
118+
* Reset pack to its initial state
119119
* @param pack the {@link SamplePackage} to reset
120120
*/
121121
public void done(SamplePackage pack) {
122-
Sampler sampler = pack.getSampler();
123-
if (sampler instanceof TransactionSampler) {
124-
TransactionSampler transactionSampler = (TransactionSampler) sampler;
125-
TransactionController controller = transactionSampler.getTransactionController();
126-
if (transactionSampler.isTransactionDone()) {
127-
// Create new sampler for next iteration
128-
TransactionSampler newSampler = new TransactionSampler(controller, transactionSampler.getName());
129-
SamplePackage newPack = transactionControllerConfigMap.get(controller);
130-
newPack.setSampler(newSampler);
131-
}
132-
}
133122
pack.recoverRunningVersion();
134123
}
135124

src/dist-check/src/test/java/org/apache/jmeter/junit/JMeterTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -581,8 +581,7 @@ static Stream<Serializable> serializableObjects() throws Throwable {
581581
return getObjects(Serializable.class)
582582
.stream()
583583
.map(Serializable.class::cast)
584-
.filter(o -> !o.getClass().getName().endsWith("_Stub"))
585-
.filter(o -> o.getClass().getName().startsWith("org.apache.jmeter."));
584+
.filter(o -> !o.getClass().getName().endsWith("_Stub"));
586585
}
587586

588587
/*

0 commit comments

Comments
 (0)