Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e392278

Browse files
authoredMay 16, 2025··
Improve projection error if the type handling a native projection cannot be found (#5083) (#5085)
In practice this could happen if someone tries to run a database started on 25.1+ on a 25.0 or earlier server, because the projection will request a KurrentDB type. (The reverse is not a problem: new servers are able to handle projections attempting to use the EventStore types)
1 parent f42ffcd commit e392278

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎src/EventStore.Projections.Core/Services/Management/ProjectionStateHandlerFactory.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ public IProjectionStateHandler Create(
5151
.FirstOrDefault(v => v != null);
5252
}
5353

54+
if (type is null) {
55+
throw new NotSupportedException($"Could not find type \"{rest}\"");
56+
}
57+
5458
var handler = Activator.CreateInstance(type, source, logger);
5559
result = (IProjectionStateHandler)handler;
5660
break;

0 commit comments

Comments
 (0)
Please sign in to comment.