You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Lars Heinemann (JIRA)" <ji...@apache.org> on 2009/07/17 11:49:14 UTC

[jira] Created: (FELIX-1377) filemonitor tries to process files which are not fully copied yet

filemonitor tries to process files which are not fully copied yet 
------------------------------------------------------------------

                 Key: FELIX-1377
                 URL: https://issues.apache.org/jira/browse/FELIX-1377
             Project: Felix
          Issue Type: Bug
          Components: Karaf
    Affects Versions: karaf-1.0.0
            Reporter: Lars Heinemann
         Attachments: Karaf.FileMonitor.java.patch

The file monitor tries to deploy files which are not fully copied yet and throw an IOException trying this. Afterwards this file is not processed again until it somehow changes or is copied again.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (FELIX-1377) fileinstall tries to process files which are not fully copied yet

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1377?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet resolved FELIX-1377.
------------------------------------

       Resolution: Fixed
    Fix Version/s: fileinstall-1.4.0

URL: http://svn.apache.org/viewvc?rev=809470&view=rev


> fileinstall tries to process files which are not fully copied yet 
> ------------------------------------------------------------------
>
>                 Key: FELIX-1377
>                 URL: https://issues.apache.org/jira/browse/FELIX-1377
>             Project: Felix
>          Issue Type: Bug
>          Components: File Install, Karaf
>    Affects Versions: karaf-1.0.0
>            Reporter: Lars Heinemann
>            Assignee: Guillaume Nodet
>             Fix For: fileinstall-1.4.0
>
>         Attachments: Karaf.FileMonitor.java.patch
>
>
> The file monitor tries to deploy files which are not fully copied yet and throw an IOException trying this. Afterwards this file is not processed again until it somehow changes or is copied again.
> This issue is related to:
> https://issues.apache.org/activemq/browse/SMX4-322

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (FELIX-1377) fileinstall tries to process files which are not fully copied yet

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1377?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet reassigned FELIX-1377:
--------------------------------------

    Assignee: Guillaume Nodet

> fileinstall tries to process files which are not fully copied yet 
> ------------------------------------------------------------------
>
>                 Key: FELIX-1377
>                 URL: https://issues.apache.org/jira/browse/FELIX-1377
>             Project: Felix
>          Issue Type: Bug
>          Components: File Install, Karaf
>    Affects Versions: karaf-1.0.0
>            Reporter: Lars Heinemann
>            Assignee: Guillaume Nodet
>         Attachments: Karaf.FileMonitor.java.patch
>
>
> The file monitor tries to deploy files which are not fully copied yet and throw an IOException trying this. Afterwards this file is not processed again until it somehow changes or is copied again.
> This issue is related to:
> https://issues.apache.org/activemq/browse/SMX4-322

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (FELIX-1377) fileinstall tries to process files which are not fully copied yet

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1377?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet closed FELIX-1377.
----------------------------------


> fileinstall tries to process files which are not fully copied yet 
> ------------------------------------------------------------------
>
>                 Key: FELIX-1377
>                 URL: https://issues.apache.org/jira/browse/FELIX-1377
>             Project: Felix
>          Issue Type: Bug
>          Components: File Install, Karaf
>    Affects Versions: karaf-1.0.0
>            Reporter: Lars Heinemann
>            Assignee: Guillaume Nodet
>             Fix For: fileinstall-2.0.0
>
>         Attachments: Karaf.FileMonitor.java.patch
>
>
> The file monitor tries to deploy files which are not fully copied yet and throw an IOException trying this. Afterwards this file is not processed again until it somehow changes or is copied again.
> This issue is related to:
> https://issues.apache.org/activemq/browse/SMX4-322

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (FELIX-1377) filemonitor tries to process files which are not fully copied yet

Posted by "Lars Heinemann (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1377?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lars Heinemann updated FELIX-1377:
----------------------------------

    Description: 
The file monitor tries to deploy files which are not fully copied yet and throw an IOException trying this. Afterwards this file is not processed again until it somehow changes or is copied again.

This issue is related to:
https://issues.apache.org/activemq/browse/SMX4-322

  was:
