Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 2.3 KB

README.md

File metadata and controls

40 lines (26 loc) · 2.3 KB

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).