[
https://issues.apache.org/jira/browse/IGNITE-3512?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15387991#comment-15387991
]
ASF GitHub Bot commented on IGNITE-3512:
----------------------------------------
GitHub user ptupitsyn opened a pull request:
https://github.com/apache/ignite/pull/879
IGNITE-3512 .NET: IBinaryObject.ToBuilder loses type name
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/ptupitsyn/ignite ignite-3512
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/ignite/pull/879.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #879
----
commit 11c7e8fe53461f84924e5c29893865191f236c8c
Author: Anton Vinogradov <[email protected]>
Date: 2016-07-20T08:31:14Z
Documentation fix
commit 9b55658749d0e2a869bbb3614034d8aa1f0e95c1
Author: vozerov-gridgain <[email protected]>
Date: 2016-07-20T11:14:50Z
IGNITE-3405: IGFS: Restricted path modes interleaving, so that now only
DUAL -> PRIMARY and DUAL -> PROXY paths are possible.
commit 6c5218f4d67c8e247f59dbe8deb58b51db2954a2
Author: vozerov-gridgain <[email protected]>
Date: 2016-07-20T11:15:11Z
Merge remote-tracking branch 'upstream/gridgain-7.6.2' into gridgain-7.6.2
commit c25cd4600bd7254d051048034ad4781deb833aae
Author: Pavel Tupitsyn <[email protected]>
Date: 2016-07-21T14:11:12Z
IGNITE-3512 .NET: IBinaryObject.ToBuilder loses type name
commit e4a95a3927d8cac0dd2839d4f483f50b691015cc
Author: Pavel Tupitsyn <[email protected]>
Date: 2016-07-21T14:15:01Z
wip
commit 0e8547b81033fc3fe053121460830fde22b88529
Author: Pavel Tupitsyn <[email protected]>
Date: 2016-07-21T14:35:48Z
Fix metadata propagation
commit 3a7f35ea56a320cccfd275cafdef557764c59d14
Author: Pavel Tupitsyn <[email protected]>
Date: 2016-07-21T14:36:25Z
wip
commit 77e706ce5e4541d1c4c555caca647574e650e607
Author: Pavel Tupitsyn <[email protected]>
Date: 2016-07-21T14:39:54Z
wip
commit 14d99f50e906490bc5342dd673c520fc9cb5b033
Author: Pavel Tupitsyn <[email protected]>
Date: 2016-07-21T15:23:47Z
synopsis
commit 8af51e7013123388b122c5618c71254ce63d740c
Author: Pavel Tupitsyn <[email protected]>
Date: 2016-07-21T15:32:23Z
Fix meta update
commit b3152299deb10d3a4d89f8e288bafd115904aae5
Author: Pavel Tupitsyn <[email protected]>
Date: 2016-07-21T15:43:53Z
wip
----
> .NET: IBinaryObject.ToBuilder loses type name
> ---------------------------------------------
>
> Key: IGNITE-3512
> URL: https://issues.apache.org/jira/browse/IGNITE-3512
> Project: Ignite
> Issue Type: Bug
> Components: platforms
> Affects Versions: 1.5.0.final
> Reporter: Pavel Tupitsyn
> Assignee: Pavel Tupitsyn
> Fix For: 1.7
>
>
> Steps to reproduce:
> * Create a builder for a string type name, set field, put to cache
> * On another node, read this object, call ToBuilder, call Build
> Type name is not propagated with metadata, which leads to assertion error
> (with -ea) or "Two binary types have duplicate type ID [typeId=949122880,
> typeName1=Security, typeName2=null]]" error.
> Unit test:
> {code}
> [Test]
> public void Test()
> {
> using (var grid1 =
> Ignition.Start(TestUtils.GetTestConfiguration()))
> using (var grid2 = Ignition.Start(new
> IgniteConfiguration(TestUtils.GetTestConfiguration(false)) {GridName =
> "grid2"}))
> {
> var cache1 = grid1.CreateCache<int,
> int>("cache").WithKeepBinary<int, IBinaryObject>();
> var obj1 =
> grid1.GetBinary().GetBuilder("myType").SetField("myField", "val").Build();
> cache1[1] = obj1;
> var cache2 = grid2.GetCache<int,
> int>("cache").WithKeepBinary<int, IBinaryObject>();
> var obj2 = cache2[1];
> var val = obj2.GetField<string>("myField");
> var obj2Ex =
> grid2.GetBinary().GetBuilder(obj2).SetField("myField", val +
> "_modified").Build();
> cache2[2] = obj2Ex;
> }
> }
> {code}
> Workaround is to register the type by name on start:
> {code}
> BinaryConfiguration = new BinaryConfiguration
> {
> Types = new[] {"myType"}
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)