Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Did pegasus support distributed transaction? #11

Closed
kewei-wang opened this issue Dec 12, 2017 · 1 comment
Closed

Did pegasus support distributed transaction? #11

kewei-wang opened this issue Dec 12, 2017 · 1 comment
Labels
type/question Indicates that an issue or pull request needs more information

Comments

@kewei-wang
Copy link

just like the issue title,did it support distributed transaction so I can use it like the following code?

pegasus.beginTransaction();
pegasus.put("key",value);
v = pegasus.get("key");
v++;
pegasus.put("key",v);
pegasus.commit();
@shengofsun
Copy link
Contributor

@kowayvwang currently we don't support distributed transaction. the only guarantee we can give is that multiple put operations of sortkeys on the same hashkey are atomic.
that is to say, if you write code like this:

pegasus.multi_set("aa", [("bb", "cc"), ("dd", ee), ("ff" -> "gg") ...])

the operations of "aa:bb -> cc" & "aa:dd -> ee" & "aa:ff" -> "gg" will all success or all fail.

@neverchanje neverchanje added type/question Indicates that an issue or pull request needs more information and removed new feature labels Sep 13, 2018
cauchy1988 pushed a commit to cauchy1988/incubator-pegasus that referenced this issue May 7, 2022
cauchy1988 pushed a commit to cauchy1988/incubator-pegasus that referenced this issue May 12, 2022
Rename _reqs to avoid effect of TTwisted.ThriftClientProtocol.
empiredan pushed a commit that referenced this issue Sep 19, 2023
…rsion (#1614)

#1575

Fix a build error on lower OpenSSL version, the error looks like:
```
2023-09-19T02:53:45.4093185Z #11 924.7 /root/incubator-pegasus/thirdparty/build/Source/rocksdb/encryption/encryption.cc: In function 'const EVP_CIPHER* rocksdb::encryption::GetEVPCipher(rocksdb::encryption::EncryptionMethod)':
2023-09-19T02:53:45.4094191Z #11 924.7 /root/incubator-pegasus/thirdparty/build/Source/rocksdb/encryption/encryption.cc:112:44: error: cannot convert 'rocksdb::Status' to 'const EVP_CIPHER* {aka const evp_cipher_st*}' in return
2023-09-19T02:53:45.4094713Z #11 924.7            std::string(OPENSSL_VERSION_TEXT));
2023-09-19T02:53:45.4094991Z #11 924.7                                             ^
2023-09-19T02:53:45.5599505Z #11 924.7 gmake[5]: *** [CMakeFiles/rocksdb.dir/encryption/encryption.cc.o] Error 1
2023-09-19T02:53:45.5599938Z #11 924.7 gmake[4]: *** [CMakeFiles/rocksdb.dir/all] Error 2
2023-09-19T02:53:45.5600266Z #11 924.7 gmake[4]: *** Waiting for unfinished jobs....
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/question Indicates that an issue or pull request needs more information
Projects
None yet
Development

No branches or pull requests

4 participants