Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-884

Cache store usability issues

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • sprint-4
    • None
    • cache
    • None

    Description

      • Need to validate read/write-through configuration. Currently, when cache store is configured, but readThrough and writeThrough flags on CacheConfiguration are switched off, the store will never be called, which is confusing. This case should be validated and proper warning should be printed out on startup (we can't throw an exception here because in some cases store implements only loadCache method and is not used for read/write-through).
      • Since cache store is instantiated by Ignite via factory, but not by Spring, user can't use Spring auto-wiring which is very common in Spring apps. Need to create utility method which will instantiate an instance with a factory and properly initialize it. All factory calls (store, expiry policy, ...) should be replaced with this utility method.
        To manually enable autowiring this code can be used:
        appCtx.getAutowireCapableBeanFactory().autowireBean(obj);
        

        (appCtx is Spring's ApplicationContext)

      Attachments

        Issue Links

          Activity

            People

              vkulichenko Valentin Kulichenko
              vkulichenko Valentin Kulichenko
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m