Coder Social home page Coder Social logo

Comments (5)

apyasic avatar apyasic commented on June 15, 2024 1

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 result REMOVED notification has been triggered and asynchronously processed by the relevant listener subscribed on REMOVED event.

from streamsx.objectstorage.

markheger avatar markheger commented on June 15, 2024

Final marker needs to be hold until all threads have uploaded the object and submitted the output tuple.

from streamsx.objectstorage.

apyasic avatar apyasic commented on June 15, 2024

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 when OSRegistry.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.

markheger avatar markheger commented on June 15, 2024

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.

apyasic avatar apyasic commented on June 15, 2024

Good point Mark. Please see an update on the previous comment.

from streamsx.objectstorage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.