Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-2201

Serious issue with assets and checksums - different for same file



    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 5.4
    • None
    • tapestry-core


      Hi everybody.

      Today we've launched a website based on 5.4. We're very exited about the upcoming release(5.4) and I'll post separately about our experiences (mostly great).

      Post release we've identified a potential serious issue related to assets and their checksums.

      What we see is that a handful of the assets generate different hashes for the same file.

      =Example: bootstrap.css=
      Server 1:

      Server 2:

      Server 3:

      Server 3 - restart:

      We also see the same behaviour for the non gzip version of bootstrap.css.

      It is not only for /meta/

      As you can see - we're load balanced with app served from several nodes.
      Normally I'd serve these through CloudFront on a cookieless domain (with tapestry as origin), but it's not possible as load balanced assets could hit 'wrong' server and get the 404 instead.
      So for now they are served through website domain with sticky sessions - and pray that it don't cause us problems...

      All are served with same web container:
      Apache Tomcat/7.0.39
      JDK 1.7.0_11


        1. server3.png
          2 kB
          Magnus Kvalheim
        2. server2.png
          2 kB
          Magnus Kvalheim
        3. bootstrap.server3.css
          95 kB
          Magnus Kvalheim
        4. bootstrap.server2.css
          95 kB
          Magnus Kvalheim



            hlship Howard Lewis Ship
            magnus@kvalheim.dk Magnus Kvalheim
            1 Vote for this issue
            4 Start watching this issue