Comments (5)
The latest improvement follows the following logic to avoid listener register/unregister per tuple submission:
- when
ObjectStorageSink
has output port the closing logic is always synchronous, the object closed from the operator thread with no listener involvement. - when
ObjectStorageSink
has no output port the closing logic is always async, i.e. the entry corresponding to the object simply removed from cache (EHCache). As a resultREMOVED
notification has been triggered and asynchronously processed by the relevant listener subscribed onREMOVED
event.
from streamsx.objectstorage.
Final marker needs to be hold until all threads have uploaded the object and submitted the output tuple.
from streamsx.objectstorage.
The following logic is implemented:
- using
OSRegistry.closeAllImmediatly
method for FINAL and WINDOW marker with output port. The method is blocking method. It waits for all active objects to be uploaded and committed to COS. The only case whenOSRegistry.closeAll
async method used is for WINDOW marker with no output port as it doesn't require object metadata to be extracted from COS. OSRegistry.closeAllImmediatly
has been modified to clean cache without remove notification triggering to avoid double notification.
from streamsx.objectstorage.
OSRegistry.closeAllImmediatly
can not be used for window/final marker if output port is present since it does not trigger remove(cacheKey)
Hence the output tuple is not sent.
from streamsx.objectstorage.
Good point Mark. Please see an update on the previous comment.
from streamsx.objectstorage.
Related Issues (20)
- Globalization: Provide fallback message
- Vulnerability found in org.codehaus.jackson:jackson-mapper-asl HOT 1
- Globalization support - add/update messages
- Globalization (it_IT): apostrophes are uncorrectly doubled in some messages HOT 1
- Vulnerable jar found: jackson-databind-2.6.7.1.jar HOT 1
- Vulnerable jar found: jackson-databind-2.9.10.4.jar
- vulnerability (177835) in Apache commons codec
- Toolkit uses a vulnerable version of log4j. HOT 2
- Toolkit uses vulnerable versions of third-party jars
- Update httpclient to 4.5.13 to resolve potential security vulnerability
- Upgrade to Hadoop 2.10.1 to resolve potential security vulnerability
- Sample applications: Prepare Makefiles for CP4D buildservice (build with VsCode)
- Potential security vulnerability in junit.jar HOT 1
- Potential security vulnerability in jackson-dataformat-cbor HOT 2
- Update guava jar to fix a potential security vulnerability HOT 1
- `S3ObjectStorageSink` parameter `skipPartitionAttributes` does not remove partition attributes HOT 2
- Upgrade commons-io to resolve potential security vulnerability
- cffi version mismatch under IBM Cloud Pak for Data HOT 1
- Update ibm-cos-java-sdk-bundle
- Objects remain opened after timePerObject expires
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 streamsx.objectstorage.