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

warning: BigDecimal.new is deprecated; use BigDecimal() method instead. #84

Open
jpuskar opened this issue May 4, 2023 · 1 comment
Labels

Comments

@jpuskar
Copy link

jpuskar commented May 4, 2023

Hi,
The mongodb output plugin spams this to the logstash log.
I am on mongodb-output-plugin 3.1.7 with logstash 8.7.1. This also happens on logstash 8.6.1.

/opt/bitnami/logstash/vendor/bundle/jruby/2.6.0/gems/logstash-output-mongodb-3.1.7/lib/logstash/outputs/bson/big_decimal.rb:53: warning: BigDecimal.new is deprecated; use BigDecimal() method instead.

Here is my output stanza, for reference:

output {
  mongodb {
    database => "selfservice"
    collection => "%{[Metadata][kafka_topic]}"
    uri => "mongodb://logstash:<password>@mongodb-0.mongodb-svc.shared.svc.cluster.local:27017,mongodb-1.mongodb-svc.shared.svc.cluster.local:27017,mongodb-2.mongodb-svc.shared.svc.cluster.local:27017/admin?replicaSet=mongodb&ssl=true&tlsCAFile=/mnt/certs/ca.crt"
  }
}

It seems like another PR similar to this is needed:
#59

@jpuskar jpuskar added the bug label May 4, 2023
@senthil13
Copy link

Its happening in our env also.

logstash-output-mongodb (3.1.5)
logstash 8.9.1

Thanks
Senthil

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