Author: stefanegli
Date: Wed Aug 17 07:34:09 2016
New Revision: 1756585
URL: http://svn.apache.org/viewvc?rev=1756585&view=rev
Log:
OAK-4677 : backported from trunk : on lease failure stop bundle only
transiently without persisting the autostart setting - to avoid having to
explicitly start oak-core on restart after lease failure
Modified:
jackrabbit/oak/branches/1.4/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeStoreService.java
Modified:
jackrabbit/oak/branches/1.4/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeStoreService.java
URL:
http://svn.apache.org/viewvc/jackrabbit/oak/branches/1.4/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeStoreService.java?rev=1756585&r1=1756584&r2=1756585&view=diff
==============================================================================
---
jackrabbit/oak/branches/1.4/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeStoreService.java
(original)
+++
jackrabbit/oak/branches/1.4/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeStoreService.java
Wed Aug 17 07:34:09 2016
@@ -410,7 +410,7 @@ public class DocumentNodeStoreService {
// plan A: try stopping oak-core
log.error("handleLeaseFailure: stopping
oak-core...");
Bundle bundle =
context.getBundleContext().getBundle();
- bundle.stop();
+ bundle.stop(Bundle.STOP_TRANSIENT);
log.error("handleLeaseFailure: stopped oak-core.");
// plan A worked, perfect!
} catch (BundleException e) {