Github user geomacy commented on a diff in the pull request:

    https://github.com/apache/brooklyn-server/pull/645#discussion_r113671948
  
    --- Diff: 
core/src/test/java/org/apache/brooklyn/core/mgmt/persist/ListeningObjectStore.java
 ---
    @@ -209,6 +213,20 @@ public void put(String val) {
                 delegate.put(val);
             }
             @Override
    +        public void put(ByteSource val) {
    +            if (writesFailSilently)
    +                return;
    +
    +            for (ObjectStoreTransactionListener listener: listeners) {
    +                try {
    +                    listener.recordDataOut("writing (binary) "+path, 
Streams.readFullyAndClose(val.openStream()).length);
    --- End diff --
    
    Is it really worth the extra read and close just to be able to write the 
length here?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to