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

Tenant cache lookup in Global Cache fails in certain conditions

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.7.0
    • Fix Version/s: 4.9.0, 4.8.1
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: