You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2017/07/21 08:49:39 UTC

[Bug 61321] New: v3.2 - HTTP Cache Manager - with cache enabled & Retrieving embedded resources - in alternate iteration its fetching resources from server than cache

https://bz.apache.org/bugzilla/show_bug.cgi?id=61321

            Bug ID: 61321
           Summary: v3.2 - HTTP Cache Manager - with cache enabled &
                    Retrieving embedded resources - in alternate iteration
                    its fetching resources from server than cache
           Product: JMeter
           Version: 3.2
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTTP
          Assignee: issues@jmeter.apache.org
          Reporter: aniketaghodke@gmail.com
  Target Milestone: ---

Observed with version 3.2 , 
when loading HTTP request for a page or home page of application for 5
iterations with cache enabled and embedded resources enabled

for 1st iteration all resources are requested to server (obviously) ,
second iteration refers few resources from cache returns 304- Not Modified
3rd iteration requests all resources from server - NOT Referring cache
4th iteration works like 2nd iteration - refers few resources from cache
returns 304- Not Modified
5th iteration works like 3rd  requests all resources from server - NOT
Referring cache

Tested for 5 iterations and for couple of application homepages. not sure if
its known issue - at least didn't find it reported.
Apologies if duplicate and already being looked in to. Thanks !

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 61321] v3.2 - HTTP Cache Manager - with cache enabled & Retrieving embedded resources - in alternate iteration its fetching resources from server than cache

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61321

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Hardware|PC                          |All

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 61321] HTTP Cache Manager : with cache enabled & Retrieving embedded resources, JMeter fetches resource from server rather than cache at each alternate iteration

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61321

--- Comment #5 from Aniket G <an...@gmail.com> ---
Created attachment 35165
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=35165&action=edit
Results 3.2

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 61321] HTTP Cache Manager : with cache enabled & Retrieving embedded resources, JMeter fetches resource from server rather than cache at each alternate iteration

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61321

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #21 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Author: pmouawad
Date: Thu Aug  3 21:11:20 2017
New Revision: 1804046

URL: http://svn.apache.org/viewvc?rev=1804046&view=rev
Log:
Bug 61321 - HTTP Cache Manager : with cache enabled & Retrieving embedded
resources, JMeter fetches resource from server rather than cache at each
alternate iteration
Add test case
Bugzilla Id: 61321

Modified:
   
jmeter/trunk/test/src/org/apache/jmeter/protocol/http/control/TestCacheManagerBase.java
   
jmeter/trunk/test/src/org/apache/jmeter/protocol/http/control/TestCacheManagerHC4.java

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 61321] HTTP Cache Manager : with cache enabled & Retrieving embedded resources, JMeter fetches resource from server rather than cache at each alternate iteration

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61321

--- Comment #17 from Felix Schumacher <fe...@internetallee.de> ---
(In reply to Philippe Mouawad from comment #16)
> I (In reply to Felix Schumacher from comment #15)
> > I believe the cache gets cleared in HTTPSamplerBase:2013 when the sampler
> > gets cloned. This happens when a new AsyncSample is created.
> 
> I came accross this also but I don't understand why next sample is ok, while
> the following is not.

Looking closer, I see, that a cache is cleared, but that is a new one, which is
replaced immediately by the original one.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 61321] HTTP Cache Manager : with cache enabled & Retrieving embedded resources, JMeter fetches resource from server rather than cache at each alternate iteration

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61321

--- Comment #14 from Aniket G <an...@gmail.com> ---
(In reply to Philippe Mouawad from comment #13)
> Hello,
> I confirm bug.
> Marking it as blocker for 3.3 release.
> 
> Regards

Thanks Philippe !

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 61321] HTTP Cache Manager : with cache enabled & Retrieving embedded resources, JMeter fetches resource from server rather than cache at each alternate iteration

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61321

--- Comment #9 from Aniket G <an...@gmail.com> ---
(In reply to Philippe Mouawad from comment #1)
> Are you sure there is no time validity on your resources ?
> Can you provide:
> - JMX Test plan
> - Full View Results Output in XML with all fields for the run of your
> failing test? 
> 
> Thank you

YOu can refer files with 3.2version attached below, isit valid bug or any
mistake from my end ? please advice thanks

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 61321] HTTP Cache Manager : with cache enabled & Retrieving embedded resources, JMeter fetches resource from server rather than cache at each alternate iteration

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61321

--- Comment #12 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Created attachment 35177
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=35177&action=edit
Cache Test 3.2

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 61321] HTTP Cache Manager : with cache enabled & Retrieving embedded resources, JMeter fetches resource from server rather than cache at each alternate iteration

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61321

Aniket G <an...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

--- Comment #8 from Aniket G <an...@gmail.com> ---
Here are requested details scripts and results file

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 61321] HTTP Cache Manager : with cache enabled & Retrieving embedded resources, JMeter fetches resource from server rather than cache at each alternate iteration

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61321

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW
           Severity|normal                      |blocker

--- Comment #13 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Hello,
I confirm bug.
Marking it as blocker for 3.3 release.

Regards

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 61321] HTTP Cache Manager : with cache enabled & Retrieving embedded resources, JMeter fetches resource from server rather than cache at each alternate iteration

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61321

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #10 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Thanks for provided elements , unfortunately as you have checked Generate
Parent Sample, I don't have any useful information.
Can you please uncheck it and provide elements again ?
Ensure that you select XML format and all fields available for XML.

Thanks

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 61321] HTTP Cache Manager : with cache enabled & Retrieving embedded resources, JMeter fetches resource from server rather than cache at each alternate iteration

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61321

--- Comment #15 from Felix Schumacher <fe...@internetallee.de> ---
I believe the cache gets cleared in HTTPSamplerBase:2013 when the sampler gets
cloned. This happens when a new AsyncSample is created.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 61321] HTTP Cache Manager : with cache enabled & Retrieving embedded resources, JMeter fetches resource from server rather than cache at each alternate iteration

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61321

Felix Schumacher <fe...@internetallee.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #19 from Felix Schumacher <fe...@internetallee.de> ---
I think I found the issue. Could you please re-test with the next nightly?

Date: Sat Jul 29 13:41:07 2017
New Revision: 1803362

URL: http://svn.apache.org/viewvc?rev=1803362&view=rev
Log:
Don't store entries in the cache, when they are already present.

Bugzilla Id: 61321

Modified:
   
jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/CacheManager.java

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 61321] HTTP Cache Manager : with cache enabled & Retrieving embedded resources, JMeter fetches resource from server rather than cache at each alternate iteration

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61321

--- Comment #6 from Aniket G <an...@gmail.com> ---
Created attachment 35166
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=35166&action=edit
Results Table 3.2

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 61321] HTTP Cache Manager : with cache enabled & Retrieving embedded resources, JMeter fetches resource from server rather than cache at each alternate iteration

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61321

--- Comment #20 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
I tested, it looks ok to me.
It works with the attached test plan.

Regards

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 61321] HTTP Cache Manager : with cache enabled & Retrieving embedded resources, JMeter fetches resource from server rather than cache at each alternate iteration

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61321

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|v3.2 - HTTP Cache Manager - |HTTP Cache Manager : with
                   |with cache enabled &        |cache enabled & Retrieving
                   |Retrieving embedded         |embedded resources, JMeter
                   |resources - in alternate    |fetches resource from
                   |iteration its fetching      |server rather than cache at
                   |resources from server than  |each alternate iteration
                   |cache                       |

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 61321] HTTP Cache Manager : with cache enabled & Retrieving embedded resources, JMeter fetches resource from server rather than cache at each alternate iteration

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61321

--- Comment #2 from Aniket G <an...@gmail.com> ---
Created attachment 35162
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=35162&action=edit
Test Script 3.0

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 61321] HTTP Cache Manager : with cache enabled & Retrieving embedded resources, JMeter fetches resource from server rather than cache at each alternate iteration

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61321

--- Comment #18 from Felix Schumacher <fe...@internetallee.de> ---
Ok, another try: When we get an entry out of the cache, the headers are missing
the vary-part. Therefore it will update an entry without a vary header, which
will "delete" the entry with the vary-part. Next lookup in cache will find
nothing.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 61321] HTTP Cache Manager : with cache enabled & Retrieving embedded resources, JMeter fetches resource from server rather than cache at each alternate iteration

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61321

--- Comment #3 from Aniket G <an...@gmail.com> ---
Created attachment 35163
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=35163&action=edit
Test script 3.2

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 61321] HTTP Cache Manager : with cache enabled & Retrieving embedded resources, JMeter fetches resource from server rather than cache at each alternate iteration

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61321

--- Comment #4 from Aniket G <an...@gmail.com> ---
Created attachment 35164
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=35164&action=edit
Results 3.0

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 61321] v3.2 - HTTP Cache Manager - with cache enabled & Retrieving embedded resources - in alternate iteration its fetching resources from server than cache

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61321

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |p.mouawad@ubik-ingenierie.c
                   |                            |om
             Status|NEW                         |NEEDINFO
                 OS|                            |All

--- Comment #1 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Are you sure there is no time validity on your resources ?
Can you provide:
- JMX Test plan
- Full View Results Output in XML with all fields for the run of your failing
test? 

Thank you

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 61321] HTTP Cache Manager : with cache enabled & Retrieving embedded resources, JMeter fetches resource from server rather than cache at each alternate iteration

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61321

--- Comment #7 from Aniket G <an...@gmail.com> ---
Created attachment 35167
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=35167&action=edit
Results Table 3.0

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 61321] HTTP Cache Manager : with cache enabled & Retrieving embedded resources, JMeter fetches resource from server rather than cache at each alternate iteration

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61321

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|3.2                         |3.1

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 61321] HTTP Cache Manager : with cache enabled & Retrieving embedded resources, JMeter fetches resource from server rather than cache at each alternate iteration

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61321

--- Comment #16 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
I (In reply to Felix Schumacher from comment #15)
> I believe the cache gets cleared in HTTPSamplerBase:2013 when the sampler
> gets cloned. This happens when a new AsyncSample is created.

I came accross this also but I don't understand why next sample is ok, while
the following is not.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 61321] v3.2 - HTTP Cache Manager - with cache enabled & Retrieving embedded resources - in alternate iteration its fetching resources from server than cache

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61321

Aniket G <an...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |Windows 7
                 CC|                            |aniketaghodke@gmail.com

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 61321] HTTP Cache Manager : with cache enabled & Retrieving embedded resources, JMeter fetches resource from server rather than cache at each alternate iteration

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61321

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #35162|0                           |1
        is obsolete|                            |
  Attachment #35163|0                           |1
        is obsolete|                            |
  Attachment #35164|0                           |1
        is obsolete|                            |
  Attachment #35165|0                           |1
        is obsolete|                            |
  Attachment #35166|0                           |1
        is obsolete|                            |
  Attachment #35167|0                           |1
        is obsolete|                            |

--- Comment #11 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Created attachment 35176
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=35176&action=edit
Test case 3.0

-- 
You are receiving this mail because:
You are the assignee for the bug.