apache / apache/jmeter

AccessLogSampler returns error result when EOF is reached

Open
#4,347 0 comments 0 reactions 0 assignees View on GitHub
os: All P2
Dominant language
Java
Stars
9.5k
Forks
2.3k
Avg merge
1d 22h
Merged PRs (30d)
5

Description

**Oleg Gorobets** ([Bug 60922](https://bz.apache.org/bugzilla//show_bug.cgi?id=60922&redirect=false)):
AccessLogSampler returns "error result" when EOF is reached. See AccessLogSampler on line 169:

return errorResult(new Error("No entries found"), new HTTPSampleResult());

This behavior results in that this result is then passed to listeners and the following weird line is generated in the summary report:

1970-01-01 02:00:00.000,0,,Non HTTP response code: java.lang.Error,Non HTTP response message: No entries found,Thread Group 1-1,text,false,,520,0,1,1,0,0,0

This case is not an error. There should be null instead of "error result" or other type of result indicating there is no more data for this file.

Severity: normal
OS: All

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.