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

Cleanup a number of issues. #2763

Merged
merged 3 commits into from
Oct 27, 2023
Merged

Conversation

DennisHeimbigner
Copy link
Collaborator

re: Issue #2748

This PR fixes a number of issues and bugs.

s3cleanup fixes

  • Delete extraneous s3cleanup.sh related files.
  • Remove duplicate s3cleanup.uids entries.

Support the Google S3 API

  • Add code to recognize "storage.gooleapis.com"
  • Add extra code to track the kind of server being accessed: unknown, Amazon, Google.
  • Add a new mode flag "gs3" (analog to "s3") to support this api.
  • Modify the S3 URL code to support this case.
  • Modify the listobjects result parsing because Google returns some non-standard XML elements.
  • Change signature and calls for NC_s3urlrebuild.

Handle another case of corrupt Zarr files.

Here the corruption takes the form of a "shape" key that is empty for a variable. Modify behavior when a variable's "shape" dictionary entry is empty. Previously it returned an error, but now it suppresses such a variable. This change makes it possible to read non-corrupt data from the file. Also added a test case.

Misc. Other Changes

  • Fix the nclog level handling to suppress output by default.
  • Fix de-duplicates code in ncuri.c
  • Restore testing of iridl.ldeo.columbia.edu.
  • Fix bug in define_vars() which did not always do a proper reclaim between variables.

re: Issue Unidata#2748

This PR fixes a number of issues and bugs.

## s3cleanup fixes
* Delete extraneous s3cleanup.sh related files.
* Remove duplicate s3cleanup.uids entries.

## Support the Google S3 API
* Add code to recognize "storage.gooleapis.com"
* Add extra code to track the kind of server being accessed: unknown, Amazon, Google.
* Add a new mode flag "gs3" (analog to "s3") to support this api.
* Modify the S3 URL code to support this case.
* Modify the listobjects result parsing because Google returns some non-standard XML elements.
* Change signature and calls for NC_s3urlrebuild.

## Handle corrupt Zarr files where shape is empty for a variable.
Modify behavior when a variable's "shape" dictionary entry.
Previously it returned an error, but now it suppresses such a variable.
This change makes it possible to read non-corrupt data from the file.
Also added a test case.

## Misc. Other Changes
* Fix the nclog level handling to suppress output by default.
* Fix de-duplicates code in ncuri.c
* Restore testing of iridl.ldeo.columbia.edu.
* Fix bug in define_vars() which did not always do a proper reclaim between variables.
@WardF WardF merged commit 329c4c9 into Unidata:main Oct 27, 2023
99 checks passed
@DennisHeimbigner DennisHeimbigner deleted the noshape.dmh branch October 27, 2023 20:22
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

Successfully merging this pull request may close these issues.

2 participants