HiveMind
  1. HiveMind
  2. HIVEMIND-208

Service Serialization doesn't work on a cluster

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Blocker Blocker
    • Resolution: Unresolved
    • Affects Version/s: 1.1.1
    • Fix Version/s: None
    • Component/s: framework
    • Labels:
      None

      Description

      I'm getting the following exception all over the logs in a clustered environment :

      org.apache.hivemind.ApplicationRuntimeException: The ServiceSerializationSupport instance has not been set; this indicates that the HiveMind Registry has not been created within this JVM.

      It seems that the cause might be the use of a LocalThread variable in ServiceSerializationHelper.

      1. hivemind-208.patch
        6 kB
        Johan Lindquist

        Activity

        Hide
        Jon Aardal added a comment -

        Has anyone found a workaround for this issue?

        Do you have to provide your own persistence mechanism
        by implementing a 'private void writeObject(ObjectOutputStream s) throws IOException' method and setting
        the service to null so the service is not persisted?

        Show
        Jon Aardal added a comment - Has anyone found a workaround for this issue? Do you have to provide your own persistence mechanism by implementing a 'private void writeObject(ObjectOutputStream s) throws IOException' method and setting the service to null so the service is not persisted?
        Hide
        Johan Lindquist added a comment -

        Have gotten a test case to emulate this and it looks (at an initial glance) that the problem disappears if replacing the thread local with a simple instance variable that is accessible to any of the threads. Not been able to test in a real environment.

        Will attach patch - comments are appreciated.

        Show
        Johan Lindquist added a comment - Have gotten a test case to emulate this and it looks (at an initial glance) that the problem disappears if replacing the thread local with a simple instance variable that is accessible to any of the threads. Not been able to test in a real environment. Will attach patch - comments are appreciated.

          People

          • Assignee:
            Unassigned
            Reporter:
            Hugo Palma
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:

              Development