Comments (2)
This is due to the current streaming implementation. I think we could change the logic so that we first buffer a set of features before commiting to writing 200 OK (e.g. change BufferedResultSet to eagerly fetch the first batch of features, not lazily during first call to hasNext()
so that we fail before any bytes are written to the OutputStream provided to us by the JAX-RS impl). That might do the trick depending on how the JAX-RS implementation acts. Otherwise it's bit larger change to the logic: we'd have to buffer the serialization phase by trying to write first n bytes to memory before returning Response.ok() to the JAX-RS implementation. Still doable though.
from hakunapi.
The error might occur when writing nth feature so it's difficult to determine the right amount of buffering. One megabyte might solve most problems but not all.
Also the highlighted issue might not be something hakunapi even aims to support (handling changes in sources after startup). Obviously it might be difficult to recognize these sorts of errors if service monitoring is configured to just check the status code. Not sure what would be correct move here.
from hakunapi.
Related Issues (20)
- Change all occurrances of "Powered by hakuna" into ...hakunapi
- Support for containerized deployment and cloud service hosting HOT 6
- Axis order of response coordinates does not follow the requested CRS axis order HOT 4
- date-time type parameters accept UTC timestamps only HOT 6
- Allow source modules to perform CRS transformations
- Fix the name of the link: describedBy -> describedby
- Fix Open API document generated by Hakunapi and used by demo service HOT 4
- Support for publishing programmable application schemas of feature objects and codelists provided by OGC API Features service HOT 1
- Coordinate reference systems that differ only by axis order do not work HOT 2
- Ensure bbox queries work correctly when bbox spanning the antimeridian
- source-postgis: Add support for Unix Domain Sockets
- Feature request: Add a generic configurable usage monitor/telemetry for operations GetCollectionItems, GetCollectionItemById
- Add support for Link headers
- Support for GeoPackage data source with documentation and sample code
- Support for Tomcat 10 and Jakarta HOT 2
- Support for Oracle data store
- Add option to configure HTML template external dependencies HOT 1
- Support for PostgreSQL uuid arrays
- HTML output format minor bugs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hakunapi.