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

Save method doesn't seem to work, No error log #131

Closed
qracle opened this issue Nov 14, 2019 · 6 comments
Closed

Save method doesn't seem to work, No error log #131

qracle opened this issue Nov 14, 2019 · 6 comments
Labels

Comments

@qracle
Copy link

qracle commented Nov 14, 2019

Recently, prod systems have been losing data frequently, or the 'status' field has not changed.
I tracked the info log, the following:
asd
here is the code:
34D7C3E1-B12C-4BA0-B091-BA98AAD57BE6
After the code is executed,I found the "txnStatus" was still the old value, instead of the expected value "1"
AFCD91B6-CC19-4CE2-98AC-DD337FE9FE6F
it seems the function "save" doesn't work, so could you please give me some suggestions? thank you

@VanRoy
Copy link
Owner

VanRoy commented Nov 14, 2019

Hi @qracle , Can you tell me if this issue is new and come with an upgrade of SpringDataJest or if this save have never worked ?
Do you have some other ES repository that works well ?

Maybe you could activate the HTTP logs with this settings to help you to investigate :
logging.level.org.apache.http=DEBUG

Keep me in touch.
Thanks.
Julien.

@qracle
Copy link
Author

qracle commented Nov 15, 2019

This problem has not been found before.If jest throws an exception, I can get some information in the error log.But the problem I described doesn't provide any error logs.So I'm very confused.

There are some ES repository seems work well.(At least yesterday's Numbers were accurate, I need to confirm)

The following is the release from the project, I never upgrade them:

  • spring boot version: 2.1.4.RELEASE
  • elasticsearch server version: 6.4.3 (Use Aws Elasticsearch Service)
  • jest version: 6.3.1
  • spring boot starter data jest version: 3.2.0.RELEASE

I will active the debug log to get more information, if there is any problem or progress, I will contact you in time.

@qracle
Copy link
Author

qracle commented Nov 15, 2019

This phenomenon is caused by concurrency. Thank you very much for your timely reply to my question.I will close this question.

@VanRoy
Copy link
Owner

VanRoy commented Nov 16, 2019

Thanks for your feedback. I hope you can fix it quickly.

@VanRoy VanRoy closed this as completed Nov 16, 2019
@qracle
Copy link
Author

qracle commented Nov 17, 2019

Hi Van,
Because of this problem, I need to use Elasticsearch optimistic locks, I read your conversations in #9 and #11.
Did spring data jest provided any annotations for the version control in 3.2.0.RELEASE? Or I need to use @Version(JPA) or @JestVersion(Jest).
Looking forward to your reply. Thank you.

@VanRoy
Copy link
Owner

VanRoy commented Nov 17, 2019

Hi @qracle , you can use @Version ( org.springframework.data.annotation ) .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants