build-bigtable.sh broken on 2.4.x branch

瀏覽次數:40 次
跳到第一則未讀訊息

Uri Okrent

未讀,
2020年12月7日 上午11:25:262020/12/7
收件者:OpenTSDB

A recent commit broke build-bigtable.sh:
commit e8f49005c161b1cd12c88cbc1a043ad5621cd21a
Author: Chris Larsen
Date:   Wed May 6 14:52:47 2020 -0700

    Fix PR 1896 with the fuzzy filter list so that it will honor the regex filter
    and properly ignore rows that don't match the explicit filter. Also sort the
    fuzzy filter list in ascending order and implement a static comparator instead
    of instantiating one on each call.

The change added some asserts like assertEquals(2, filter_list.size()); in TestTsdbQueryQueries.java which fails building because the asyncbigtable implementation of FilterList doesn't have a size() member.

Thanks

Brux

未讀,
2021年1月13日 上午9:54:282021/1/13
收件者:OpenTSDB


Hello, I would kindly ask if this issue has been somehow fixed and I can go ahead,
when I try to build using the build-bigtable.sh script it gives errors. I am stuck, we are
trying to set up a production environment but we cannot continue, please help..



.............

../test/core/TestTSSubQuery.java:216: warning: [deprecation] setTags(Map<String,String>) in TSSubQuery has been deprecated
    sub.setTags(tags);
       ^
../test/core/TestTSSubQuery.java:221: warning: [deprecation] getTags() in TSSubQuery has been deprecated
        sub.getTags().get("host"));
           ^
../test/core/TestTSSubQuery.java:224: warning: [deprecation] downsampler() in TSSubQuery has been deprecated
    assertEquals(Aggregators.AVG, sub.downsampler());
                                     ^
../test/core/TestTSSubQuery.java:225: warning: [deprecation] downsampleInterval() in TSSubQuery has been deprecated
    assertEquals(300000, sub.downsampleInterval());
                            ^
../test/core/TestTSSubQuery.java:362: warning: [deprecation] setTags(Map<String,String>) in TSSubQuery has been deprecated
    sub1.setTags(tags);
        ^
Note: Some input files additionally use or override a deprecated API.
Note: ../test/stats/TestQueryStats.java uses unchecked or unsafe operations.
3 errors
100 warnings
Makefile:2009: recipe for target '.javac-unittests-stamp' failed
make[1]: *** [.javac-unittests-stamp] Error 1
make[1]: Leaving directory '/home/guest/opentsdb/build'
Makefile:1401: recipe for target 'all' failed
make: *** [all] Error 2
guest@redhat8:~/opentsdb$

.............

Uri Okrent

未讀,
2021年1月14日 上午11:41:042021/1/14
收件者:OpenTSDB
I just removed the 3 problematic asserts from the test and was able to build

Brux

未讀,
2021年1月14日 中午12:40:492021/1/14
收件者:OpenTSDB

Hello, thanks for your answer, can you please tell me on the details what I have
to remove? In which folder and what files?

This is how I am trying to build it, but it gives errors:

$ git clone git://github.com/OpenTSDB/opentsdb.git
$ cd opentsdb
$ chmod ugo+x ./build-bigtable.sh
$ ./build-bigtable.sh



Thanks
回覆所有人
回覆作者
轉寄
0 則新訊息