Uploaded image for project: 'Apache Storm'
  1. Apache Storm
  2. STORM-2804

TopoCache is not caching ACLs correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.0.0
    • None

    Description

      In the code addTopology

       public void addTopology(final String topoId, final Subject who, final StormTopology topo)
              throws AuthorizationException, KeyAlreadyExistsException, IOException {
              final String key = ConfigUtils.masterStormCodeKey(topoId);
              final List<AccessControl> acl = BlobStoreAclHandler.DEFAULT;
              store.createBlob(key, Utils.serialize(topo), new SettableBlobMeta(acl), who);
              topos.put(topoId, new WithAcl<>(acl, topo));
          }
      

      acl is being modified in store.createBlob(). But it's not populated to the topos.

      The same applies to the addTopoConf() function

      Attachments

        Issue Links

          Activity

            People

              ethanli Ethan Li
              ethanli Ethan Li
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 0.5h
                  0.5h