Skip to content

GEOWAVE-1812: updated major dependencies to current versions#1813

Merged
rfecher merged 6 commits intomasterfrom
feature/version-updates-rebase
Jun 1, 2021
Merged

GEOWAVE-1812: updated major dependencies to current versions#1813
rfecher merged 6 commits intomasterfrom
feature/version-updates-rebase

Conversation

@rfecher
Copy link
Copy Markdown
Contributor

@rfecher rfecher commented May 28, 2021

No description provided.

@rfecher rfecher requested a review from jdgarrett May 28, 2021 16:27
@rfecher rfecher force-pushed the feature/version-updates-rebase branch from 1d1afd7 to 42861a5 Compare May 28, 2021 16:34
file = "win-x64-gdal204.zip";
url = new URL(gdalEnv + "/windows/MSVC2017/" + file);
} else if (isMac()) {
file = "gdal-1.9.2_macOSX.zip";
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't the mac version also be updated?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it may be best to stick with homebrew on the mac, although I spent awhile making sure this worked at least under windows (for ease with our standalone installer) and ubuntu 20.04 (for CI tests), although I don't think it works across the board on linux even. I don't have any options for testing on a mac so I'd not be the best person to try to get it working for mac osx. The older version seemed very specific with an older GDAL install which really pushed us toward integrating the install with our CLI for ease of use, but this should be good for GDAL 2.2+ (any recent version) so at some point we could just decide to ditch the install gdal CLI. Also, technically, GeoTools actually picks up on the older GDAL version, but our tests don't pass with some method not found exceptions (so its probably not very functional, might work for some things though for GeoTools to even attempt to use it?).

}

@Override
public void close() {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If AccumuloOperations nees to be closeable, we may need to propagate that to the base DataStoreOperations interface so that we don't leak resources when using the operations from within GeoWave. Unless this is being handled in some other way that I'm not seeing?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its similar to how RocksDB works, the DataStore is closeable as well and additionally we do call it from GeoTools' DataStore's dispose() method. In both cases we use a static cache for connections so there is no sense in opening and closing anything on a per instance basis, just at the end of the JVMs usage (but when the JVM exits I'd bet resources are released as well)

// nothing to do
}

public static void main(final String[] args) throws Exception {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like left over test code that should probably be removed.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch

"""
return self._base_options.getReplicationFactor()

def set_gc_grace_seconds(self, gc_grace_seconds):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These gc_grace_seconds methods aren't being covered in the test.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch

public static void startTimer() {

// GDAL version >= 2.3.0
System.loadLibrary("gdalalljni");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am curious as to why gdal needs to be explicitly loaded here. Does that mean that third party developers need to explicitly load gdal when using those capabilities within GeoWave?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope, another left-over from fighting the tests, I'll delete

@rfecher rfecher merged commit db89d96 into master Jun 1, 2021
@rfecher rfecher deleted the feature/version-updates-rebase branch June 1, 2021 20:21
@rfecher rfecher mentioned this pull request Jun 1, 2021
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