Issue Type: Bug Bug
Assignee: abayer
Components: throttle-concurrents
Created: 05/Mar/14 5:30 PM
Description:

Background: as we're keeping our Jenkins instance configuration under control through source code management, we'd like to avoid having to revert unnecessary changes when a configuration file is saved.
Currently, we have to do that for hudson.plugins.throttleconcurrents.ThrottleJobProperty.xml each time Jenkins system configuration is saved. The unnecessary changes seem to be related to transient data that should not be persisted:

...
  <propertiesByCategory>
    <entry>
      <string>resource_4</string>
      <java.util.WeakHashMap>
        <table>
          <null/>
          <null/>
          <java.util.WeakHashMap_-Entry>
            <referent class="hudson.plugins.throttleconcurrents.ThrottleJobProperty">
              <maxConcurrentPerNode>1</maxConcurrentPerNode>
              <maxConcurrentTotal>1</maxConcurrentTotal>
              <categories>
                <string>resource_3</string>
                <string>resource_4</string>
              </categories>
              <throttleEnabled>true</throttleEnabled>
              <throttleOption>category</throttleOption>
              <configVersion>1</configVersion>
            </referent>
            <queue>
              <lock/>
              <queueLength>0</queueLength>
            </queue>
            <hash>172156498</hash>
          </java.util.WeakHashMap_-Entry>
          <java.util.WeakHashMap_-Entry>
            <referent class="hudson.plugins.throttleconcurrents.ThrottleJobProperty">
              <maxConcurrentPerNode>1</maxConcurrentPerNode>
              <maxConcurrentTotal>1</maxConcurrentTotal>
              <categories>
                <string>resource_4</string>
              </categories>
              <throttleEnabled>true</throttleEnabled>
              <throttleOption>category</throttleOption>
              <configVersion>1</configVersion>
            </referent>
            <queue reference="../../java.util.WeakHashMap_-Entry/queue"/>
            <hash>1143290467</hash>
          </java.util.WeakHashMap_-Entry>
          <null/>
          <null/>
          <null/>
          <null/>
          <null/>
          <null/>
          <null/>
          <null/>
          <null/>
          <null/>
          <null/>
          <null/>
        </table>
        <size>2</size>
        <threshold>12</threshold>
        <loadFactor>0.75</loadFactor>
        <queue reference="../table/java.util.WeakHashMap_-Entry/queue"/>
        <modCount>2</modCount>
      </java.util.WeakHashMap>
    </entry>
    <entry>
      <string>resource_3</string>
      <java.util.WeakHashMap>
        <table>
          <null/>
          <null/>
          <java.util.WeakHashMap_-Entry>
            <referent class="hudson.plugins.throttleconcurrents.ThrottleJobProperty" reference="../../../../../entry/java.util.WeakHashMap/table/java.util.WeakHashMap_-Entry/referent"/>
            <queue>
              <lock/>
              <queueLength>0</queueLength>
            </queue>
            <hash>172156498</hash>
          </java.util.WeakHashMap_-Entry>
          <null/>
          <null/>
          <null/>
          <null/>
          <java.util.WeakHashMap_-Entry>
            <referent class="hudson.plugins.throttleconcurrents.ThrottleJobProperty">
              <maxConcurrentPerNode>1</maxConcurrentPerNode>
              <maxConcurrentTotal>1</maxConcurrentTotal>
              <categories>
                <string>resource_3</string>
              </categories>
              <throttleEnabled>true</throttleEnabled>
              <throttleOption>category</throttleOption>
              <configVersion>1</configVersion>
            </referent>
            <queue reference="../../java.util.WeakHashMap_-Entry/queue"/>
            <hash>1627508327</hash>
          </java.util.WeakHashMap_-Entry>
          <null/>
          <null/>
          <null/>
          <null/>
          <null/>
          <java.util.WeakHashMap_-Entry>
            <referent class="hudson.plugins.throttleconcurrents.ThrottleJobProperty">
              <maxConcurrentPerNode>1</maxConcurrentPerNode>
              <maxConcurrentTotal>1</maxConcurrentTotal>
              <categories>
                <string>resource_3</string>
              </categories>
              <throttleEnabled>true</throttleEnabled>
              <throttleOption>category</throttleOption>
              <configVersion>1</configVersion>
            </referent>
            <queue reference="../../java.util.WeakHashMap_-Entry/queue"/>
            <hash>2017178701</hash>
          </java.util.WeakHashMap_-Entry>
          <null/>
          <java.util.WeakHashMap_-Entry>
            <referent class="hudson.plugins.throttleconcurrents.ThrottleJobProperty">
              <maxConcurrentPerNode>1</maxConcurrentPerNode>
              <maxConcurrentTotal>1</maxConcurrentTotal>
              <categories>
                <string>resource_3</string>
              </categories>
              <throttleEnabled>true</throttleEnabled>
              <throttleOption>category</throttleOption>
            </referent>
            <queue reference="../../java.util.WeakHashMap_-Entry/queue"/>
            <hash>176958479</hash>
          </java.util.WeakHashMap_-Entry>
        </table>
        <size>4</size>
        <threshold>12</threshold>
        <loadFactor>0.75</loadFactor>
        <queue reference="../table/java.util.WeakHashMap_-Entry/queue"/>
        <modCount>8</modCount>
      </java.util.WeakHashMap>
    </entry>
    <entry>
      <string>resource_1</string>
      <java.util.WeakHashMap>
        <table>
          <null/>
          <null/>
          <null/>
          <java.util.WeakHashMap_-Entry>
            <referent class="hudson.plugins.throttleconcurrents.ThrottleJobProperty">
              <maxConcurrentPerNode>0</maxConcurrentPerNode>
              <maxConcurrentTotal>0</maxConcurrentTotal>
              <categories>
                <string>resource_1</string>
              </categories>
              <throttleEnabled>true</throttleEnabled>
              <throttleOption>category</throttleOption>
              <configVersion>1</configVersion>
            </referent>
            <queue>
              <lock/>
              <queueLength>0</queueLength>
            </queue>
            <hash>408298403</hash>
          </java.util.WeakHashMap_-Entry>
          <null/>
          <null/>
          <null/>
          <null/>
          <null/>
          <null/>
          <null/>
          <null/>
          <null/>
          <null/>
          <null/>
          <null/>
        </table>
        <size>1</size>
        <threshold>12</threshold>
        <loadFactor>0.75</loadFactor>
        <queue reference="../table/java.util.WeakHashMap_-Entry/queue"/>
        <modCount>1</modCount>
      </java.util.WeakHashMap>
    </entry>
    <entry>
      <string>resource_6</string>
      <java.util.WeakHashMap>
        <table>
          <null/>
          <null/>
          <null/>
          <null/>
          <null/>
          <null/>
          <null/>
          <java.util.WeakHashMap_-Entry>
            <referent class="hudson.plugins.throttleconcurrents.ThrottleJobProperty">
              <maxConcurrentPerNode>0</maxConcurrentPerNode>
              <maxConcurrentTotal>0</maxConcurrentTotal>
              <categories>
                <string>resource_6</string>
              </categories>
              <throttleEnabled>true</throttleEnabled>
              <throttleOption>category</throttleOption>
            </referent>
            <queue>
              <lock/>
              <queueLength>0</queueLength>
            </queue>
            <hash>696214343</hash>
          </java.util.WeakHashMap_-Entry>
          <null/>
          <null/>
          <null/>
          <null/>
          <java.util.WeakHashMap_-Entry>
            <referent class="hudson.plugins.throttleconcurrents.ThrottleJobProperty">
              <maxConcurrentPerNode>0</maxConcurrentPerNode>
              <maxConcurrentTotal>0</maxConcurrentTotal>
              <categories>
                <string>resource_6</string>
              </categories>
              <throttleEnabled>true</throttleEnabled>
              <throttleOption>category</throttleOption>
            </referent>
            <queue reference="../../java.util.WeakHashMap_-Entry/queue"/>
            <hash>1937466172</hash>
          </java.util.WeakHashMap_-Entry>
          <null/>
          <null/>
          <null/>
        </table>
        <size>2</size>
        <threshold>12</threshold>
        <loadFactor>0.75</loadFactor>
        <queue reference="../table/java.util.WeakHashMap_-Entry/queue"/>
        <modCount>2</modCount>
      </java.util.WeakHashMap>
    </entry>
    <entry>
      <string>resource_2</string>
      <java.util.WeakHashMap>
        <table>
          <null/>
          <null/>
          <null/>
          <java.util.WeakHashMap_-Entry>
            <referent class="hudson.plugins.throttleconcurrents.ThrottleJobProperty">
              <maxConcurrentPerNode>0</maxConcurrentPerNode>
              <maxConcurrentTotal>0</maxConcurrentTotal>
              <categories>
                <string>resource_2</string>
              </categories>
              <throttleEnabled>true</throttleEnabled>
              <throttleOption>category</throttleOption>
              <configVersion>1</configVersion>
            </referent>
            <queue>
              <lock/>
              <queueLength>0</queueLength>
            </queue>
            <hash>520813555</hash>
          </java.util.WeakHashMap_-Entry>
          <null/>
          <null/>
          <null/>
          <null/>
          <java.util.WeakHashMap_-Entry>
            <referent class="hudson.plugins.throttleconcurrents.ThrottleJobProperty">
              <maxConcurrentPerNode>0</maxConcurrentPerNode>
              <maxConcurrentTotal>0</maxConcurrentTotal>
              <categories>
                <string>resource_2</string>
              </categories>
              <throttleEnabled>true</throttleEnabled>
              <throttleOption>category</throttleOption>
              <configVersion>1</configVersion>
            </referent>
            <queue reference="../../java.util.WeakHashMap_-Entry/queue"/>
            <hash>693023304</hash>
          </java.util.WeakHashMap_-Entry>
          <null/>
          <null/>
          <null/>
          <null/>
          <null/>
          <null/>
          <null/>
        </table>
        <size>2</size>
        <threshold>12</threshold>
        <loadFactor>0.75</loadFactor>
        <queue reference="../table/java.util.WeakHashMap_-Entry/queue"/>
        <modCount>2</modCount>
      </java.util.WeakHashMap>
    </entry>
    <entry>
      <string>resource_5</string>
      <java.util.WeakHashMap>
        <table>
          <java.util.WeakHashMap_-Entry>
            <referent class="hudson.plugins.throttleconcurrents.ThrottleJobProperty">
              <maxConcurrentPerNode>1</maxConcurrentPerNode>
              <maxConcurrentTotal>1</maxConcurrentTotal>
              <categories>
                <string>resource_5</string>
              </categories>
              <throttleEnabled>true</throttleEnabled>
              <throttleOption>category</throttleOption>
              <configVersion>1</configVersion>
            </referent>
            <queue>
              <lock/>
              <queueLength>0</queueLength>
            </queue>
            <hash>1434572240</hash>
          </java.util.WeakHashMap_-Entry>
          <null/>
          <null/>
          <null/>
          <null/>
          <null/>
          <null/>
          <null/>
          <null/>
          <null/>
          <null/>
          <null/>
          <null/>
          <null/>
          <null/>
          <null/>
        </table>
        <size>1</size>
        <threshold>12</threshold>
        <loadFactor>0.75</loadFactor>
        <queue reference="../table/java.util.WeakHashMap_-Entry/queue"/>
        <modCount>1</modCount>
      </java.util.WeakHashMap>
    </entry>
  </propertiesByCategory>
...
Project: Jenkins
Priority: Trivial Trivial
Reporter: Régis Desgroppes
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to