Commit 39d35da 1 parent eeb7ae1 commit 39d35da Copy full SHA for 39d35da
File tree 2 files changed +12
-5
lines changed
main/java/com/gemstone/gemfire/internal/tcp
test/java/com/gemstone/gemfire/cache30
2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 13
13
import com .gemstone .gemfire .internal .*;
14
14
import com .gemstone .gemfire .internal .i18n .LocalizedStrings ;
15
15
16
- /** MsgOutputStream is deprecated. MsgStreamer should be used instead.
17
- * The one non-deprecated use is in Connection for the handshake .
16
+ /** MsgOutputStream should no longer be used except in Connection
17
+ * to do the handshake. Otherwise MsgStreamer should always be used .
18
18
19
19
@author Darrel
20
20
@since 3.0
Original file line number Diff line number Diff line change @@ -3767,9 +3767,16 @@ public void testRegionExpirationAfterMutate()
3767
3767
region .getAttributesMutator ().setRegionIdleTimeout (new ExpirationAttributes (999000 /*ms*/ , ExpirationAction .INVALIDATE ));
3768
3768
expiryTask = region .getRegionIdleExpiryTask ();
3769
3769
long hugeExpiryTime = expiryTask .getExpirationTime ();
3770
- region .getAttributesMutator ().setRegionIdleTimeout (new ExpirationAttributes (20 /*ms*/ , ExpirationAction .INVALIDATE ));
3771
- expiryTask = region .getRegionIdleExpiryTask ();
3772
- long shortExpiryTime = expiryTask .getExpirationTime ();
3770
+ ExpiryTask .suspendExpiration ();
3771
+ long shortExpiryTime ;
3772
+ try {
3773
+ region .getAttributesMutator ().setRegionIdleTimeout (new ExpirationAttributes (20 /*ms*/ , ExpirationAction .INVALIDATE ));
3774
+ expiryTask = region .getRegionIdleExpiryTask ();
3775
+ shortExpiryTime = expiryTask .getExpirationTime ();
3776
+ }
3777
+ finally {
3778
+ ExpiryTask .permitExpiration ();
3779
+ }
3773
3780
waitForInvalidate (entry , tilt +20 , 10 );
3774
3781
assertTrue ("expected hugeExpiryTime=" + hugeExpiryTime + " to be > than mediumExpiryTime=" + mediumExpiryTime , (hugeExpiryTime - mediumExpiryTime ) > 0 );
3775
3782
assertTrue ("expected mediumExpiryTime=" + mediumExpiryTime + " to be > than shortExpiryTime=" + shortExpiryTime , (mediumExpiryTime - shortExpiryTime ) > 0 );
You can’t perform that action at this time.
0 commit comments