hadoop/hadoop-mapreduce-project
Steve Loughran e76c09ac3b
HADOOP-18724. Open file fails with NumberFormatException for S3AFileSystem (#5611)
This:

1. Adds optLong, optDouble, mustLong and mustDouble
   methods to the FSBuilder interface to let callers explicitly
   passin long and double arguments.
2. The opt() and must() builder calls which take float/double values
   now only set long values instead, so as to avoid problems
   related to overloaded methods resulting in a ".0" being appended
   to a long value.
3. All of the relevant opt/must calls in the hadoop codebase move to
   the new methods
4. And the s3a code is resilient to parse errors in is numeric options
   -it will downgrade to the default.

This is nominally incompatible, but the floating-point builder methods
were never used: nothing currently expects floating point numbers.

For anyone who wants to safely set numeric builder options across all compatible
releases, convert the number to a string and then use the opt(String, String)
and must(String, String) methods.

Contributed by Steve Loughran
2023-05-11 17:57:25 +01:00
..
bin MAPREDUCE-7281. Fix NoClassDefFoundError on 'mapred minicluster'. (#2077) 2020-06-20 07:37:55 +09:00
conf MAPREDUCE-6875. Rename mapred-site.xml.template to mapred-site.xml. (Yuanbo Liu via Haibo Chen) 2017-04-17 12:25:30 -07:00
dev-support HADOOP-18470. Hadoop 3.3.5 release wrap-up (#5558) 2023-04-18 10:12:07 +01:00
hadoop-mapreduce-client HADOOP-18724. Open file fails with NumberFormatException for S3AFileSystem (#5611) 2023-05-11 17:57:25 +01:00
hadoop-mapreduce-examples HADOOP-18724. Open file fails with NumberFormatException for S3AFileSystem (#5611) 2023-05-11 17:57:25 +01:00
lib/jdiff JDiff output for release 0.22.0 2011-12-12 05:45:08 +00:00
shellprofile.d HADOOP-12930. Dynamic subcommands for hadoop shell scripts (aw) 2016-05-16 17:54:45 -07:00
.gitignore MAPREDUCE-6875. Rename mapred-site.xml.template to mapred-site.xml. (Yuanbo Liu via Haibo Chen) 2017-04-17 12:25:30 -07:00
pom.xml MAPREDUCE-7386. Maven parallel builds (skipping tests) fail (#4415) 2022-11-04 11:50:43 +00:00