Skip to content

Simple setup to test netcdf4 file creation. File writting invovles chunking by default and the test are successful with package library involving netcdf-c < 4.9.0

Notifications You must be signed in to change notification settings

charlycou/netcdf4-java-chunking-issue

Repository files navigation

NetCDF-Java Issue Reproducer

This project serves as a reproducible example to illustrate an issue encountered in the NetCDF-Java library. The code is designed to simplify replication of the problem, providing all necessary details for maintainers and contributors to analyze and resolve the issue effectively.

Project Details

  • Languages: Java
  • Java SDK Version: 22
  • Primary Library in Focus: NetCDF-Java
  • Additional Dependency: NetCDF-C (OS-level library)
  • Objective: To clearly demonstrate the issue in the NetCDF-Java library when using the NetCDF-C 4.9.0 library or later. Packages tested to reproduces the issue libnetcdf18(working) and libnetcdf19(not working

Prerequisites

  1. Java SDK 22
  2. Apache Maven (or your preferred build tool)
  3. NetCDF-C (version 4.7.4 or later): Make sure this library is installed at the operating system level.

Reproduce the issue

  1. Clone this repository:

  2. Install the netcdf-c dependency. Packages tested to reproduces the issue libnetcdf18(working) and libnetcdf19(not working)

  3. Build the project using Maven:

    mvn clean install
  4. Run the test from netcdf-creation module

Issue Description

This project is configured to reproduce a specific issue where tests fail in the NetCDF-Java library starting from netcdf-c version 4.9.0. The tests succeed when using netcdf-c version 4.8.1 or earlier.

  • Problem Statement: When the NetCDF-C native library version 4.9.0 or later is installed, the NetCDF-Java library exhibits unexpected failures during specific operations. This issue does not occur with version 4.7.4.
  • Expected Behavior: The tests should pass regardless of the NetCDF-C library version.
  • Actual Behavior: The tests fail when using NetCDF-C version 4.9.0 or later.

The failure details and logs are included in the application's test output. Please review the associated GitHub issue for more details (link to the issue can be added if it has already been submitted).

About

Simple setup to test netcdf4 file creation. File writting invovles chunking by default and the test are successful with package library involving netcdf-c < 4.9.0

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages