Hi, Chavdar,

Thanks for your patience with us.  We have managed to implement a 
simple fix to the problem you've reported.  As you correctly pointed 
out FastBit is maintaining a read-only file map in the mask file while 
it is trying to open the same file for writing.  Guess on linux 
machines a new file is created, while on windows it refuses to open 
the file for writing.

Please give the code from SVN repository a try when you get the chance.

Regarding there other question on how to tell other processes that one 
of them have changed the some data files such as the mask file, there 
is not code in FastBit that currently support this.  However, the 
ibis::part object does keep a time stamp internally, which could be 
used to check the freshness of the metadata files.  I could implement 
a function, say ibis::part::updateData, to check the time stamps on 
the two meta data files, -part.txt and -part.msk.  Additionally, we 
could also add a function, say ibis::util::updateDatasets to perform 
similar check for all data sets under the control of FastBit.  Would 
these functions fit what you need?

John


On 11/16/2010 12:37 PM, Chavdar Kopoev wrote:
> Hello,
>
> Downloaded latest FastBit. Compiled it under Ubuntu 10.04 and Windows
> 7 using Visual Studio Express 2010 (32bit).
> I made test partition with 20M rows. Everything runs fine so far with
> adding and querying test partition.
> I experience following problem trying to use ibis.exe program or
> directly use ibis::part::deactivate() function.
>
> O:\FastBitTest\Run>ibis.exe -d test -y book_id=40
> doDeletion -- deactivate(test, book_id=40) returned 284830
>
> O:\FastBitTest\Run>ibis.exe -d test -y book_id=41
> Warning ** ibis.exe received a string exception
> bitvector::write failed to open file
>
> The fault happens when -part.msk file exists. If I delete it the next
> operation is successful.
> Same test scenario runs excellent in Ubuntu.
>
> I am attaching verbose 20 log file.
> There can be seen a message saying:
> "Warning -- bitvector::write failed to open "test\-part.msk" to write
> the bit vector ... Permission denied"
>
> Any help will be much appreciated.
>
> Regards,
> Chavdar Kopoev
>
>
>
> _______________________________________________
> FastBit-users mailing list
> [email protected]
> https://hpcrdm.lbl.gov/cgi-bin/mailman/listinfo/fastbit-users
_______________________________________________
FastBit-users mailing list
[email protected]
https://hpcrdm.lbl.gov/cgi-bin/mailman/listinfo/fastbit-users

Reply via email to