Execute the following script against a database which is configured for NHibernate Persistence:
DELETE FROM <subscriptionTable> WHERE SubscriberEndpoint = '<subscriberAddress>'
is the address of the subscriber. E.g.
is the configured subscription table for NHibernate Persistence. By default this is
Older versions of NServiceBus had an issue which caused the
TimeoutEntity_EndpointIdx index to be either missing or created incorrectly. Now there is a built-in check and log warnings in cases when
TimeoutEntity_EndpointIdxindex has an incorrect column order
- the system can not find
In cases where the index was created incorrectly, use the following script to drop the index:
DROP INDEX [TimeoutEntity_EndpointIdx] ON [dbo].[TimeoutEntity] WITH ( ONLINE = OFF ) GO
and the following script to create the correct one
CREATE CLUSTERED INDEX [TimeoutEntity_EndpointIdx] ON [dbo].[TimeoutEntity] ( [Endpoint] ASC, [Time] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) GO