Service fabric deploy deprecated files from previous deployment -


when redeploying application on service fabric (using publish-upgradedservicefabricapplication), why see files previous deployment ? file of application seems not deleted or cached somewhere.

for example

  • appversiona includes filea
  • appversionb includes fileb

result in target _vm "sf/_app" data directory:

  • first deployment appversiona: got appxx/myservice/code/filea : ok
  • then when deploy appversionb replace appversiona:
    • i got appyy/myservice/code/filea
    • and appyy/myservice/code/fileb
    • failed: expected have fileb !

inside applicationmanifest.xml of application had "1.8-snapshot" applicationtypeversion attribute value.

so encounter issue when updating , redeploying snapshot version multiples times.

seems in usecase - applicationtypeversion unchanged - sf overrides or append deployment bundle content of previous deployment instead of recreating new 1 scratch (for me it's issue).

to fix it, add build timestamp applicationtypeversion value (ex. 1.8-snapshot-20160128_1113) . case, there no more servicefabric cache effect. version , deployment content updated each deployment.


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -