Chronicle-Queue icon indicating copy to clipboard operation
Chronicle-Queue copied to clipboard

LastAppendedTest fails when -DdisableProxyCodegen=true

Open JerryShea opened this issue 4 years ago • 9 comments

JerryShea avatar Aug 01 '21 22:08 JerryShea

Also some tests in ChronicleReaderTest

nicktindall avatar Aug 06 '21 06:08 nicktindall

still fails with the latest code with the following: image

RobAustin avatar May 06 '22 14:05 RobAustin

see also this test - net.openhft.chronicle.wire.method.MethodWriterProxyTest

which is ignored:

image

RobAustin avatar May 06 '22 14:05 RobAustin

I suggest we remove disableProxyGen as it is broken anyway, it was added in 2020

image

RobAustin avatar May 06 '22 14:05 RobAustin

I see no reason to keep this property, +1 for removal.

P. S. It's enabled in Chronicle-Queue-Demo\order-processor\pom.xml - we should check if removal will impact the demo.

glukos avatar May 06 '22 15:05 glukos

@glukos I have seen method reader/writer code generation not working when running with mvn:exec. I assume that is why that property is set in chronicle-queue-demo. There are other examples (e.g. chronicle-services benchmarks) where we commit the generated code to git to work around this.

Good news: I just tried removing that property from chronicle-queue-demo and ran the examples with mvn:exec and there were no problems.

I tried to run one of the chronicle services benchmarks without pre-generated code and it failed - but it worked once I bumped chronicle-core version in chronicle-bom (to bring in @alamar 's fix to core: https://github.com/OpenHFT/Chronicle-Core/pull/388). See also https://github.com/ChronicleEnterprise/Chronicle-Services/pull/326)

JerryShea avatar May 07 '22 05:05 JerryShea

This is a very complicated area and we have some cleanup to do. As the concerns are in Wire, please see https://github.com/OpenHFT/Chronicle-Wire/issues/460

JerryShea avatar May 08 '22 10:05 JerryShea

We can't just remove disableProxyCodeGen - we still need to support proxy method readers/writers - see https://github.com/OpenHFT/Chronicle-Wire/pull/473.

We could fix proxy method readers/writers for this test, but I can't see the cost/benefit as they are legacy and with the above PR, generated method readers/writers support everything they need to.

I'll mark this issue as low priority and we can close once proxy method readers/writers are gone (or we can close now with wontfix now)

JerryShea avatar May 13 '22 22:05 JerryShea

Closing as we are not going to fix gaps in proxy method writers

JerryShea avatar Nov 01 '22 02:11 JerryShea