Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix that Version doesn't match #253

Merged
merged 1 commit into from Dec 19, 2018

Conversation

@kexxxfeng
Copy link
Contributor

commented Dec 19, 2018

After DotNetCore.CAP.MongoDB updated to 2.4, there was a bug. This PR fixed that.

[Error] An exception occurred while executing the subscription method. Topic:Feed.Created, Id:1075252961419243520
System.FormatException: Element 'Version' does not match any field or property of class DotNetCore.CAP.Models.CapReceivedMessage.
   at MongoDB.Bson.Serialization.BsonClassMapSerializer`1.DeserializeClass(BsonDeserializationContext context)
   at MongoDB.Bson.Serialization.BsonClassMapSerializer`1.Deserialize(BsonDeserializationContext context, BsonDeserializationArgs args)
   at MongoDB.Bson.Serialization.IBsonSerializerExtensions.Deserialize[TValue](IBsonSerializer`1 serializer, BsonDeserializationContext context)
   at MongoDB.Driver.Core.Operations.ElementDeserializer`1.Deserialize(BsonDeserializationContext context, BsonDeserializationArgs args)
   at MongoDB.Bson.Serialization.IBsonSerializerExtensions.Deserialize[TValue](IBsonSerializer`1 serializer, BsonDeserializationContext context)
   at MongoDB.Driver.Core.Operations.FindAndModifyValueDeserializer`1.Deserialize(BsonDeserializationContext context, BsonDeserializationArgs args)
   at MongoDB.Bson.Serialization.IBsonSerializerExtensions.Deserialize[TValue](IBsonSerializer`1 serializer, BsonDeserializationContext context)
   at MongoDB.Driver.Core.Operations.FindAndModifyOperationBase`1.ProcessCommandResult(ConnectionId connectionId, RawBsonDocument rawBsonDocument)
   at MongoDB.Driver.Core.Operations.FindAndModifyOperationBase`1.ExecuteAttempt(RetryableWriteContext context, Int32 attempt, Nullable`1 transactionNumber, CancellationToken cancellationToken)
   at MongoDB.Driver.Core.Operations.RetryableWriteOperationExecutor.Execute[TResult](IRetryableWriteOperation`1 operation, RetryableWriteContext context, CancellationToken cancellationToken)
   at MongoDB.Driver.Core.Operations.RetryableWriteOperationExecutor.Execute[TResult](IRetryableWriteOperation`1 operation, IWriteBinding binding, Boolean retryRequested, CancellationToken cancellationToken)
   at MongoDB.Driver.Core.Operations.FindAndModifyOperationBase`1.Execute(IWriteBinding binding, CancellationToken cancellationToken)
   at MongoDB.Driver.OperationExecutor.ExecuteWriteOperation[TResult](IWriteBinding binding, IWriteOperation`1 operation, CancellationToken cancellationToken)
   at MongoDB.Driver.MongoCollectionImpl`1.ExecuteWriteOperation[TResult](IClientSessionHandle session, IWriteOperation`1 operation, CancellationToken cancellationToken)
   at MongoDB.Driver.MongoCollectionImpl`1.FindOneAndUpdate[TProjection](IClientSessionHandle session, FilterDefinition`1 filter, UpdateDefinition`1 update, FindOneAndUpdateOptions`2 options, CancellationToken cancellationToken)
   at MongoDB.Driver.IMongoCollectionExtensions.FindOneAndUpdate[TDocument](IMongoCollection`1 collection, IClientSessionHandle session, Expression`1 filter, UpdateDefinition`1 update, FindOneAndUpdateOptions`2 options, CancellationToken cancellationToken)
   at DotNetCore.CAP.MongoDB.MongoDBStorageTransaction.UpdateMessage(CapReceivedMessage message)
   at DotNetCore.CAP.Processor.States.StateChanger.ChangeState(CapReceivedMessage message, IState state, IStorageTransaction transaction)
   at DotNetCore.CAP.Processor.States.StateChangerExtensions.ChangeStateAsync(IStateChanger this, CapReceivedMessage message, IState state, IStorageConnection connection)
   at DotNetCore.CAP.DefaultSubscriberExecutor.ExecuteWithoutRetryAsync(CapReceivedMessage message)

@yang-xiaodong yang-xiaodong self-requested a review Dec 19, 2018

@yang-xiaodong

This comment has been minimized.

Copy link
Member

commented Dec 19, 2018

LGTM

@yang-xiaodong yang-xiaodong merged commit 3719c92 into dotnetcore:master Dec 19, 2018

1 of 2 checks passed

continuous-integration/travis-ci/pr The Travis CI build could not complete due to an error
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
@yang-xiaodong

This comment has been minimized.

Copy link
Member

commented Dec 19, 2018

@kexxxfeng Version 2.4.1 has released to NuGet , Thanks your PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.