Skip to content

Commit

Permalink
srm/srmmanager: fix srmPing confusion
Browse files Browse the repository at this point in the history
Motivation:

dCache allows for custom SRM ping responses.  It is currently unclear
where this should be configured due to inconsistent naming.

Modification:

Fix default configuration for srm service; remove redundant setting of
srmPing in srmmanager.

Result:

Less confusion over how to configure custom srmPing responses.

Target: master
Request: 3.1
Request: 3.0
Request: 2.16
Require-notes: yes
Require-book: no
Closes: #3303
Patch: https://rb.dcache.org/r/10345/
Acked-by: Tigran Mkrtchyan
  • Loading branch information
paulmillar committed Jul 18, 2017
1 parent da6bbf2 commit c73bf8e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -427,11 +427,6 @@
value="${srmmanager.persistence.reserve-space.enable.clean-pending-on-restart}"/>
<property name="databaseParametersForReserve.storeCompletedRequestsOnly"
value="#{ '${srmmanager.persistence.reserve-space.enable.store-transient-state}'.equals('false') ? true : false }"/>
<property name="pingExtraInfo">
<bean class="org.dcache.util.ConfigurationMapFactoryBean">
<property name="prefix" value="srm.ping-extra-info"/>
</bean>
</property>
<property name="maximumClientAssumedBandwidth" value="${srmmanager.request.maximum-client-assumed-bandwidth}"/>
</bean>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,6 @@ public class Configuration {
new HashMap<>();
private String caCertificatePath;

private ImmutableMap<String,String> pingExtraInfo = ImmutableMap.of();

/** Creates a new instance of Configuration */
public Configuration() {
databaseParameters.put(PUT_PARAMETERS, new DatabaseParameters("Put"));
Expand All @@ -206,16 +204,6 @@ public Configuration() {
databaseParameters.put(RESERVE_PARAMETERS, new DatabaseParameters("Reserve Space"));
}

public ImmutableMap<String,String> getPingExtraInfo()
{
return pingExtraInfo;
}

public void setPingExtraInfo(Map<String,String> additionalInfo)
{
pingExtraInfo = ImmutableMap.copyOf(additionalInfo);
}

/** Getter for property urlcopy.
* @return Value of property urlcopy.
*/
Expand Down
3 changes: 1 addition & 2 deletions skel/share/defaults/srm.properties
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ srm.authn.ciphers = ${dcache.authn.ciphers}
# is the property name without this prefix and the ExtraInfo value is
# the property's value.
#
(prefix)srmmanager.ping-extra-info = The ExtraInfo items in an srmPing response.
(prefix)srm.ping-extra-info = The ExtraInfo items in an srmPing response.
srm.ping-extra-info!backend_type = dCache
srm.ping-extra-info!backend_version = ${dcache.version}

Expand Down Expand Up @@ -465,5 +465,4 @@ srm.ping-extra-info!backend_version = ${dcache.version}
(obsolete)srm.cell.export = See srm.cell.consume
(obsolete)srm.net.host =
(obsolete)srm.net.local-hosts =
(obsolete)srm.ping-extra-info =
(obsolete)srm.root =

0 comments on commit c73bf8e

Please sign in to comment.