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
includesfilea
appversionb
includesfileb
result in target _vm "sf/_app" data directory:
- first deployment
appversiona
: gotappxx/myservice/code/filea
: ok - then when deploy
appversionb
replaceappversiona
:- i got
appyy/myservice/code/filea
- and
appyy/myservice/code/fileb
- failed: expected have fileb !
- i got
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
Post a Comment