Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

java-datastore: LocalDatastoreHelper is downloading datastore emulator zip every time even when file exists

Open Beginner friendly
#12,058 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
65/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Quiet
Tech stack
java
Domain
databases

Research direction

Start in java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/testing/LocalDatastoreHelper.java, then compare the checksum passed to BaseEmulatorHelper.java with the documented MD5. Done means the checksum matches 7c1f5a3276241a8f78cb1a837daaaa47 and an existing emulator zip is not downloaded again.

Written by the indexing model from the issue text.

Description

api: datastore priority: p3 type: bug

When the LocalDatastoreHelper is started with .start() API it is downloading a 36mb zip file from http://storage.googleapis.com/gcd/tools/cloud-datastore-emulator-2.3.1.zip every time even if file already exist locally.

This is due to checksum mismatch at:

https://github.com/googleapis/sdk-platform-java/blob/56aa3438393e1992bb8f688291fb12030ec9bc0e/java-core/google-cloud-core/src/main/java/com/google/cloud/testing/BaseEmulatorHelper.java#L465-L479

The checksum value that LocalDatastoreHelper is passing down is not correct:

https://github.com/googleapis/google-cloud-java/blob/aa2c24982903071ab0408fac4357fb8dd067a3fa/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/testing/LocalDatastoreHelper.java#L68

The actual file checksum is 7c1f5a3276241a8f78cb1a837daaaa47:

> curl http://storage.googleapis.com/gcd/tools/cloud-datastore-emulator-2.3.1.
zip | md5sum
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 36.1M  100 36.1M    0     0  8831k      0  0:00:04  0:00:04 --:--:-- 8833k
7c1f5a3276241a8f78cb1a837daaaa47  -
Dominant language
Java
Stars
2.1k
Forks
1.2k
Avg merge
2d 3h
Merged PRs (30d)
151

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from googleapis/google-cloud-java

All issues in googleapis/google-cloud-java

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.