Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Igor Artamonov
    @splix
    it works fine with linux target on Travis, fails only on macOS
    Igor Artamonov
    @splix
    actually the full option is -C target-feature=+crt-static,+sse4.2 so it's crt-static causes this. but I need to build with crt-static
    Igor Artamonov
    @splix
    downgrading to 0.12.2 solved the issue
    Avishai Weingarten
    @AvishaiW
    Hey, can someone help me with this issue: rust-rocksdb/rust-rocksdb#370 ?
    Oleksandr Anyshchenko
    @aleksuss
    @AvishaiW i've replied to you on github.
    Cecile Tonglet
    @cecton

    Hello o/ I have some issue in my program related somehow with rocksdb. I'm using snappy.

    When the process exits too quickly, it gets SIGABRT with the following error:

    pure virtual method called
    terminate called without an active exception

    I looked up online and I found this issue on rocksdb: facebook/rocksdb#1947
    It looks like the problem has not been solved. The author of the issue just downgraded snappy on their project.

    So I checked rocksdb-sys and I saw that it is actually using this version 1.1.4 that might have an issue.

    I suspect this could be related but I have no proof. I tried to test but I have difficulties to isolate the issue. I would like to run the test in rocksdb itself but as I don't know much C++ I actually have no idea on how to run the test with snappy.

    So I'm not sure what to do and I am seeking advice here

    Cecile Tonglet
    @cecton
    Someone else fixed the issue in our code. Apparently it wasn't related at all to this issue but to ThreadPool paritytech/substrate#4929
    Jesse Rusak
    @jder_twitter
    Hi all. I'd like to try and help get rust-rocksdb/rust-rocksdb#250 merged. I was starting by trying to make PRs for some of the separable bits and was starting with improvements to DBPath.
    I noticed that there are a bunch of tests which exist in both src/db.rs and tests/test_db.rs and have diverged slightly. Should we remove them from src/db.rs? (I am pretty new at rust so apologies if this there's something obvious I'm missing.)
    Jesse Rusak
    @jder_twitter
    (I opened a related PR rust-rocksdb/rust-rocksdb#394)
    Oleksandr Anyshchenko
    @aleksuss
    @/all FYI 0.14.0 has been released !
    Maksym Zavershynskyi (nearmax.near)
    @nearmax
    We are paying 150 USD to whoever makes this small improvement to RocksDB: rust-rocksdb/rust-rocksdb#447
    dennis
    @xenophobed
    Hi, I got this error while trying to compile the canvas node: always_inline function '_mm_crc32_u64' requires target feature 'sse4.2', but would be inlined into function 'crc32c_3way' that is compiled without support for 'sse4.2'
    does anyone know how to resolve this? thx in advance
    Roman Zeyde
    @romanz
    Greetings,
    Would it be possible to create a new release please?
    Roman Zeyde
    @romanz

    Greetings,
    Would it be possible to create a new release please?

    Ping :)

    Oleksandr Anyshchenko
    @aleksuss
    @/all FYI 0.16.0 has been released !
    Mehran Kordi
    @MehranKordi_twitter
    Hi, I am trying to set the default logger to stderr but I am having a hard time figuring out how to achieve that. it seems that the C++ implementation allows to set info_log directly on the db options and the Java wrapper provides the same functionality. can this be achieved with the Rust wrapper or should I create an issue for that? Thanks for the fantastic work by the way !
    Timo ⚡️
    @timokoesters:fachschaften.org
    [m]
    Hi, are these bindings stable? Should I build my project with it? Are there projects that already use it?
    I tried it out today and ran into a bug where merge_cf always sets the old_value to None, even if a get_cf gives the right value
    Timo ⚡️
    @timokoesters:fachschaften.org
    [m]
    It looks like prefix_iterator_cf also doesn't work correctly. It returns keys with other prefixes
    aphorisme
    @aphorisme
    Hi there. I'm wondering how cheap/expensive cf_handle<'a>(&'a self, name: &str) -> Option<&'a ColumnFamily> is. My first attempt was to store the handle as a reference, but this keeps the database borrowed. So the next naive approach would be retrieve the handle every time before an operation within that column family. Are there any best practices?
    Timo ⚡️
    @timokoesters:fachschaften.org
    [m]

    but this keeps the database borrowed

    Is that bad?

    aphorisme
    @aphorisme
    Maybe only in my case. I try to organize my backend in the following way:
    Backend<'a> {
         database: rocksdb::DB,
          cf: &'a rocksdb::ColumnFamily
    }
    
    impl<'a> Backend<'a> {
       fn init() -> Self {
          // ...
          let cf = database.cf_handle("my_cf").unwrap();
         Self {
              database,
              cf
        }
    }
    ^ --- sort of pseudo code to carry the idea
    this cannot work then : /
    Timo ⚡️
    @timokoesters:fachschaften.org
    [m]
    Maybe it works better with BoundColumnFamily
    aphorisme
    @aphorisme
    I could clone it then, I guess.
    But I do not understand the impact of it, to be honest, so I'm a bit hestitating.
    Timo ⚡️
    @timokoesters:fachschaften.org
    [m]
    Yeah I also don't know this. I stopped trying to make this db work because of bugs I found, see my messages before you joined
    aphorisme
    @aphorisme
    : /
    sunpeaksfivemile
    @sunpeaksfivemile
    I really need transaction support and was looking at the best way to do it. I was looking through PR 250 and it seems too large to get traction. Is that approach going to get anywhere? I was thinking it would be more practical to just make a new "TransactionDB" and re-implement iterator/get/put/merge/delete/etc. It can mostly reuse the existing iterator code so it doesn't seem to be that bad. Is anyone currently working on transaction support or is there a general strategy in mind?
    Paul Cleary
    @pauljamescleary
    Hello, I am hitting an issue "invalid argument: default: does not match existing comparator leveldb.BytewiseComparator" - I am trying to open a DB that has 2 column families, and I want to implement a custom sort order on one of the column families. The other column family has no custom comparator. Right now I am doing the following
    let mut cf1_opts = Options::default();
    cf1_opts.set_comparator("idx1", ...);
    let cf1 = ColumnFamilyDescriptor::new("idx1", cf1_opts);
    
    let cf2_opts = Options::default();
    let cf2 = ColumnFamilyDescriptor::new("cf2", cf2_opts);
    
    let db = DB::open_cf_descriptors(&opts, path, vec![cf1, cf2]).unwrap();
    Line 2 is where I define my custom comparator
    Timo ⚡️
    @timokoesters:fachschaften.org
    [m]
    Did someone here get merge operators working with cf yet?
    Ben
    @Ben-PH

    I'd just like to confirm if this is a bug with cargo, or rocksdb

    we've cached our build in our CI, but librocksdb-sys still rebuilds. As far as I can tell, it's the rerun-if-changed=rocksdb/ in the build.rs

    to reproduce this, you can have a hello, world! program with rocksdb as a dependency, build it, then touch /path/to/.cargo/registries/librocksdb-sys-$SEMVER/rocksdb (or rm -rf /path/to/.cargo/registry/src) to see the rebuild being triggered.

    Should I open an issue in the rust-rocksdb github repo, or in the Cargo repo?

    Moggele
    @Moggele
    Hello.
    Since the last update of the librocksdb-sys package i have some build problems
    "error: header 'rocksdb/include/rocksdb/c.h' does not exist."
    my be someone can help ?
    Moggele
    @Moggele
    using the https://github.com/rust-rocksdb/rust-rocksdb.git directly in Cargo.toml works may be the package librocksdb-sys = "6.28.2" is broken
    Oleksandr Anyshchenko
    @aleksuss
    Yeah. There was a problem in librocksdb-sys 6.28.2. It was yanked. Now it should compile without errors.
    Oleksandr Anyshchenko
    @aleksuss
    @/all FYI: 0.18.0 has been released.
    Timo ⚡️
    @timokoesters:fachschaften.org
    [m]
    Oh great!
    Derek Leverenz
    @derekleverenz
    is there a way (short of forking to add a setter) to set auto_prefix_mode to true on ReadOptions? or is it already the default in the latest version?
    guerra____
    @guerra____:matrix.org
    [m]
    Hello guys
    I'm trying to use block cache but seems my changes doesn't take any effect
    static ROCKSDB_CACHE: Lazy<rocksdb::Cache> = Lazy::new(|| {
        const LRU_CAPACITY: usize = 1 << 30; // 1gb
        rocksdb::Cache::new_lru_cache(LRU_CAPACITY).expect("create rocksdb LRU block cache")
    });
    As doc says I used an outlive cache
    Mo0nbase
    @Mo0nbase
    Hello i was wondering where this project was at in regards to TransactionDB support. I understand there was this pull request which has had four code reviews however has yet to be merged. Is there anything in particular preventing it from being merged into the main branch? rust-rocksdb/rust-rocksdb#565
    Max Gabler
    @exellian
    Hello, I think the current build system cannot integrate with cargo check with intellij because i can't set environment variables for the clang compiler. Is there any fix for this?
    Moggele
    @Moggele
    try to compile my project witch is using rocks db as x86_64-unknown-linux-musl and run in following error /liblibrocksdb_sys-de14248a048ae0d7.rlib(c.o): undefined reference to symbol '__libc_single_threaded@@GLIBC_2.32' my be some one has any idea what the problem is.