The file monitor tries to deploy files which are not fully copied yet and throw an IOException trying this. Afterwards this file is not processed again until it somehow changes or is copied again.



> filemonitor tries to process files which are not fully copied yet 
> ------------------------------------------------------------------
>
>                 Key: FELIX-1377
>                 URL: https://issues.apache.org/jira/browse/FELIX-1377
>             Project: Felix
>          Issue Type: Bug
>          Components: Karaf
>    Affects Versions: karaf-1.0.0
>            Reporter: Lars Heinemann
>         Attachments: Karaf.FileMonitor.java.patch
>
>
> The file monitor tries to deploy files which are not fully copied yet and throw an IOException trying this. Afterwards this file is not processed again until it somehow changes or is copied again.
> This issue is related to:
> https://issues.apache.org/activemq/browse/SMX4-322

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (FELIX-1377) filemonitor tries to process files which are not fully copied yet

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-1377?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12742396#action_12742396 ] 

Guillaume Nodet commented on FELIX-1377:
----------------------------------------

I've included this patch in the patch to FELIX-922 fwiw.

> filemonitor tries to process files which are not fully copied yet 
> ------------------------------------------------------------------
>
>                 Key: FELIX-1377
>                 URL: https://issues.apache.org/jira/browse/FELIX-1377
>             Project: Felix
>          Issue Type: Bug
>          Components: Karaf
>    Affects Versions: karaf-1.0.0
>            Reporter: Lars Heinemann
>         Attachments: Karaf.FileMonitor.java.patch
>
>
> The file monitor tries to deploy files which are not fully copied yet and throw an IOException trying this. Afterwards this file is not processed again until it somehow changes or is copied again.
> This issue is related to:
> https://issues.apache.org/activemq/browse/SMX4-322

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (FELIX-1377) filemonitor tries to process files which are not fully copied yet

Posted by "Lars Heinemann (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1377?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lars Heinemann updated FELIX-1377:
----------------------------------

    Attachment: Karaf.FileMonitor.java.patch

added patch

> filemonitor tries to process files which are not fully copied yet 
> ------------------------------------------------------------------
>
>                 Key: FELIX-1377
>                 URL: https://issues.apache.org/jira/browse/FELIX-1377
>             Project: Felix
>          Issue Type: Bug
>          Components: Karaf
>    Affects Versions: karaf-1.0.0
>            Reporter: Lars Heinemann
>         Attachments: Karaf.FileMonitor.java.patch
>
>
> The file monitor tries to deploy files which are not fully copied yet and throw an IOException trying this. Afterwards this file is not processed again until it somehow changes or is copied again.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (FELIX-1377) fileinstall tries to process files which are not fully copied yet

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1377?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet updated FELIX-1377:
-----------------------------------

    Component/s: File Install
        Summary: fileinstall tries to process files which are not fully copied yet   (was: filemonitor tries to process files which are not fully copied yet )

Moving this issue to fileinstall as we're trying to merge both.

The problem with the proposed solution is that it does not scale to many bundles, as the thread would be blocked 100 ms * number of bundles.

In the latest patch I've attached to FELIX-922, I've rewritten the logic to use a checksum for the file computed from its name, length and last modification date.
If the checksum changes, the Scanner will wait until it does not change anymore, allowing for very big copy to take place and not report the changes until the copy is finished.

> fileinstall tries to process files which are not fully copied yet 
> ------------------------------------------------------------------
>
>                 Key: FELIX-1377
>                 URL: https://issues.apache.org/jira/browse/FELIX-1377
>             Project: Felix
>          Issue Type: Bug
>          Components: File Install, Karaf
>    Affects Versions: karaf-1.0.0
>            Reporter: Lars Heinemann
>         Attachments: Karaf.FileMonitor.java.patch
>
>
> The file monitor tries to deploy files which are not fully copied yet and throw an IOException trying this. Afterwards this file is not processed again until it somehow changes or is copied again.
> This issue is related to:
> https://issues.apache.org/activemq/browse/SMX4-322

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.