Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Querying while using ledger in-memory throws "org.apache.avro.AvroRuntimeException: Malformed data. Length is negative: -46" #148

Open
filipesilva opened this issue Mar 29, 2022 · 0 comments

Comments

@filipesilva
Copy link

I see this while using com/[email protected] with fluree/[email protected], setting the following env variables on the docker image:

    environment:
      - FDB_CONSENSUS_TYPE=in-memory
      - FDB_STORAGE_TYPE=memory

Attempting to query over data in this ledger will return

Running this test with the test runner will hang forever after the tests finish:

#error {
 :cause Malformed data. Length is negative: -46
 :via
 [{:type org.apache.avro.AvroRuntimeException
   :message Malformed data. Length is negative: -46
   :at [org.apache.avro.io.BinaryDecoder readString BinaryDecoder.java 308]}]
 :trace
 [[org.apache.avro.io.BinaryDecoder readString BinaryDecoder.java 308]
  [org.apache.avro.io.BinaryDecoder readString BinaryDecoder.java 322]
  [org.apache.avro.io.ResolvingDecoder readString ResolvingDecoder.java 219]
  [abracad.avro.ClojureDatumReader readString ClojureDatumReader.java 84]
  [org.apache.avro.generic.GenericDatumReader readWithoutConversion GenericDatumReader.java 192]
  [org.apache.avro.generic.GenericDatumReader read GenericDatumReader.java 161]
...

I created a repro in https://github.com/filipesilva/fluree-in-memory-error that you can use by following these steps:

git clone https://github.com/filipesilva/fluree-in-memory-error
cd fluree-test-hang
docker-compose up -d fluree
clojure -X:test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant