[
https://issues.jboss.org/browse/TEIID-5143?page=com.atlassian.jira.plugin...
]
Jan Stastny commented on TEIID-5143:
------------------------------------
I don't follow.
* I use ProtoFilePath, when I have a file physically present on the Teiid instance. Then I
set only the ProtoFilePath property.
* When I want to reuse the same proto-schema, but I don't have the file, I can use
ProtobufName property. Though currently it has to be exactly the same value as the
original ProtoFilePath property before.
Thus I end up using a ProtobufName with value like
/a/path/to/protobuf/somewhere/when/it/was/registered/file.proto ?
After I restart the JDG instance and the proto-schema needs to be re-registered, I have to
have the file at the exactly same place, if I don't want to break my other vdbs.
Infinispan hotrod translator proto-schema registered as
ProtoFilePath
---------------------------------------------------------------------
Key: TEIID-5143
URL:
https://issues.jboss.org/browse/TEIID-5143
Project: Teiid
Issue Type: Bug
Components: JDG Connector, Misc. Connectors
Affects Versions: 8.12.x-6.4
Reporter: Jan Stastny
Assignee: Ramesh Reddy
When using an existing protobuf file to configure source metadata and providing full path
via ProtoFilePath, there are issues with how the proto-schema is being registered in JDG.
When using ProtoFilePath, the proto-schema is being registered under the exact value of
this property. This is unexpected and source of many issues. Rather the proto-schema
should be registered under the package context.
This leads to a situation, when using the same file on various machines, or when the file
is moved, then the proto-schema is being registered twice with different keys in JDG
proto-schema cache, this leads to an exception on JDG's side and non-deployed VDB.
I expect the ProtobufName to be a complementary to ProtoFilePath:
# I register a proto-schema using ProtoFilePath property
# I use that schema in different VDB using ProtobufName property
Then the ProtobufName used in second case needs to contain exactly the same value as
ProtoFilePath in the first case. This is hard to understand.
Could the change be to:
# Set both ProtoFilePath and ProtobufName properties (ProtobufName is our logical
descriptor) when a user want to register new protobuf file. This way the contents of a
file denoted by ProtoFilePath is registered in JDG under ProtobufName key.
# Using only ProtobufName when an already registered proto-schema is to be used.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)