You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Jacek Lewandowski (JIRA)" <ji...@apache.org> on 2015/05/07 08:57:00 UTC
[jira] [Created] (SPARK-7436) Cannot implement nor use custom
StandaloneRecoveryModeFactory implementations
Jacek Lewandowski created SPARK-7436:
----------------------------------------
Summary: Cannot implement nor use custom StandaloneRecoveryModeFactory implementations
Key: SPARK-7436
URL: https://issues.apache.org/jira/browse/SPARK-7436
Project: Spark
Issue Type: Bug
Affects Versions: 1.3.1
Reporter: Jacek Lewandowski
At least, this code fragment is buggy ({{Master.scala}}):
{code}
case "CUSTOM" =>
val clazz = Class.forName(conf.get("spark.deploy.recoveryMode.factory"))
val factory = clazz.getConstructor(conf.getClass, Serialization.getClass)
.newInstance(conf, SerializationExtension(context.system))
.asInstanceOf[StandaloneRecoveryModeFactory]
(factory.createPersistenceEngine(), factory.createLeaderElectionAgent(this))
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org