Changeset 7185


Ignore:
Timestamp:
12/13/11 17:01:09 (10 years ago)
Author:
ascheibe
Message:

#1672

  • possible fix for the slave hang problem: don't host the service on the thread it was created on
  • added a trigger for deleting slavestatistics when statistics are deleted
Location:
trunk/sources
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Clients.Hive.Slave.Views/3.3/SlaveItem.cs

    r7135 r7185  
    4242  }
    4343
    44   [CallbackBehavior(ConcurrencyMode = ConcurrencyMode.Reentrant)]
     44  [CallbackBehavior(ConcurrencyMode = ConcurrencyMode.Reentrant, UseSynchronizationContext = false)]
    4545  [Item("SlaveItem", "Represents a slave which receives messages from the core")]
    4646  public class SlaveItem : Item, ISlaveCommunicationCallbacks, IDisposable {
  • trunk/sources/HeuristicLab.Clients.Hive.Slave/3.3/DummyListener.cs

    r6983 r7185  
    2626namespace HeuristicLab.Clients.Hive.SlaveCore {
    2727
    28   [CallbackBehavior(ConcurrencyMode = ConcurrencyMode.Reentrant)]
     28  [CallbackBehavior(ConcurrencyMode = ConcurrencyMode.Reentrant, UseSynchronizationContext = false)]
    2929  internal class DummyListener : ISlaveCommunicationCallbacks {
    3030
  • trunk/sources/HeuristicLab.Clients.Hive.Slave/3.3/SlaveCommunicationService.cs

    r6983 r7185  
    2626
    2727namespace HeuristicLab.Clients.Hive.SlaveCore {
     28  [ServiceBehavior(UseSynchronizationContext = false)]
    2829  public class SlaveCommunicationService : ISlaveCommunication {
    2930    private static List<ISlaveCommunicationCallbacks> subscribers = new List<ISlaveCommunicationCallbacks>();
  • trunk/sources/HeuristicLab.Services.Hive.DataAccess/3.3/SQL Scripts/Prepare Hive Database.sql

    r6983 r7185  
    232232GO
    233233
     234
     235ALTER TRIGGER [dbo].[tr_StatisticsDeleteCascade] ON [dbo].[Statistics] INSTEAD OF DELETE AS
     236BEGIN
     237  DELETE SlaveStatistics FROM deleted, SlaveStatistics WHERE deleted.StatisticsId = SlaveStatistics.StatisticsId
     238  -- should also remove UserStatistics here
     239  DELETE [Statistics] FROM deleted, [Statistics] WHERE deleted.StatisticsId = [Statistics].StatisticsId
     240END
     241GO
     242
     243
    234244-- ============================================================
    235245-- Description: Create indices to speed up execution of queries
Note: See TracChangeset for help on using the changeset viewer.