Skip to content

Commit 9e9250e

Browse files
committed
broadcast: Fix expiration of dynamic subscribers
Addresses the issue that HSM cleaner is broken as it newer receives pool-up notifications. BroadcastRegistrationTask supplies a relative timeout, but the broadcast registration cell expects an absolute timeout. Target: trunk Request: 2.6 Request: 2.2 Require-notes: yes Require-book: no Acked-by: Paul Millar <paul.millar@desy.de> Patch: http://rb.dcache.org/r/5601/ (cherry picked from commit 6276fca)
1 parent 9b9d76c commit 9e9250e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

modules/cells/src/main/java/dmg/cells/services/multicaster/BroadcastCell.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,7 @@ private OptionClass( Args args ){
186186

187187
String tmp = args.getOpt("expires") ;
188188
if( tmp != null ) {
189-
expires = Long.parseLong(tmp) * 1000L + System
190-
.currentTimeMillis();
189+
expires = Long.parseLong(tmp) * 1000L;
191190
}
192191

193192
tmp = args.getOpt("cancelonfailure") ;
@@ -365,7 +364,7 @@ private void handleBroadcastCommandMessage( CellMessage msg , BroadcastCommandMe
365364
}
366365
long expires = reg.getExpires() ;
367366
if( expires > 0 ) {
368-
entry.setExpires(expires);
367+
entry.setExpires(expires + System.currentTimeMillis());
369368
}
370369
}
371370
}else if( event instanceof BroadcastUnregisterMessage ){

0 commit comments

Comments
 (0)