Skip to content

Commit

Permalink
nfs: include CDC in scheduled activity
Browse files Browse the repository at this point in the history
Motivation:

The NFS door currently does not include CDC information when executing
periodic tasks.  This prevents log messages from being identified as
being from the NFS service, and results such messages being absent from
the cell's pinboard.

Modification:

Include CDC wrapper to ensure the CDC is set correctly.

Result:

Periodic activity associated with the NFS door is now logged with the
door's cell name.  Such messages will also appear in the door's
pinboard.

Target: master
Requires-notes: yes
Requires-book: no
Patch: https://rb.dcache.org/r/11777/
Acked-by: Tigran Mkrtchyan
Request: 5.1
Request: 5.0
Request: 4.2
  • Loading branch information
paulmillar committed Jun 4, 2019
1 parent c334ea1 commit f41b4a9
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,15 @@
</bean>

<bean id="scheduled-thread-pool"
class="java.util.concurrent.Executors"
factory-method="newScheduledThreadPool"
destroy-method="shutdown">
class="org.dcache.util.CDCScheduledExecutorServiceDecorator"
destroy-method="shutdown">
<description>Thread pool for scheduled activities</description>
<constructor-arg value="1"/>
<constructor-arg>
<bean class="java.util.concurrent.Executors"
factory-method="newScheduledThreadPool">
<constructor-arg value="1"/>
</bean>
</constructor-arg>
</bean>

<bean id="dataSource" class="org.dcache.db.AlarmEnabledDataSource" destroy-method="close">
Expand Down

0 comments on commit f41b4a9

Please sign in to comment.