Author: rwesten
Date: Tue Jan 24 13:08:10 2012
New Revision: 1235236
URL: http://svn.apache.org/viewvc?rev=1235236&view=rev
Log:
STANBOL-431: Ignore EventAdmin Timeouts (5sec) for ContentItem Enhancements
The EventAdmin implementation of Felix Blacklists EventHanders that do need to
much time to process events. The default value is 5sec (see [1] for details)
The processing of ContentItems by EnhancementEngines might take longer than
that.
Because of that the EnhancementJobHandler got Blacklisted in such cases and was
not able to receive additional Events causing the enhancement process to get
stuck.
There are two possible workarounds for that:
1) set the default timeout to 0: This deactivated timeouts for all EventsHandler
2) exclude specific EventHandlers
This commits enables option (2) by providing a configuration within the full,
full-war, stable and kres launcher
Log messages like
Blacklisting ServiceReference [[org.osgi.service.event.EventHandler] |
Bundle(org.apache.stanbol.enhancer.eventjobmanager [64])] due to timeout
indicate that the EventAmin service is not configured correctly.
[1] http://felix.apache.org/site/apache-felix-event-admin.html
Added:
incubator/stanbol/trunk/launchers/full-war/src/main/webapp/WEB-INF/resources/config/org.apache.felix.eventadmin.impl.EventAdmin.cfg
incubator/stanbol/trunk/launchers/full/src/main/resources/resources/config/org.apache.felix.eventadmin.impl.EventAdmin.cfg
incubator/stanbol/trunk/launchers/kres/src/main/resources/resources/config/org.apache.felix.eventadmin.impl.EventAdmin.cfg
incubator/stanbol/trunk/launchers/stable/src/main/resources/resources/config/org.apache.felix.eventadmin.impl.EventAdmin.cfg
Modified:
incubator/stanbol/trunk/enhancer/chain/graph/ (props changed)
incubator/stanbol/trunk/enhancer/chain/weighted/ (props changed)
incubator/stanbol/trunk/enhancer/generic/chainmanager/ (props changed)
incubator/stanbol/trunk/enhancer/generic/enginemanager/ (props changed)
Propchange: incubator/stanbol/trunk/enhancer/chain/graph/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Tue Jan 24 13:08:10 2012
@@ -0,0 +1,7 @@
+.classpath
+
+target
+
+.settings
+
+.project
Propchange: incubator/stanbol/trunk/enhancer/chain/weighted/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Tue Jan 24 13:08:10 2012
@@ -0,0 +1,5 @@
+target
+
+.project
+
+bin
Propchange: incubator/stanbol/trunk/enhancer/generic/chainmanager/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Tue Jan 24 13:08:10 2012
@@ -0,0 +1,5 @@
+.classpath
+
+.project
+
+.settings
Propchange: incubator/stanbol/trunk/enhancer/generic/enginemanager/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Tue Jan 24 13:08:10 2012
@@ -0,0 +1,5 @@
+.classpath
+
+.project
+
+.settings
Added:
incubator/stanbol/trunk/launchers/full-war/src/main/webapp/WEB-INF/resources/config/org.apache.felix.eventadmin.impl.EventAdmin.cfg
URL:
http://svn.apache.org/viewvc/incubator/stanbol/trunk/launchers/full-war/src/main/webapp/WEB-INF/resources/config/org.apache.felix.eventadmin.impl.EventAdmin.cfg?rev=1235236&view=auto
==============================================================================
---
incubator/stanbol/trunk/launchers/full-war/src/main/webapp/WEB-INF/resources/config/org.apache.felix.eventadmin.impl.EventAdmin.cfg
(added)
+++
incubator/stanbol/trunk/launchers/full-war/src/main/webapp/WEB-INF/resources/config/org.apache.felix.eventadmin.impl.EventAdmin.cfg
Tue Jan 24 13:08:10 2012
@@ -0,0 +1,25 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
+
+# The Apache Felix EventAdmin uses a 5sec timeout on Event processing.
+# If a handler needs more time than that it is blacklisted and does not get
+# any additional events [1]
+# However when enhancing ContentItems it is expected that EventProcessing
+# might take a lot of time. For such cases the IgnoreTimeout property can be
+# used to exclude specific EventHandlers rather than deactivating this feature
+# all together.
+org.apache.felix.eventadmin.IgnoreTimeout=org.apache.stanbol.enhancer.jobmanager.event.impl.EnhancementJobHandler
\ No newline at end of file
Added:
incubator/stanbol/trunk/launchers/full/src/main/resources/resources/config/org.apache.felix.eventadmin.impl.EventAdmin.cfg
URL:
http://svn.apache.org/viewvc/incubator/stanbol/trunk/launchers/full/src/main/resources/resources/config/org.apache.felix.eventadmin.impl.EventAdmin.cfg?rev=1235236&view=auto
==============================================================================
---
incubator/stanbol/trunk/launchers/full/src/main/resources/resources/config/org.apache.felix.eventadmin.impl.EventAdmin.cfg
(added)
+++
incubator/stanbol/trunk/launchers/full/src/main/resources/resources/config/org.apache.felix.eventadmin.impl.EventAdmin.cfg
Tue Jan 24 13:08:10 2012
@@ -0,0 +1,25 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
+
+# The Apache Felix EventAdmin uses a 5sec timeout on Event processing.
+# If a handler needs more time than that it is blacklisted and does not get
+# any additional events [1]
+# However when enhancing ContentItems it is expected that EventProcessing
+# might take a lot of time. For such cases the IgnoreTimeout property can be
+# used to exclude specific EventHandlers rather than deactivating this feature
+# all together.
+org.apache.felix.eventadmin.IgnoreTimeout=org.apache.stanbol.enhancer.jobmanager.event.impl.EnhancementJobHandler
\ No newline at end of file
Added:
incubator/stanbol/trunk/launchers/kres/src/main/resources/resources/config/org.apache.felix.eventadmin.impl.EventAdmin.cfg
URL:
http://svn.apache.org/viewvc/incubator/stanbol/trunk/launchers/kres/src/main/resources/resources/config/org.apache.felix.eventadmin.impl.EventAdmin.cfg?rev=1235236&view=auto
==============================================================================
---
incubator/stanbol/trunk/launchers/kres/src/main/resources/resources/config/org.apache.felix.eventadmin.impl.EventAdmin.cfg
(added)
+++
incubator/stanbol/trunk/launchers/kres/src/main/resources/resources/config/org.apache.felix.eventadmin.impl.EventAdmin.cfg
Tue Jan 24 13:08:10 2012
@@ -0,0 +1,25 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
+
+# The Apache Felix EventAdmin uses a 5sec timeout on Event processing.
+# If a handler needs more time than that it is blacklisted and does not get
+# any additional events [1]
+# However when enhancing ContentItems it is expected that EventProcessing
+# might take a lot of time. For such cases the IgnoreTimeout property can be
+# used to exclude specific EventHandlers rather than deactivating this feature
+# all together.
+org.apache.felix.eventadmin.IgnoreTimeout=org.apache.stanbol.enhancer.jobmanager.event.impl.EnhancementJobHandler
\ No newline at end of file
Added:
incubator/stanbol/trunk/launchers/stable/src/main/resources/resources/config/org.apache.felix.eventadmin.impl.EventAdmin.cfg
URL:
http://svn.apache.org/viewvc/incubator/stanbol/trunk/launchers/stable/src/main/resources/resources/config/org.apache.felix.eventadmin.impl.EventAdmin.cfg?rev=1235236&view=auto
==============================================================================
---
incubator/stanbol/trunk/launchers/stable/src/main/resources/resources/config/org.apache.felix.eventadmin.impl.EventAdmin.cfg
(added)
+++
incubator/stanbol/trunk/launchers/stable/src/main/resources/resources/config/org.apache.felix.eventadmin.impl.EventAdmin.cfg
Tue Jan 24 13:08:10 2012
@@ -0,0 +1,25 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
+
+# The Apache Felix EventAdmin uses a 5sec timeout on Event processing.
+# If a handler needs more time than that it is blacklisted and does not get
+# any additional events [1]
+# However when enhancing ContentItems it is expected that EventProcessing
+# might take a lot of time. For such cases the IgnoreTimeout property can be
+# used to exclude specific EventHandlers rather than deactivating this feature
+# all together.
+org.apache.felix.eventadmin.IgnoreTimeout=org.apache.stanbol.enhancer.jobmanager.event.impl.EnhancementJobHandler
\ No newline at end of file