[Red Hat JIRA] (ISPN-12588) [Server] '-s' startup option is ignored by commons.sh script
by Tristan Tarrant (Jira)
[ https://issues.redhat.com/browse/ISPN-12588?page=com.atlassian.jira.plugi... ]
Tristan Tarrant updated ISPN-12588:
-----------------------------------
Status: Open (was: New)
> [Server] '-s' startup option is ignored by commons.sh script
> ------------------------------------------------------------
>
> Key: ISPN-12588
> URL: https://issues.redhat.com/browse/ISPN-12588
> Project: Infinispan
> Issue Type: Bug
> Components: Server
> Affects Versions: 12.0.0.Dev07, 11.0.8.Final
> Reporter: Pavel Drobek
> Assignee: Tristan Tarrant
> Priority: Minor
>
> If user starts with server with `-s` flag then the option is ignored by `commons.sh` script. As a result default GC logging is still done in the default server directory:
> {code}
> [pdrobek@localhost redhat-datagrid-8.1.1-server]$ ./bin/server.sh -s ~/tmp/servertest/
> 15:11:53,892 INFO (main) [BOOT] JVM OpenJDK 64-Bit Server VM Red Hat, Inc. 11.0.9+11
> 15:11:53,900 INFO (main) [BOOT] JVM arguments = [-server, -Xlog:gc*:file=/home/pdrobek/servers/redhat-datagrid-8.1.1-server/server/log/gc.log:time,uptimemillis:filecount=5,filesize=3M, -Xms64m, -Xmx512m, -XX:MetaspaceSize=64M, -Djava.net.preferIPv4Stack=true, -Djava.awt.headless=true, -Dvisualvm.display.name=redhat-datagrid-server, -Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager, -Dinfinispan.server.home.path=/home/pdrobek/servers/redhat-datagrid-8.1.1-server, -classpath, :/home/pdrobek/servers/redhat-datagrid-8.1.1-server/boot/infinispan-server-runtime-11.0.8.Final-redhat-00001-loader.jar, org.infinispan.server.loader.Loader, org.infinispan.server.Bootstrap, -s, /home/pdrobek/tmp/servertest/]
> {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years
[Red Hat JIRA] (IPROTO-120) Null collection fields always unmarshalled as empty collection implementation
by Nistor Adrian (Jira)
[ https://issues.redhat.com/browse/IPROTO-120?page=com.atlassian.jira.plugi... ]
Nistor Adrian updated IPROTO-120:
---------------------------------
Fix Version/s: 4.4.0.Alpha5
(was: 4.4.0.Alpha4)
> Null collection fields always unmarshalled as empty collection implementation
> -----------------------------------------------------------------------------
>
> Key: IPROTO-120
> URL: https://issues.redhat.com/browse/IPROTO-120
> Project: Infinispan ProtoStream
> Issue Type: Bug
> Reporter: Ryan Emerson
> Assignee: Nistor Adrian
> Priority: Major
> Fix For: 4.4.0.Alpha5
>
>
> The following Pojo always returns an empty collection after being unmarshalled, regardless of whether {{stringList}} was null or empty when marshalled.
> {code:java}
> public class SomePojo {
> @ProtoField(number = 1, collectionImplementation = ArrayList.class)
> final List<String> stringList;
> @ProtoFactory
> public SomePojo(List<String> stringList) {
> this.stringList = stringList;
> }
> }
> {code}
> This is because the generated marshaller always creates the collection instance before attempting to read the collection content:
> {code:java}
> java.util.ArrayList __c$1 = new java.util.ArrayList();
> boolean done = false;
> while (!done) {
> final int tag = $2.readTag();
> switch (tag) {
> case 0:
> done = true;
> break;
> case 10: {
> java.lang.String __v$1 = $2.readString();
> __c$1.add(__v$1);
> break;
> }
> default: {
> if (!$2.skipField(tag)) done = true;
> }
> }
> }
>
> return new org.infinispan.query.dsl.embedded.testdomain.hsearch.SomePojo(__c$1);
> {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years
[Red Hat JIRA] (IPROTO-114) Date fields not initialized with @ProtoFactory
by Nistor Adrian (Jira)
[ https://issues.redhat.com/browse/IPROTO-114?page=com.atlassian.jira.plugi... ]
Nistor Adrian updated IPROTO-114:
---------------------------------
Fix Version/s: 4.4.0.Alpha5
(was: 4.4.0.Alpha4)
> Date fields not initialized with @ProtoFactory
> ----------------------------------------------
>
> Key: IPROTO-114
> URL: https://issues.redhat.com/browse/IPROTO-114
> Project: Infinispan ProtoStream
> Issue Type: Bug
> Affects Versions: 4.3.0.Alpha11
> Reporter: Ryan Emerson
> Assignee: Nistor Adrian
> Priority: Major
> Fix For: 4.4.0.Alpha5
>
>
> {code:java}
> public class Reproducer {
> @ProtoField(number = 1)
> final Date date;
> @ProtoFactory
> public Reproducer(Date date) {
> this.date = date;
> }
> }
> {code}
> Results in the following marshaller code which does not compile:
> {code:java}
> @javax.annotation.Generated(value = "org.infinispan.protostream.annotations.impl.processor.AutoProtoSchemaBuilderAnnotationProcessor",
> comments = "Please do not edit this file!")
> @org.infinispan.protostream.annotations.impl.OriginatingClasses({
> "org.infinispan.query.dsl.embedded.testdomain.Reproducer"
> })
> @SuppressWarnings("unchecked")
> public final class Reproducer$___Marshaller_b7bc8e88b59172b5316adfc20e38742eb183ea955e2ff0dbf8d9fc9cd93038b7 extends org.infinispan.protostream.annotations.impl.GeneratedMarshallerBase implements org.infinispan.protostream.RawProtobufMarshaller<org.infinispan.query.dsl.embedded.testdomain.Reproducer> {
> @Override
> public Class<org.infinispan.query.dsl.embedded.testdomain.Reproducer> getJavaClass() { return org.infinispan.query.dsl.embedded.testdomain.Reproducer.class; }
>
> @Override
> public String getTypeName() { return "org.infinispan.test.query.dsl.Reproducer"; }
>
> @Override
> public org.infinispan.query.dsl.embedded.testdomain.Reproducer readFrom(org.infinispan.protostream.ImmutableSerializationContext $1, org.infinispan.protostream.RawProtoStreamReader $2) throws java.io.IOException {
> java.util.Date __v$1;
> boolean done = false;
> while (!done) {
> final int tag = $2.readTag();
> switch (tag) {
> case 0:
> done = true;
> break;
> case 9: {
> __v$1 = new java.util.Date($2.readFixed64());
> break;
> }
> default: {
> if (!$2.skipField(tag)) done = true;
> }
> }
> }
> return new org.infinispan.query.dsl.embedded.testdomain.Reproducer(__v$1);
> }
>
> @Override
> public void writeTo(org.infinispan.protostream.ImmutableSerializationContext $1, org.infinispan.protostream.RawProtoStreamWriter $2, org.infinispan.query.dsl.embedded.testdomain.Reproducer $3) throws java.io.IOException {
> final org.infinispan.query.dsl.embedded.testdomain.Reproducer o = (org.infinispan.query.dsl.embedded.testdomain.Reproducer) $3;
> {
> final java.util.Date __v$1 = o.date;
> if (__v$1 != null) $2.writeFixed64(1, __v$1.getTime());
> }
> }
> }
> {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years