Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-3203

Tenant cache lookup in Global Cache fails in certain conditions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.7.0
    • 4.9.0, 4.8.1
    • None
    • None

    Description

      In ServerCachingEndpointImpl.addServerCache we look up the tenant cache using an ImmutableBytesPtr instead of ImmutableBytesWritable

      ImmutableBytesPtr tenantId = null;
          if (request.hasTenantId()) {
            tenantId = new ImmutableBytesPtr(request.getTenantId().toByteArray());
          }
          TenantCache tenantCache = GlobalCache.getTenantCache(this.env, tenantId);
      

      this causes the TenantCache to not be found when we look it up later using an ImmutableBytesWritable.

      Attachments

        1. PHOENIX-3203-v2.patch
          20 kB
          Thomas D'Silva
        2. PHOENIX-3203.patch
          5 kB
          Thomas D'Silva

        Issue Links

          Activity

            People

              tdsilva Thomas D'Silva
              tdsilva Thomas D'Silva
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: