Subversion Repositories SmartDukaan

Rev

Show changed files | Details | Compare with Previous | Blame | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
37907 11 d 8 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/ fix(offers): stop stale offer rows being re-cached after an offer change

Readers whose transaction began before an offer write committed could cache
the old row (e.g. offer 10851 shown inactive on Offer History for 6h).
- OfferCacheGate: offer caches refuse fills from readers whose transaction
began before the last offer change (atomic Lua check-and-set)
- TxStartTrackingTransactionManager records each transaction's start time
- offer cache evictions run after the transaction completes, marking the change first
- activate/publishAll evict inside their REQUIRES_NEW transaction
- evictAllOfferCaches(YearMonth) for Refresh Cache; offer cache TTL 6h -> 1h
 
36521 172 d 0 h amit /trunk/ Added RequestCachingFilter  
36305 194 d 8 h amit /trunk/profitmandi-dao/src/main/ Batch processing infrastructure + per-partner offer processing + partner limit optimization + investment cache eviction on billing/payment/cancellation with 3hr TTL  
36081 217 d 20 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/ Use JDK serialization for Redis caches with Map<Integer,...> keys

GenericJackson2JsonRedisSerializer converts Map Integer keys to String
during JSON serialization. On deserialization, map.get(Integer) returns
null since keys are now Strings. This broke allOffers, offer.slabpayout,
catalog.published_yearmonth, and offer.achievement caches.

Fix: Use JdkSerializationRedisSerializer for these specific caches to
preserve exact Java types. Added Serializable to 9 model classes in the
offer object graph: CreateOfferRequest, TargetSlab, ItemCriteriaPayout,
ItemCriteria, PartnerCriteria, PayoutSlab, AmountModel, QtyAmountModel,
DateRangeModel.
 
36057 218 d 23 h ranu /trunk/ code commit via websocket instead of selenium for agent status  
36049 220 d 2 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/ Redesign offer caching: separate definition from achievement, per-partner Redis cache, deep-copy before mutation, centralized eviction  
35600 275 d 4 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/ Fix Redis serialization bug and add 15-min cache manager

- Fix SerializationException for publishedOffersWithAchievement cache
- Add @JsonIgnore to computed getters getBillingStartDate/getBillingEndDate
- Add @JsonIgnoreProperties(ignoreUnknown=true) to CreateOfferRequest,
ItemCriteriaPayout, TargetSlab for backward compatibility with cached data

- Add redisVeryShortCacheManager (15 min TTL) for frequently changing data
- brandStockPrices, partnerInvestments, partnerSales, partnerDailyInvestment
now use 15-min cache instead of 60-min
 
35388 319 d 0 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/config/ Fixed cors issue  
35176 382 d 22 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/config/ Added 1Hr Redis Cache  
35171 384 d 0 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/config/ Fixed system.exit(0)  
34828 459 d 3 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/config/ donotcommit  
34715 490 d 22 h ranu /trunk/ bi report some correction  
34610 522 d 3 h vikas.jangra /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/config/ Temporary cache redis to caffeine  
33635 821 d 5 h amit.gupta /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/ Fixed gst auth token caching issue  
33323 907 d 4 h amit.gupta /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/config/ Added changes to hold  
31282 1413 d 22 h amit.gupta /trunk/ Removed unwanted files  
30305 1660 d 17 h amit.gupta /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/ Caching fixed for items  
30289 1662 d 4 h amit.gupta /trunk/ Fixed changes related to einvoice and invoice generation  
30213 1678 d 23 h amit.gupta /trunk/ Fixed ahead issue  
30208 1689 d 23 h amit.gupta /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/config/ Fixed ahead issue  

Show All