[
https://issues.apache.org/jira/browse/IGNITE-16244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17476904#comment-17476904
]
Valentin Kulichenko commented on IGNITE-16244:
----------------------------------------------
After updates, examples fail with a deserialization error in the client
protocol. To reproduce:
# Build from branch {{{}ignite-16244{}}}: {{mvn clean install -DskipTests
-Dcheckstyle.skip}}
# Unzip {{target/apache-ignite-3.0.0-SNAPSHOT.zip}} and switch to the folder.
# Run {{./ignite init}}
# Start a node: {{./ignite node start
--config=examples/config/ignite-config.json my-first-node}}
# Open the {{target/apache-ignite-3.0.0-SNAPSHOT/examples}} project in an IDE.
# Run any of the examples under {{table}} or {{tx}} package.
# Observe the exception shown below.
{noformat}
Exception in thread "main" class
org.apache.ignite.client.IgniteClientException: class
org.apache.ignite.lang.IgniteException: Failed to deserialize server response:
Expected Ext, but got Nil (c0)
at
org.apache.ignite.internal.client.ReliableChannel.lambda$handleServiceAsync$3(ReliableChannel.java:229)
at
java.base/java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:930)
at
java.base/java.util.concurrent.CompletableFuture$UniHandle.tryFire(CompletableFuture.java:907)
at
java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
at
java.base/java.util.concurrent.CompletableFuture.postFire(CompletableFuture.java:610)
at
java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:649)
at
java.base/java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:479)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
at
java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
at
java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
at
java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
Caused by: java.util.concurrent.CompletionException: class
org.apache.ignite.lang.IgniteException: Failed to deserialize server response:
Expected Ext, but got Nil (c0)
at
java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
at
java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319)
at
java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:645)
... 6 more
Caused by: class org.apache.ignite.lang.IgniteException: Failed to deserialize
server response: Expected Ext, but got Nil (c0)
at
org.apache.ignite.internal.client.TcpClientChannel.lambda$receiveAsync$1(TcpClientChannel.java:215)
at
java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:642)
... 6 more
Caused by: org.msgpack.core.MessageTypeException: Expected Ext, but got Nil (c0)
at
org.apache.ignite.internal.client.proto.ClientMessageUnpacker.unexpected(ClientMessageUnpacker.java:108)
at
org.apache.ignite.internal.client.proto.ClientMessageUnpacker.unpackExtensionTypeHeader(ClientMessageUnpacker.java:498)
at
org.apache.ignite.internal.client.proto.ClientMessageUnpacker.unpackIgniteUuid(ClientMessageUnpacker.java:753)
at
org.apache.ignite.internal.client.table.ClientTables.lambda$tableAsync$3(ClientTables.java:126)
at
org.apache.ignite.internal.client.TcpClientChannel.lambda$receiveAsync$1(TcpClientChannel.java:213)
... 7 more {noformat}
> Update examples for Ignite 3
> ----------------------------
>
> Key: IGNITE-16244
> URL: https://issues.apache.org/jira/browse/IGNITE-16244
> Project: Ignite
> Issue Type: Improvement
> Components: examples
> Affects Versions: 3.0.0-alpha3
> Reporter: Valentin Kulichenko
> Assignee: Valentin Kulichenko
> Priority: Major
> Labels: ignite-3
> Fix For: 3.0.0-alpha4
>
>
> With the current advancements in Ignite 3 functionality, examples look
> outdated and should be updated.
> The following changes should be made:
> # Use DDL instead of the convoluted {{createTable}} API to create tables.
> # Add examples for POJO-based views (we can use the existing
> {{RecordViewExample}} and {{KeyValueViewExample}} as a basis).
> # Add transactional API example(s).
--
This message was sent by Atlassian Jira
(v8.20.1#820001)